Compiling error under windows 10, looking for help

There are no stupid questions, just stupid answers.
3 posts Page 1 of 1
streamspan
Posts: 2
Joined: Sat Sep 05, 2020 4:41 am
by streamspan » Sat Sep 05, 2020 4:56 am
I'm new for Torque3D, just git clone the source, want to compile it using CMake and MSVC.
CMake - 3.17.4

Configuration process generates following with error in the end.
CMakeOutput.log and CMakeError.log are also attached.

The C compiler identification is MSVC 19.27.29111.0
The CXX compiler identification is MSVC 19.27.29111.0
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.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)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
CMake Warning (dev) at Tools/CMake/basics.cmake:403 (set):
implicitly converting 'TYPE' to 'STRING' type.
Call Stack (most recent call first):
Tools/CMake/CMakeLists.txt:26 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at Tools/CMake/basics.cmake:406 (set):
implicitly converting 'TYPE' to 'STRING' type.
Call Stack (most recent call first):
Tools/CMake/CMakeLists.txt:26 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at Tools/CMake/basics.cmake:413 (set):
implicitly converting 'TYPE' to 'STRING' type.
Call Stack (most recent call first):
Tools/CMake/CMakeLists.txt:26 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at Tools/CMake/basics.cmake:367 (set):
implicitly converting 'INTEGER' to 'STRING' type.
Call Stack (most recent call first):
Tools/CMake/CMakeLists.txt:28 (setupVersionNumbers)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at Tools/CMake/basics.cmake:368 (set):
implicitly converting 'INTEGER' to 'STRING' type.
Call Stack (most recent call first):
Tools/CMake/CMakeLists.txt:28 (setupVersionNumbers)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at Tools/CMake/basics.cmake:369 (set):
implicitly converting 'INTEGER' to 'STRING' type.
Call Stack (most recent call first):
Tools/CMake/CMakeLists.txt:28 (setupVersionNumbers)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at Tools/CMake/basics.cmake:370 (set):
implicitly converting 'INTEGER' to 'STRING' type.
Call Stack (most recent call first):
Tools/CMake/CMakeLists.txt:28 (setupVersionNumbers)
This warning is for project developers. Use -Wno-dev to suppress it.

Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of long
Check size of long - done
Check size of long long
Check size of long long - done
Performing Test HAVE_STD_C11
Performing Test HAVE_STD_C11 - Failed
Performing Test HAVE_STD_C99
Performing Test HAVE_STD_C99 - Failed
Checking _FILE_OFFSET_BITS for large files
Checking _FILE_OFFSET_BITS for large files - not needed
Performing Test HAVE_RESTRICT
Performing Test HAVE_RESTRICT - Success
Performing Test HAVE_INLINE
Performing Test HAVE_INLINE - Success
Performing Test HAVE_STRUCT_TIMESPEC
Performing Test HAVE_STRUCT_TIMESPEC - Success
Performing Test HAVE_LIBATOMIC
Performing Test HAVE_LIBATOMIC - Failed
Performing Test HAVE_C99_VLA
Performing Test HAVE_C99_VLA - Failed
Performing Test HAVE_C99_BOOL
Performing Test HAVE_C99_BOOL - Success
Performing Test HAVE_C11_STATIC_ASSERT
Performing Test HAVE_C11_STATIC_ASSERT - Failed
Performing Test HAVE_C11_ALIGNAS
Performing Test HAVE_C11_ALIGNAS - Failed
Performing Test HAVE_C11_ATOMIC
Performing Test HAVE_C11_ATOMIC - Failed
Performing Test HAVE_GCC_FORMAT
Performing Test HAVE_GCC_FORMAT - Failed
Looking for stdbool.h
Looking for stdbool.h - found
Looking for stdalign.h
Looking for stdalign.h - not found
Looking for malloc.h
Looking for malloc.h - found
Looking for dirent.h
Looking for dirent.h - not found
Looking for strings.h
Looking for strings.h - not found
Looking for cpuid.h
Looking for cpuid.h - not found
Looking for intrin.h
Looking for intrin.h - found
Looking for sys/sysconf.h
Looking for sys/sysconf.h - not found
Looking for fenv.h
Looking for fenv.h - found
Looking for float.h
Looking for float.h - found
Looking for ieeefp.h
Looking for ieeefp.h - not found
Looking for guiddef.h
Looking for guiddef.h - found
Looking for pow in m
Looking for pow in m - not found
Looking for dlopen in dl
Looking for dlopen in dl - not found
Looking for dlfcn.h
Looking for dlfcn.h - not found
Performing Test HAVE_CPUID_INTRINSIC
Performing Test HAVE_CPUID_INTRINSIC - Success
Looking for aligned_alloc
Looking for aligned_alloc - not found
Looking for posix_memalign
Looking for posix_memalign - not found
Looking for _aligned_malloc
Looking for _aligned_malloc - found
Looking for lrintf
Looking for lrintf - found
Looking for modff
Looking for modff - found
Looking for alloca
Looking for alloca - found
Looking for _controlfp
Looking for _controlfp - found
Looking for __control87_2
Looking for __control87_2 - not found
Looking for stat
Looking for stat - found
Looking for strtof
Looking for strtof - found
Looking for strcasecmp
Looking for strcasecmp - not found
Looking for _stricmp
Looking for _stricmp - found
Looking for strncasecmp
Looking for strncasecmp - not found
Looking for _strnicmp
Looking for _strnicmp - found
Looking for strnlen
Looking for strnlen - found
Looking for snprintf
Looking for snprintf - found
Looking for isfinite
Looking for isfinite - found
Looking for isnan
Looking for isnan - found
Looking for windows.h
Looking for windows.h - found
Looking for xmmintrin.h
Looking for xmmintrin.h - found
Looking for emmintrin.h
Looking for emmintrin.h - found
Looking for pmmintrin.h
Looking for pmmintrin.h - found
Looking for smmintrin.h
Looking for smmintrin.h - found
Looking for arm_neon.h
Looking for arm_neon.h - not found
Could NOT find ALSA (missing: ALSA_LIBRARY ALSA_INCLUDE_DIR)
Could NOT find OSS (missing: OSS_INCLUDE_DIR)
Could NOT find AudioIO (missing: AUDIOIO_INCLUDE_DIR)
Could NOT find SoundIO (missing: SOUNDIO_LIBRARY SOUNDIO_INCLUDE_DIR)
Could NOT find QSA (missing: QSA_LIBRARY QSA_INCLUDE_DIR)
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/CheckIncludeFiles.cmake:68 (message):
Unknown arguments:

