Thank you, guys!
My steps:
- I downloaded a source from the master branch.
- I run CMake GUI.
- I selected “MinGW Makefiles” and “Use default native compilers”
- I choose the “source” and “dist” folders.
- I pressed the “Configure” button. There are some warnings at the beginning that I do not understand:
Output
Urho3D-master
CMake Deprecation Warning at CMakeLists.txt:31 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at CMakeLists.txt:35 (cmake_policy):
The OLD behavior for policy CMP0063 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
The C compiler identification is GNU 8.1.0
The CXX compiler identification is GNU 8.1.0
Check for working C compiler: C:/Program Files (x86)/mingw-w64/i686-8.1.0-win32-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe
Check for working C compiler: C:/Program Files (x86)/mingw-w64/i686-8.1.0-win32-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe - works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Check for working CXX compiler: C:/Program Files (x86)/mingw-w64/i686-8.1.0-win32-dwarf-rt_v6-rev0/mingw32/bin/g++.exe
Check for working CXX compiler: C:/Program Files (x86)/mingw-w64/i686-8.1.0-win32-dwarf-rt_v6-rev0/mingw32/bin/g++.exe - works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Performing Test IS_TRIVIALLY_DEFAULT_CONSTRUCTIBLE
Performing Test IS_TRIVIALLY_DEFAULT_CONSTRUCTIBLE - Success
Performing Test IS_TRIVIALLY_DESTRUCTIBLE
Performing Test IS_TRIVIALLY_DESTRUCTIBLE - Success
Performing Test IS_TRIVIALLY_COPY_ASSIGNABLE
Performing Test IS_TRIVIALLY_COPY_ASSIGNABLE - Success
Performing Test IS_TRIVIALLY_COPY_CONSTRUCTIBLE
Performing Test IS_TRIVIALLY_COPY_CONSTRUCTIBLE - Success
Looking for C++ include d3dcompiler.h
Looking for C++ include d3dcompiler.h - found
Looking for C++ include d3d9.h
Looking for C++ include d3d9.h - found
Looking for C++ include d3d11.h
Looking for C++ include d3d11.h - found
Looking for C++ include ddraw.h
Looking for C++ include ddraw.h - found
Looking for C++ include dsound.h
Looking for C++ include dsound.h - found
Looking for C++ include dinput.h
Looking for C++ include dinput.h - found
Looking for C++ include dxgi.h
Looking for C++ include dxgi.h - found
Looking for include files windows.h, xinput.h
Looking for include files windows.h, xinput.h - found
Performing Test HAVE_XINPUT_GAMEPAD_EX
Performing Test HAVE_XINPUT_GAMEPAD_EX - Failed
Performing Test HAVE_XINPUT_STATE_EX
Performing Test HAVE_XINPUT_STATE_EX - Failed
Found DirectX: TRUE found components: DInput DSound XInput
Looking for stdint.h
Looking for stdint.h - found
Looking for inttypes.h
Looking for inttypes.h - found
Looking for malloc.h
Looking for malloc.h - found
Looking for __sincosf
Looking for __sincosf - not found
Looking for malloc_usable_size
Looking for malloc_usable_size - not found
Looking for sincosf in m
Looking for sincosf in m - found
Performing Test HAVE_RTL_OSVERSIONINFOW
Performing Test HAVE_RTL_OSVERSIONINFOW - Success
Performing Test HAVE_GCC_WALL
Performing Test HAVE_GCC_WALL - Success
Performing Test HAVE_GCC_NO_STRICT_ALIASING
Performing Test HAVE_GCC_NO_STRICT_ALIASING - Success
Performing Test HAVE_GCC_WDECLARATION_AFTER_STATEMENT
Performing Test HAVE_GCC_WDECLARATION_AFTER_STATEMENT - Success
Performing Test HAVE_GCC_WERROR_DECLARATION_AFTER_STATEMENT
Performing Test HAVE_GCC_WERROR_DECLARATION_AFTER_STATEMENT - Success
Performing Test HAVE_GCC_ATOMICS
Performing Test HAVE_GCC_ATOMICS - Success
Performing Test HAVE_GCC_PREFERRED_STACK_BOUNDARY
Performing Test HAVE_GCC_PREFERRED_STACK_BOUNDARY - Success
Performing Test HAVE_GCC_WSHADOW
Performing Test HAVE_GCC_WSHADOW - Success
Performing Test HAVE_NO_UNDEFINED
Performing Test HAVE_NO_UNDEFINED - Success
Looking for immintrin.h
Looking for immintrin.h - found
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdio.h
Looking for stdio.h - found
Looking for stdlib.h
Looking for stdlib.h - found
Looking for stddef.h
Looking for stddef.h - found
Looking for stdarg.h
Looking for stdarg.h - found
Looking for memory.h
Looking for memory.h - found
Looking for string.h
Looking for string.h - found
Looking for limits.h
Looking for limits.h - found
Looking for strings.h
Looking for strings.h - found
Looking for wchar.h
Looking for wchar.h - found
Looking for ctype.h
Looking for ctype.h - found
Looking for math.h
Looking for math.h - found
Looking for iconv.h
Looking for iconv.h - found
Looking for signal.h
Looking for signal.h - found
Looking for 7 include files stdint.h, …, float.h
Looking for 7 include files stdint.h, …, float.h - found
Looking for M_PI
Looking for M_PI - found
Looking for sys/mman.h
Looking for sys/mman.h - not found
Looking for strtod
Looking for strtod - found
Looking for malloc
Looking for malloc - found
Looking for calloc
Looking for calloc - found
Looking for realloc
Looking for realloc - found
Looking for free
Looking for free - found
Looking for getenv
Looking for getenv - found
Looking for setenv
Looking for setenv - not found
Looking for putenv
Looking for putenv - found
Looking for unsetenv
Looking for unsetenv - not found
Looking for qsort
Looking for qsort - found
Looking for abs
Looking for abs - found
Looking for bcopy
Looking for bcopy - not found
Looking for memset
Looking for memset - found
Looking for memcpy
Looking for memcpy - found
Looking for memmove
Looking for memmove - found
Looking for memcmp
Looking for memcmp - found
Looking for strlen
Looking for strlen - found
Looking for strlcpy
Looking for strlcpy - not found
Looking for strlcat
Looking for strlcat - not found
Looking for _strrev
Looking for _strrev - found
Looking for _strupr
Looking for _strupr - found
Looking for _strlwr
Looking for _strlwr - found
Looking for strchr
Looking for strchr - found
Looking for strrchr
Looking for strrchr - found
Looking for strstr
Looking for strstr - found
Looking for itoa
Looking for itoa - found
Looking for _ltoa
Looking for _ltoa - found
Looking for _uitoa
Looking for _uitoa - not found
Looking for _ultoa
Looking for _ultoa - found
Looking for strtol
Looking for strtol - found
Looking for strtoul
Looking for strtoul - found
Looking for _i64toa
Looking for _i64toa - found
Looking for _ui64toa
Looking for _ui64toa - found
Looking for strtoll
Looking for strtoll - found
Looking for strtoull
Looking for strtoull - found
Looking for atoi
Looking for atoi - found
Looking for atof
Looking for atof - found
Looking for strcmp
Looking for strcmp - found
Looking for strncmp
Looking for strncmp - found
Looking for _stricmp
Looking for _stricmp - found
Looking for strcasecmp
Looking for strcasecmp - found
Looking for _strnicmp
Looking for _strnicmp - found
Looking for strncasecmp
Looking for strncasecmp - found
Looking for vsscanf
Looking for vsscanf - found
Looking for vsnprintf
Looking for vsnprintf - found
Looking for fopen64
Looking for fopen64 - found
Looking for fseeko
Looking for fseeko - found
Looking for fseeko64
Looking for fseeko64 - found
Looking for sigaction
Looking for sigaction - not found
Looking for setjmp
Looking for setjmp - not found
Looking for nanosleep
Looking for nanosleep - not found
Looking for sysconf
Looking for sysconf - not found
Looking for sysctlbyname
Looking for sysctlbyname - not found
Looking for getauxval
Looking for getauxval - not found
Looking for poll
Looking for poll - not found
Looking for _Exit
Looking for _Exit - found
Looking for pow in m
Looking for pow in m - found
Looking for atan
Looking for atan - found
Looking for atan2
Looking for atan2 - found
Looking for ceil
Looking for ceil - found
Looking for copysign
Looking for copysign - found
Looking for cos
Looking for cos - found
Looking for cosf
Looking for cosf - found
Looking for fabs
Looking for fabs - found
Looking for floor
Looking for floor - found
Looking for log
Looking for log - found
Looking for pow
Looking for pow - found
Looking for scalbn
Looking for scalbn - found
Looking for sin
Looking for sin - found
Looking for sinf
Looking for sinf - found
Looking for sqrt
Looking for sqrt - found
Looking for sqrtf
Looking for sqrtf - found
Looking for tan
Looking for tan - found
Looking for tanf
Looking for tanf - found
Looking for acos
Looking for acos - found
Looking for asin
Looking for asin - found
Looking for iconv_open in iconv
Looking for iconv_open in iconv - not found
Looking for alloca.h
Looking for alloca.h - not found
Performing Test HAVE_SA_SIGACTION
Performing Test HAVE_SA_SIGACTION - Failed
Looking for windows.h
Looking for windows.h - found
Looking for mmdeviceapi.h
Looking for mmdeviceapi.h - found
Looking for audioclient.h
Looking for audioclient.h - found
Looking for endpointvolume.h
Looking for endpointvolume.h - found
SDL2 was configured with the following options:
Platform: Windows-10.0.18362
64-bit: FALSE
Compiler: C:/Program Files (x86)/mingw-w64/i686-8.1.0-win32-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe
Subsystems:
Atomic: ON
Audio: ON
Video: ON
Render: OFF
Events: ON
Joystick: ON
Haptic: ON
Power: ON
Threads: ON
Timers: ON
File: ON
Loadso: ON
CPUinfo: ON
Filesystem: ON
Dlopen: OFF
Sensor: ON
Options:
ALSA (Wanted: OFF): OFF
ALSA_SHARED (Wanted: OFF): OFF
ARTS (Wanted: OFF): OFF
ARTS_SHARED (Wanted: OFF): OFF
ASSEMBLY (Wanted: ON): ON
ASSERTIONS (Wanted: auto): auto
BACKGROUNDING_SIGNAL (Wanted: OFF): OFF
CLOCK_GETTIME (Wanted: OFF): OFF
DIRECTFB_SHARED (Wanted: OFF): OFF
DIRECTX (Wanted: ON): ON
DISKAUDIO (Wanted: ON): ON
DUMMYAUDIO (Wanted: ON): ON
ESD (Wanted: OFF): OFF
ESD_SHARED (Wanted: OFF): OFF
FOREGROUNDING_SIGNAL (Wanted: OFF): OFF
FUSIONSOUND (Wanted: OFF): OFF
FUSIONSOUND_SHARED (Wanted: OFF): OFF
GCC_ATOMICS (Wanted: ON): ON
HIDAPI (Wanted: ON): ON
INPUT_TSLIB (Wanted: OFF): OFF
JACK (Wanted: OFF): OFF
JACK_SHARED (Wanted: OFF): OFF
KMSDRM_SHARED (Wanted: OFF): OFF
LIBC (Wanted: ON): ON
LIBSAMPLERATE (Wanted: OFF): OFF
LIBSAMPLERATE_SHARED (Wanted: OFF): OFF
NAS (Wanted: OFF): OFF
NAS_SHARED (Wanted: OFF): OFF
OSS (Wanted: OFF): OFF
PTHREADS (Wanted: OFF): OFF
PTHREADS_SEM (Wanted: OFF): OFF
PULSEAUDIO (Wanted: OFF): OFF
PULSEAUDIO_SHARED (Wanted: OFF): OFF
SDL_DLOPEN (Wanted: OFF): OFF
SDL_HAPTIC (Wanted: ON): ON
SDL_STATIC_PIC (Wanted: OFF): OFF
SNDIO (Wanted: OFF): OFF
VIDEO_COCOA (Wanted: OFF): OFF
VIDEO_DIRECTFB (Wanted: OFF): OFF
VIDEO_DUMMY (Wanted: ON): ON
VIDEO_KMSDRM (Wanted: OFF): OFF
VIDEO_OPENGL (Wanted: ON): ON
VIDEO_OPENGLES (Wanted: OFF): OFF
VIDEO_RPI (Wanted: OFF): OFF
VIDEO_VIVANTE (Wanted: OFF): OFF
VIDEO_VULKAN (Wanted: ON): ON
VIDEO_WAYLAND (Wanted: OFF): OFF
VIDEO_WAYLAND_QT_TOUCH (Wanted: OFF): OFF
VIDEO_X11 (Wanted: OFF): OFF
VIDEO_X11_XCURSOR (Wanted: OFF): OFF
VIDEO_X11_XINERAMA (Wanted: OFF): OFF
VIDEO_X11_XINPUT (Wanted: OFF): OFF
VIDEO_X11_XRANDR (Wanted: OFF): OFF
VIDEO_X11_XSCRNSAVER (Wanted: OFF): OFF
VIDEO_X11_XSHAPE (Wanted: OFF): OFF
VIDEO_X11_XVM (Wanted: OFF): OFF
WASAPI (Wanted: ON): OFF
WAYLAND_SHARED (Wanted: OFF): OFF
X11_SHARED (Wanted: OFF): OFF
CFLAGS: -mtune=generic -march=native -msse3 -static -static-libgcc -fno-keep-inline-dllexport -mstackrealign -fdiagnostics-color=auto -IC:/Users/8Observer8/Downloads/Urho3D-master/Source/ThirdParty/SDL/src/hidapi/hidapi
EXTRA_CFLAGS: -Wshadow -Wdeclaration-after-statement -Werror=declaration-after-statement -fno-strict-aliasing -Wall
EXTRA_LDFLAGS: -Wl,–no-undefined
EXTRA_LIBS: m;user32;gdi32;winmm;imm32;ole32;oleaut32;version;uuid;advapi32;setupapi;shell32;dinput8;dxerr8
Performing Test HAVE_STRUCT_TIMESPEC_TV_SEC
Performing Test HAVE_STRUCT_TIMESPEC_TV_SEC - Success
Looking for _TIMESPEC_DEFINED
Looking for _TIMESPEC_DEFINED - found
Performing Test INET_FUNCTIONS_EXISTS_1
Performing Test INET_FUNCTIONS_EXISTS_1 - Failed
Performing Test INET_FUNCTIONS_EXISTS_2
Performing Test INET_FUNCTIONS_EXISTS_2 - Failed
Performing Test SPRINTFS_FUNCTION_EXISTS
Performing Test SPRINTFS_FUNCTION_EXISTS - Success
Performing Test VSNPRINTFS_FUNCTION_EXISTS
Performing Test VSNPRINTFS_FUNCTION_EXISTS - Success
Looking for include file stdint.h
Looking for include file stdint.h - found
Performing Test IK_RESTRICT_restrict
Performing Test IK_RESTRICT_restrict - Success
Performing Test COMPILER_HAS_DEPRECATED_ATTR
Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
Found Urho3D: as CMake target
CMake Warning (dev) at C:/Program Files (x86)/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
The package name passed to find_package_handle_standard_args
(rt) does
not match the name of the calling package (RT). This can lead to problems
in calling code that expects find_package
result variables (e.g.,
_FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
Source/ThirdParty/Assimp/cmake-modules/FindRT.cmake:19 (find_package_handle_standard_args)
Source/ThirdParty/Assimp/code/CMakeLists.txt:854 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
Could NOT find rt (missing: RT_LIBRARY)
RT-extension not found. glTF import/export will be built without Open3DGC-compression.
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Configuring done
- I just unchecked some Assimp Importers. I pressed the “Configure” button again.
- I pressed the “Generate” button.
- I went to the “dist” folder and I run the “mingw32-make” command.
- Even EXE’s for examples was created successfully.
- I have the “include” folder and the “libUrho3d.a” library. I think it must be enough to build a simple program:
main.cpp
#include <iostream>
#include <Urho3D/Engine/Application.h>
class MyApp : public Urho3D::Application
{
public:
MyApp(Urho3D::Context * context) : Urho3D::Application(context)
{
}
virtual void Setup()
{
std::cout << "Setup" << std::endl;
}
};
URHO3D_DEFINE_APPLICATION_MAIN(MyApp)