MarioYes, I'm using the Express edition. The message that kernel32.lib is not found happens if I choose the option in the CMake GUI "Specify the native compilers" and specify the cl.exe.
If I don't change or specify any settings and call CMake with default settings, then I get the messages that
The C compiler identification is unknown
and
The CXX compiler identification is unknown
The CMake log file gives the following details:
Build started 3/12/2014 11:21:17 PM.
Project "L:\prg\libsrc\SFML\SFML-2.1_build_Debug\CMakeFiles\2.8.12.2\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
L:\prg\libsrc\SFML\SFML-2.1_build_Debug\CMakeFiles\2.8.12.2\CompilerIdC\CompilerIdC.vcxproj(14,3): error MSB4019: The imported project "L:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Also among the CMake's error message there is a message that the "architecture is not supported":
CMake Error: Internal CMake error, TryCompile configure of cmake failed
Check size of void* - failed
CMake Error at cmake/Config.cmake:13 (message):
Unsupported architecture
I checked the Config.cmake in the SFML directory and the line 13 is in the following block:
check_type_size(void* SIZEOF_VOID_PTR)
if("${SIZEOF_VOID_PTR}" STREQUAL "4")
set(ARCH_32BITS 1)
elseif("${SIZEOF_VOID_PTR}" STREQUAL "8")
set(ARCH_64BITS 1)
else()
message(FATAL_ERROR "Unsupported architecture")
return()
endif()
It seems that when CMake checks the size of the 'void' pointer, this size is not equal to 4 or 8 bytes. How this can happen? (I'm using the x64 Windows 7 on 32-bit Intel processor machine. )