-D_WIN32_WINNT=0x0502

Call Stack (most recent call first):
Engine/lib/openal-soft/CMakeLists.txt:938 (CHECK_INCLUDE_FILES)


Configuring incomplete, errors occurred!
See also "D:/600-Programming/100-repo/Torque3D/My Projects/CMake/CMakeFiles/CMakeOutput.log".
See also "D:/600-Programming/100-repo/Torque3D/My Projects/CMake/CMakeFiles/CMakeError.log".

Attachments

CMakeError&Output.zip
CMakeOutput.log and CMakeError.log
(6.29 KiB) Downloaded 8 times
streamspan
Posts: 2
Joined: Sat Sep 05, 2020 4:41 am
by streamspan » Sat Sep 05, 2020 5:43 am
I also tried codeblock 20.03, with following message:

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/CodeBlocks/MinGW/bin/gcc.exe
Check for working C compiler: C:/Program Files/CodeBlocks/MinGW/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/CodeBlocks/MinGW/bin/g++.exe
Check for working CXX compiler: C:/Program Files/CodeBlocks/MinGW/bin/g++.exe - works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
CMake Warning (dev) at Tools/CMake/basics.cmake:403 (set):
implicitly converting 'TYPE' to 'STRING' type.
Call Stack (most recent call first):
Tools/CMake/CMakeLists.txt:26 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at Tools/CMake/basics.cmake:406 (set):
implicitly converting 'TYPE' to 'STRING' type.
Call Stack (most recent call first):
Tools/CMake/CMakeLists.txt:26 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at Tools/CMake/basics.cmake:413 (set):
implicitly converting 'TYPE' to 'STRING' type.
Call Stack (most recent call first):
Tools/CMake/CMakeLists.txt:26 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at Tools/CMake/basics.cmake:367 (set):
implicitly converting 'INTEGER' to 'STRING' type.
Call Stack (most recent call first):
Tools/CMake/CMakeLists.txt:28 (setupVersionNumbers)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at Tools/CMake/basics.cmake:368 (set):
implicitly converting 'INTEGER' to 'STRING' type.
Call Stack (most recent call first):
Tools/CMake/CMakeLists.txt:28 (setupVersionNumbers)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at Tools/CMake/basics.cmake:369 (set):
implicitly converting 'INTEGER' to 'STRING' type.
Call Stack (most recent call first):
Tools/CMake/CMakeLists.txt:28 (setupVersionNumbers)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at Tools/CMake/basics.cmake:370 (set):
implicitly converting 'INTEGER' to 'STRING' type.
Call Stack (most recent call first):
Tools/CMake/CMakeLists.txt:28 (setupVersionNumbers)
This warning is for project developers. Use -Wno-dev to suppress it.

Looking for sys/types.h
Looking for sys/types.h - not found
Looking for stdint.h
Looking for stdint.h - not found
Looking for stddef.h
Looking for stddef.h - not found
Check size of long
Check size of long - failed
Check size of long long
Check size of long long - failed
Performing Test HAVE_STD_C11
Performing Test HAVE_STD_C11 - Failed
Performing Test HAVE_STD_C99
Performing Test HAVE_STD_C99 - Failed
Checking _FILE_OFFSET_BITS for large files
Checking _FILE_OFFSET_BITS for large files - not needed
Performing Test INLINE_IS_C99
Performing Test INLINE_IS_C99 - Failed
CMake Error at Engine/lib/openal-soft/CMakeLists.txt:175 (MESSAGE):
Your compiler does not seem to have C99 inline semantics!

Please update your compiler for better C99 compliance.


Configuring incomplete, errors occurred!
See also "D:/600-Programming/100-repo/Torque3D/My Projects/CMake/CMakeFiles/CMakeOutput.log".
See also "D:/600-Programming/100-repo/Torque3D/My Projects/CMake/CMakeFiles/CMakeError.log".

Error is :
CMake Error at Engine/lib/openal-soft/CMakeLists.txt:175 (MESSAGE):
Your compiler does not seem to have C99 inline semantics!

Don't know how to fix this.
Bloodknight
Posts: 307
Joined: Tue Feb 03, 2015 8:58 pm
by Bloodknight » Tue Sep 08, 2020 12:05 am
There have been issues with some older and some newer cmake versions, why this happens I'm not entirely sure but newer versions are rare.

also I belive the master branch itself is in conflict with cmake, also in case you are using the new archived repo

https://github.com/TorqueGameEngines/Torque3D

you should probably be using the Preview4.0 branch which is default, or the development branch, master branch is dated and needs some of the development branch fixes pushing to it.
3 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests