Compilation in Windows with CMake

Added by rudovicon almost 8 years ago

hello

i try compile in Windows 7 with CMake follow the Tutorial http://dev.ryzom.com/wiki/ryzom/BuildForWindowsCmake
in this step: If there is any error (text in red in the text area), check it in the text area at the bottom and try to fix it, if there is no error, click again on Configure, the Generate button should be enabled now, finally click on Generate.
in my cmake this red... the text area say it:

Check for working CXX compiler using: Visual Studio 9 2008
Check for working CXX compiler using: Visual Studio 9 2008 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working C compiler using: Visual Studio 9 2008
Check for working C compiler using: Visual Studio 9 2008 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Found external with STLport: D:/ryzom/external_stlport
Looking for include files CMAKE_HAVE_PTHREAD_H
Looking for include files CMAKE_HAVE_PTHREAD_H - not found.
Found Threads: TRUE
Found LibXml2: D:/ryzom/external_stlport/lib/libxml2.lib
Found ZLIB: D:/ryzom/external_stlport/lib/zlib.lib
Found PNG: D:/ryzom/external_stlport/lib/libpng.lib
Found Jpeg: D:/ryzom/external_stlport/lib/libjpeg.lib
Found STLport: optimized;D:/ryzom/external_stlport/lib/stlport_statix.lib;debug;D:/ryzom/external_stlport/lib/stlportd_statix.lib
Found Windows SDK.
Found CppTest: optimized;D:/ryzom/external_stlport/lib/cpptest.lib;debug;D:/ryzom/external_stlport/lib/cpptestd.lib
Found DIRECTXSDK: C:/Program Files/Microsoft DirectX SDK (June 2010)
Found FreeType: D:/ryzom/external_stlport/lib/freetype.lib
Found Ogg: D:/ryzom/external_stlport/lib/libogg.lib
Found Vorbis: D:/ryzom/external_stlport/lib/libvorbis.lib
Found OpenAL: D:/ryzom/external_stlport/lib/OpenAL32.lib
Found EFX-Util: D:/ryzom/external_stlport/lib/EFX-Util.lib
Found Squish: optimized;D:/ryzom/external_stlport/lib/squish.lib;debug;D:/ryzom/external_stlport/lib/squishd.lib
Found Lua51: D:/ryzom/external_stlport/lib/lua.lib
Boost version: 1.45.0
Found Luabind: optimized;D:/ryzom/external_stlport/lib/luabind.lib;debug;D:/ryzom/external_stlport/lib/luabind_d.lib
Found CURL: D:/ryzom/external_stlport/lib/curl.lib
Warning: Libwww: Library not found: LIBWWWFTP_LIBRARY
Warning: Libwww: Library not found: LIBWWWGOPHER_LIBRARY
Warning: Libwww: Library not found: LIBWWWNEWS_LIBRARY
Warning: Libwww: Library not found: LIBWWWTELNET_LIBRARY
Warning: Libwww: Library not found: LIBWWWXML_LIBRARY
Warning: Libwww: Library not found: LIBWWWZIP_LIBRARY
Warning: Libwww: Library not found: LIBXMLPARSE_LIBRARY
Warning: Libwww: Library not found: LIBXMLTOK_LIBRARY
Warning: Libwww: Library not found: LIBWWWSSL_LIBRARY
Warning: Libwww: Library not found: LIBMD5_LIBRARY
Warning: Libwww: Library not found: LIBPICS_LIBRARY
Linking with D:/ryzom/external_stlport/lib/wwwcache.lib
Linking with D:/ryzom/external_stlport/lib/wwwstream.lib
Linking with D:/ryzom/external_stlport/lib/wwwdir.lib
Linking with D:/ryzom/external_stlport/lib/wwwinit.lib
Linking with D:/ryzom/external_stlport/lib/gnu_regex.lib
Linking with optimized;D:/ryzom/external_stlport/lib/ssleay32.lib;D:/ryzom/external_stlport/lib/libeay32.lib;debug;D:/ryzom/external_stlport/lib/ssleay32.lib;D:/ryzom/external_stlport/lib/libeay32.lib
Found LibWWW: D:/ryzom/external_stlport/lib/wwwapp.lib;D:/ryzom/external_stlport/lib/wwwcore.lib;D:/ryzom/external_stlport/lib/wwwfile.lib;D:/ryzom/external_stlport/lib/wwwhtml.lib;D:/ryzom/external_stlport/lib/wwwhttp.lib;D:/ryzom/external_stlport/lib/wwwmime.lib;D:/ryzom/external_stlport/lib/wwwcache.lib;D:/ryzom/external_stlport/lib/wwwstream.lib;D:/ryzom/external_stlport/lib/wwwtrans.lib;D:/ryzom/external_stlport/lib/wwwutils.lib;D:/ryzom/external_stlport/lib/wwwdir.lib;D:/ryzom/external_stlport/lib/wwwinit.lib;D:/ryzom/external_stlport/lib/wwwmux.lib;D:/ryzom/external_stlport/lib/gnu_regex.lib;D:/ryzom/external_stlport/lib/wwwcache.lib;D:/ryzom/external_stlport/lib/wwwstream.lib;D:/ryzom/external_stlport/lib/wwwdir.lib;D:/ryzom/external_stlport/lib/wwwinit.lib;D:/ryzom/external_stlport/lib/gnu_regex.lib;optimized;D:/ryzom/external_stlport/lib/ssleay32.lib;D:/ryzom/external_stlport/lib/libeay32.lib;debug;D:/ryzom/external_stlport/lib/ssleay32.lib;D:/ryzom/external_stlport/lib/libeay32.lib
Found MySQL: D:/ryzom/external_stlport/include, optimized;D:/ryzom/external_stlport/lib/mysqlclient.lib;debug;D:/ryzom/external_stlport/lib/mysqlclientd.lib
Configuring done

