I'm trying to test out my irrlicht based application on MacOSX, so I need to compile the latest trunk (using some stuff from there) of Irrlicht on MacOSX. However I'm having some trouble. I am using MacOSOX 10.4.11
Here is what I've tried:
I tried to use the supplied XCode project in source/Irrlicht/MacOSX/MacOSX.xcodeproj and build irrlicht in release mode. That part worked. Then I copied the build library from source/Irrlicht/MacOSX/build/Release/libIrrlicht.a to lib/Linux (that is where the examples makefiles look for it). Finally, I tried to build the 01.HelloWorld example using make. The result was this:
Code: Select all
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/01.HelloWorld -L../../lib/Linux -lIrrlicht -L/usr/X11R6/lib -lGL -lXxf86vm -lXext -lX11
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
.objc_class_name_NSApplication
.objc_class_name_NSAutoreleasePool
.objc_class_name_NSBundle
.objc_class_name_NSEvent
.objc_class_name_NSOpenGLContext
.objc_class_name_NSOpenGLPixelFormat
.objc_class_name_NSString
.objc_class_name_NSWindow
_CFArrayApplyFunction
_CFArrayGetCount
_CFArrayGetTypeID
_CFArrayGetValueAtIndex
_CFBooleanGetValue
_CFDictionaryGetTypeID
_CFDictionaryGetValue
_CFGetTypeID
_CFNumberGetValue
_CFRelease
_CFStringGetCString
_CFStringGetSystemEncoding
_CFUUIDGetConstantUUIDWithBytes
_CFUUIDGetUUIDBytes
_CGCaptureAllDisplays
_CGDisplayAvailableModes
_CGDisplayBestModeForParameters
_CGDisplayBounds
_CGDisplayCurrentMode
_CGDisplayHideCursor
_CGDisplayIDToOpenGLDisplayMask
_CGDisplayPixelsHigh
_CGDisplayPixelsWide
_CGDisplayShowCursor
_CGDisplaySwitchToMode
_CGLChoosePixelFormat
_CGLClearDrawable
_CGLCreateContext
_CGLDestroyContext
_CGLDestroyPixelFormat
_CGLFlushDrawable
_CGLSetFullScreen
_CGLSetParameter
_CGMainDisplayID
_CGSetLocalEventsSuppressionInterval
_CGWarpMouseCursorPosition
_IOCreatePlugInInterfaceForService
_IOIteratorNext
_IOMasterPort
_IOObjectRelease
_IORegistryEntryCreateCFProperties
_IORegistryEntryGetParentEntry
_IOServiceGetMatchingServices
_IOServiceMatching
_NSApp
_NSDefaultRunLoopMode
_SetSystemUIMode
___CFConstantStringClassReference
_kCFAllocatorDefault
_objc_msgSend
_objc_msgSend_fpret
.objc_class_name_NSObject
_objc_msgSendSuper
_objc_msgSend_stret
.objc_class_name_NSArray
.objc_class_name_NSPasteboard
_NSStringPboardType
collect2: ld returned 1 exit status
make: *** [all_linux] Error 1
Code: Select all
LDFLAGS += -dylib_file \
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib \
-framework Cocoa -framework OpenGL -framework Carbon
Code: Select all
_IOCreatePlugInInterfaceForService
_IOIteratorNext
_IOMasterPort
_IOObjectRelease
_IORegistryEntryCreateCFProperties
_IORegistryEntryGetParentEntry
_IOServiceGetMatchingServices
_IOServiceMatching
Code: Select all
g++ -I../../include -Izlib -Ijpeglib -Ilibpng -DIRRLICHT_EXPORTS=1 -MM -MF COSOperator.d COSOperator.cpp
COSOperator.cpp:14:26: error: OSXClipboard.h: No such file or directory
make sharedlib_osx failed with the following error:
Code: Select all
ld: Undefined symbols:
__ZN3irr16CIrrDeviceMacOSX5flushEv
_OSXCopyFromClipboard
_OSXCopyToClipboard
__ZN3irr14createDeviceExERKNS_27SIrrlichtCreationParametersE
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: internal link edit command failed
Code: Select all
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
irr::createDeviceEx(irr::SIrrlichtCreationParameters const&)