I am still far from getting Cmake generate a viable project, much less compiling.
My setup:
Cmake 2.8.2
Visual C++ Express 10 (yes I have abandoned the VC++ 2003 toolkit), hopefully will stay available for a while
PSDK for Windows Server 2003 R2
and of course fresh checkout of vegastrike svn.
Here are my notes so far.
glut-3.7.6; put all files where they belong in the compiler include, lib and system dll
openal: need to install both the binary, and the sdk from Creative; modify cmake 2.8/Modules/FindOpenAL.cmake to include:
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Creative\ Labs\\OpenAL\ 1.1\ Software\ Development\ Kit\\3.05;InstallDir]
in 2 locations, under the old registry key (Creative changed the version in the current download)
sdl 1.2.14:
vorbis 1.3.1:
ogg 1.2.0:
all override paths with downloaded binaries
jpeg8b - built new then overridden cmake path manually
libpng 1.4.1 - built then path overridden manually
zlib - built then path overridden manually
expat: d/l binary and then path overridden manually
ffmpeg: downloaded nightly build from http://ffmpeg.arrozcru.org/autobuilds/ then paths overridden manually
FindMath.cmake is stupid. Doesn't even try. Set manually. The math.h and mscvrt.lib are in the compiler includes and lib directories respectively. Here's an idea, for example, on how to find where VC++ 10 is installed:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VC]
"ProductDir"="E:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\"
Which brings me to the point where I am stumped.
Now cmake wants libdl and libutil. I know of none on Windows.
Here is the current output
Code: Select all
Could NOT find Boost
Could NOT find Boost
++ Using Internal Boost !
++ OpenGL found : glu32;opengl32
!! I can't build this, missing GLUT
++ Found OpenAL
++ SDL Found
Found Vorbis: M:/vegastrike/work/vorbis-tools-win32-bin/libvorbis.dll;M:/vegastrike/work/vorbis-tools-win32-bin/libvorbisfile.dll;M:/vegastrike/work/vorbis-tools-win32-bin/libogg.dll
CMake Error at E:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPkgConfig.cmake:306 (message):
pkg-config tool not found
Call Stack (most recent call first):
E:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
FindFFMPEG.cmake:25 (pkg_check_modules)
CMakeLists.txt:817 (find_package)
CMake Error at E:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPkgConfig.cmake:306 (message):
pkg-config tool not found
Call Stack (most recent call first):
E:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
FindFFMPEG.cmake:72 (pkg_check_modules)
CMakeLists.txt:817 (find_package)
CMake Error at E:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPkgConfig.cmake:306 (message):
pkg-config tool not found
Call Stack (most recent call first):
E:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
FindFFMPEG.cmake:120 (pkg_check_modules)
CMakeLists.txt:817 (find_package)
Found FFmpeg: M:/vegastrike/work/ffmpeg-latest-mingw32-static/lib/avcodec.lib;M:/vegastrike/work/ffmpeg-latest-mingw32-static/lib/avformat.lib;M:/vegastrike/work/ffmpeg-latest-mingw32-static/lib/avutil.lib
-- FFMpeg's libswscale not found... depending on your ffmpeg version, VS might not build.
Ogre not found
-- Ogre Not Found: compiling without
Cant get GTK2 found
-- Compiling mesh_tool without OgreMesh support: Ogre not found
Default build type is Release, no cpu opts enabled.
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
DL_LIB (ADVANCED)
linked by target "vegaserver" in directory M:/vegastrike/svn/vegastrike
linked by target "vegastrike" in directory M:/vegastrike/svn/vegastrike
UTIL_LIB (ADVANCED)
linked by target "vegaserver" in directory M:/vegastrike/svn/vegastrike
linked by target "vegastrike" in directory M:/vegastrike/svn/vegastrike
Configuring incomplete, errors occurred!