what I do to resolve this error?

Found external with STLport: D:/ryzom/external_stlport
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
Could NOT find MFC (missing: MFC_DIR)
Call Stack (most recent call first):
CMakeModules/FindCustomMFC.cmake:32 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:111 (FIND_PACKAGE)

Configuring incomplete, errors occurred!

thank´s


Replies (2)

RE: Compilation in Windows with CMake - Added by ragnar-gd almost 8 years ago

From what I experienced myself, you changed the config by setting WITH_MFC, right?

Probably you are not using Visual Studio SP1, but Visual C++ Express 2008 SP1 - is that right?

If both is true, you simply happen to experience, that MFC ist not installed on your computer, so you can't use that option, and have to un-set it again.

What did I do after experiencing this "problem"?

I completely emptied my build-folder.
I did NOT change any of the default options, that is, i did NOT set any option seen on http://dev.ryzom.com/wiki/ryzom/BuildForWindowsCmake
I built the solution as is described on http://dev.ryzom.com/wiki/ryzom/BuildForWindowsCmake with CMake GUI

I started the *.sln by double-clicking on it.

I configured "Release" (as in "Express" the default is "Debug", which did not work out of the box - this is NOT in the instructions)

I right-clicked on "client" project on the left tree, then clicked on "Set as Startup Project".
I right-clicked on "client" project on the left tree, then clicked on "Properties".
In Configuration Properties->Debugging->Working Directory i set the path to the client directory, for me it's R:\ryzom_client. I pressed "OK"

I hit F7 to compile, link, etc. (funny, I did expect that CMake did that - but it didn't for me...).
This will take some time, depending on you rig.

Then I hit Ctrl-F5 to run it (F5, as in the instruction nearly does the same).

Something's starting up, then I have an error-message, but that probably won't hit you...

RE: Compilation in Windows with CMake - Added by molator almost 8 years ago

MFC is only required for the tools and max plugin.

If you're using VS 2008 Express, you don't have the MFC, but here is a solution:
http://dev.ryzom.com/wiki/ryzom/BuildMFCCodeVC++Express

(1-2/2)