I have troubles to build STK on Windows 7 with CMake + MinGW. I'm not familiar with CMake at all, so maybe it is a simple mistake on my side.
I followed all the instructions from the readme file here. But when I run
- {l Code}: {l Select All Code}
cmake .. -G "MinGW Makefiles"
in terminal, I got following output:
- {l Code}: {l Select All Code}
The C compiler identification is GNU 4.8.1
The CXX compiler identification is GNU 4.8.1
Check for working C compiler: K:/MinGW/bin/gcc.exe
Check for working C compiler: K:/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: K:/MinGW/bin/g++.exe
Check for working CXX compiler: K:/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
No build type selected, default to STKRelease
Found OpenGL: opengl32
Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR)
CMake Error at K:/Programme (x86)/CMake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
Call Stack (most recent call first):
K:/Programme (x86)/CMake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
K:/Programme (x86)/CMake/share/cmake-3.1/Modules/FindPNG.cmake:121 (find_package_handle_standard_args)
lib/irrlicht/CMakeLists.txt:2 (find_package)
Configuring incomplete, errors occurred!
See also "K:/Julian/GitHub/SuperTuxKart/stk-code/build/CMakeFiles/CMakeOutput.log".
How can I point CMake to the Zlib and libPNG libraries?
Many thanks in advance.