Using irrlicht with Mac/xcode

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
M4UNOT
Posts: 39
Joined: Sat Jun 26, 2010 3:06 pm
Location: Germany

Using irrlicht with Mac/xcode

Post by M4UNOT »

I downloaded " Irrlicht SDK 1.7.2 " ' to use it on my mac, but when i click " Build and Run " and after it done, it can't find the the app

it says:


CompileC build/MacOSX.build/Debug/libIrrlicht.a.build/Objects-normal/i386/CIrrDeviceMacOSX.o /irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm normal i386 objective-c++ com.apple.compilers.gcc.4_2
cd /irrlicht-1.7.2/source/Irrlicht/MacOSX
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.2 -x objective-c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -gdwarf-2 -I/irrlicht-1.7.2/source/Irrlicht/MacOSX/build/MacOSX.build/Debug/libIrrlicht.a.build/Irrlicht.hmap -F/irrlicht-1.7.2/source/Irrlicht/MacOSX/build/Debug -I/irrlicht-1.7.2/source/Irrlicht/MacOSX/build/Debug/include -I../../../include -I/irrlicht-1.7.2/source/Irrlicht/MacOSX/build/MacOSX.build/Debug/libIrrlicht.a.build/DerivedSources/i386 -I/irrlicht-1.7.2/source/Irrlicht/MacOSX/build/MacOSX.build/Debug/libIrrlicht.a.build/DerivedSources -DMACOSX -D_DEBUG -include /var/folders/w1/w1PRCRMnFk4CJv-F4-en5E+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/MacOSX_Prefix-euovvscioydyedfabnweyxahsnjx/MacOSX_Prefix.pch -c /irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm -o /irrlicht-1.7.2/source/Irrlicht/MacOSX/build/MacOSX.build/Debug/libIrrlicht.a.build/Objects-normal/i386/CIrrDeviceMacOSX.o

/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm: In member function 'bool irr::CIrrDeviceMacOSX::createWindow()':
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:575: warning: 'CGDisplayBestModeForParameters' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:487)
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:575: warning: 'CGDisplayBestModeForParameters' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:487)
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:578: warning: 'CGDisplayCurrentMode' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:507)
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:578: warning: 'CGDisplayCurrentMode' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:507)
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:582: warning: 'CGDisplaySwitchToMode' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:512)
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:582: warning: 'CGDisplaySwitchToMode' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:512)
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:614: warning: 'CGLSetFullScreen' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenGL.framework/Headers/OpenGL.h:70)
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:614: warning: 'CGLSetFullScreen' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenGL.framework/Headers/OpenGL.h:70)
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm: In member function 'virtual void irr::CIrrDeviceMacOSX::setWindowCaption(const wchar_t*)':
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:888: warning: 'stringWithCString:length:' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:385)
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm: In member function 'void irr::CIrrDeviceMacOSX::setMouseLocation(int, int)':
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:1050: warning: 'CGSetLocalEventsSuppressionInterval' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGRemoteOperation.h:373)
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:1050: warning: 'CGSetLocalEventsSuppressionInterval' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGRemoteOperation.h:373)
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm: In member function 'virtual irr::video::IVideoModeList* irr::CIrrDeviceMacOSX::getVideoModeList()':
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:1452: warning: 'CGDisplayAvailableModes' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:481)
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:1452: warning: 'CGDisplayAvailableModes' is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:481)


Build Succeeded
26 warnings


No launchable executable present at path.

/Irrlicht SDK 1.7.2/source/Irrlicht/MacOSX/build/Debug/HelloWorld_dbg.app

i searched for the " HelloWorld_dbg.app ", but can't find it, i think it dident create it...
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Using irrlicht with Mac/xcode

Post by Nadro »

For remove a most deprecated methods in MacOSX 10.6 and 10.7 please use this patch (second version):
http://sourceforge.net/tracker/?func=de ... tid=540676
I don't know how looks XCode project in 1.7.2, but in the latest Irrlicht version from SVN (trunk) Your builded applications should be placed in bin/MacOSX. I think that a scenario for a stable version should be similar to version from SVN (You should also check a release build method, so build for->archiving).
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
M4UNOT
Posts: 39
Joined: Sat Jun 26, 2010 3:06 pm
Location: Germany

Re: Using irrlicht with Mac/xcode

Post by M4UNOT »

Could you please tell me step, buy step how to use/setup the patch?
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Using irrlicht with Mac/xcode

Post by Nadro »

Do You have Irrlicht from a SVN (trunk) already downloaded?
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
M4UNOT
Posts: 39
Joined: Sat Jun 26, 2010 3:06 pm
Location: Germany

Re: Using irrlicht with Mac/xcode

Post by M4UNOT »

Yes, but i fixed it anyway, thanks :wink:
Post Reply