Page 1 of 1

Compiling minetest on a mac

PostPosted: Sun Feb 19, 2012 16:16
by javajames
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:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
*** 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

PostPosted: Sun Feb 19, 2012 16:17
by javajames
(with just "make"):
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
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

PostPosted: Sun Feb 19, 2012 16:19
by javajames
EDITED: i forgot to make clean

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

PostPosted: Sun Feb 19, 2012 18:31
by kahrl
Maybe you have more luck with this. If not, try writing toabi a mail.

PostPosted: Sun Feb 19, 2012 18:32
by javajames
Now that. Is a good idea. Thank you