Im trying to compile minetest on a mac, i have managed to generate the cmake files (currently as unix makefiles) but everything up to linking works when i try to build the project. At this point i get several undefined symbols errors, they apear to be related to the irrlicht engine. Can anyone who has successfully compiled minetest on a mac give me any advice? I have installed the jpeg libraries and headers to the default directory (/usr/lib and /usr/include) and i have the paths set for irrlicht in the directory above the minetest files:
*** Will build version 0.3.1 ***
IRRLICHT_SOURCE_DIR = /Users/James/Documents/xcode/minetest-stuff/irrlicht-1.7.2/source
IRRLICHT_INCLUDE_DIR = /Users/James/Documents/xcode/minetest-stuff/irrlicht-1.7.2/include
IRRLICHT_LIBRARY = /Users/James/Documents/xcode/minetest-stuff/irrlicht-1.7.2/lib
GetText disabled
Using project jthread library
Found system sqlite3 header file in /usr/include
Found system sqlite3 library /usr/lib/libsqlite3.dylib
Configuring done
~Errors in next reply
EDITED: because i forgot to make clean
Last edited by javajames on Sun Feb 19, 2012 16:47, edited 1 time in total.
Undefined symbols:
"irr::video::IdentityMaterial", referenced from:
__ZN3irr5video16IdentityMaterialE$non_lazy_ptr in map.cpp.o
__ZN3irr5video16IdentityMaterialE$non_lazy_ptr in player.cpp.o
__ZN3irr5video16IdentityMaterialE$non_lazy_ptr in MyBillboardSceneNode.cpp.o
__ZN3irr5video16IdentityMaterialE$non_lazy_ptr in farmesh.cpp.o
__ZN3irr5video16IdentityMaterialE$non_lazy_ptr in camera.cpp.o
__ZN3irr5video16IdentityMaterialE$non_lazy_ptr in clouds.cpp.o
(maybe you meant: __ZN3irr5video16IdentityMaterialE$non_lazy_ptr)
"irr::core::IdentityMatrix", referenced from:
__ZN3irr4core14IdentityMatrixE$non_lazy_ptr in MyBillboardSceneNode.cpp.o
__ZN3irr4core14IdentityMatrixE$non_lazy_ptr in camera.cpp.o
__ZN3irr4core14IdentityMatrixE$non_lazy_ptr in game.cpp.o
(maybe you meant: __ZN3irr4core14IdentityMatrixE$non_lazy_ptr)
"_createDevice", referenced from:
_main in main.cpp.o
Thanks in advanced - also i didnt want to put this in your development section, as it says "noob free" and im only starting out with advanced C++, so feel free to tell me to move, im just trying not to annoy anyone
EDIT: also worth noting that i used the majority of the cmake options found with the readme for compiling on windows, but with a few alterations for mac, also, with irrlicht-1.7.2 and irrlicht-1.7.1
Last edited by javajames on Sun Feb 19, 2012 16:48, edited 1 time in total.