can't make some tools build with CMAKE
Added by Mordraug over 2 years ago
Hello,
I'm new here, so I may lack some knowledge.
My problem is, that I can't build world edit and george tools projects in cmake.
I believe appeals to all projects depending on MFC.
I have DDK and QT installed, "WITH_MFC" and "WITH_QT" checked, and paths set.
Though, the only projects I get form Ryzom, Tools, World is Land Export and Primitive Export.
Any ideas? ;)
Replies (8)
RE: can't make some tools build with CMAKE - Added by kervala over 2 years ago
Please could we have some details on your errors ?
About Qt, currently, you need to have Qt compiled with STLport to be able to use it, or uncheck WITH_STLPORT in cmake-gui.
RE: can't make some tools build with CMAKE - Added by Mordraug over 2 years ago
The thing is, there are no errors everything seems to be fine.
DEBUG size_t is 4 DEBUG off_t is 4 Found external with STLport: D:/Projects/external Found external with STLport: D:/Projects/external Found STLport: optimized;D:/Projects/external/lib/stlport_statix.lib;debug;D:/Projects/external/lib/stlportd_statix.lib Found Squish: optimized;D:/Projects/external/lib/squish.lib;debug;D:/Projects/external/lib/squishd.lib Boost version: 1.45.0 Found Luabind: optimized;D:/Projects/external/lib/luabind_stlport.lib;debug;D:/Projects/external/lib/luabind_stlportd.lib Linking with D:/Projects/external/lib/wwwcache.lib Linking with D:/Projects/external/lib/wwwstream.lib Linking with D:/Projects/external/lib/wwwdir.lib Linking with D:/Projects/external/lib/wwwinit.lib Linking with D:/Projects/external/lib/gnu_regex.lib Linking with optimized;D:/Projects/external/lib/ssleay32.lib;debug;D:/Projects/external/lib/ssleay32.lib;optimized;D:/Projects/external/lib/libeay32.lib;debug;D:/Projects/external/lib/libeay32.lib Found MySQL: D:/Projects/external/include/mysql, optimized;D:/Projects/external/lib/mysqlclient.lib;debug;D:/Projects/external/lib/mysqlclientd.lib;optimized;D:/Projects/external/lib/ssleay32.lib;debug;D:/Projects/external/lib/ssleay32.lib;optimized;D:/Projects/external/lib/libeay32.lib;debug;D:/Projects/external/lib/libeay32.lib Configuring doneThe problem is, that even though i have "WITH_MFC" checked, it does not build world editor projects.
My D:\Projects\build\ryzom\tools\leveldesign\world_editor contains only 3 folders after i generate using cmake:
- CMakeFiles
- land_export
- land_export_lib
CMAKE config:
http://s3d4.turboimagehost.com/sp/79fd74d052e3bd361323881ed9c70f41/ss1.jpg
http://s3d4.turboimagehost.com/sp/8a8e0b1e4f83d65cde1be40986b06d16/ss2.jpg
http://s3d4.turboimagehost.com/sp/10a1612b79dda9bdd856f3e020177a42/ss3.jpg
RE: can't make some tools build with CMAKE - Added by kervala over 2 years ago
You have to enable WITH_RYZOM_TOOLS to be able to compile world_editor and georges_editor
RE: can't make some tools build with CMAKE - Added by Mordraug over 2 years ago
It's enabled, you can check what I have enabled on screenshots.
Any other ideas? Can I somehow check if cmake recognizes WITH_MFC as checked? Sorry, I'm not really familiar with this tool.
RE: can't make some tools build with CMAKE - Added by kervala over 2 years ago
Hum sorry, it seems like it didn't find MFC headers :(
MFC_DIR should be the root folder where it can find "include" and "lib" directories.
RE: can't make some tools build with CMAKE - Added by Mordraug over 2 years ago
huh, strange, my mfc folder only contains headers and sources. no folders at all.
EDIT: I created new mfc folder where i put include and lib files, but now i get:
Found MFC: D:/mfc
But still, no mfc-dependent tools projects built
mfc folder structure looks like that:
D:\mfc
-include
-(all headers and sources with afxwin.h)
-lib
-(all i386 libs)
-amd65
-(all amd64 libs)
RE: can't make some tools build with CMAKE - Added by kervala over 2 years ago
I never tried to use MFC 4.2 from DDK.
I personally installed VC++ 2010 Pro trial, copied the whole atlmfc folder, uninstalled it, installed VC++ 2010 Express. When I define MFC_DIR to the atlmfc dir I copied before, it works out of the box.
The VC++ 2010 Pro should work also.
You'll have to wait for help from people who used MFC from DDK.
My atlmfc structure is :
- include (with afx*.h, atl*.h etc...)
- lib (with mfc100*.lib, amd64 and ia64 folders)
- src (with atl, mfc, mfcm folders)
RE: can't make some tools build with CMAKE - Added by Mordraug over 2 years ago
Ok, I'll look for it.
It would be easier if someone would just upload whole "atlmfc" folder somewhere, but it's probably against copyrights.
EDIT: I found atlmfc.zip online, I'm going to download it and test.
(1-8/8)