Page 1 of 1

Compiling Irrlicht on Mac

Posted: Thu May 11, 2017 11:49 am
by Donald Duck
I'm trying to get Irrlicht to work on Mac 10.11 El Capitan. I compiled Irrlicht myself by compiling the project ~/Downloads/irrlicht/source/Irrlicht/MacOSX/MacOSX.xcodeproj with XCode 7.3.1. This compiled successfully and mad a file called libIrrlicht.a. The problem is that when I use Irrlicht in a project, the project won't compile. I get an error saying "symbol(s) not found for architecture x86_64" and a lot of warnings that all basically say the same thing:

Image

I'm new to Mac and have no idea what I'm doing wrong. Could someone please explain how I can get this to work or send me a working libIrrlicht.a file?

Re: Compiling Irrlicht on Mac

Posted: Mon May 15, 2017 11:10 am
by Donald Duck
I added the following flags and it worked:

Code: Select all

-framework CoreFoundation -framework CoreGraphics -framework AppKit -stdlib=libstdc++ -lc++