我已经下载了“ Irrlicht SDK 1.7.2”以便在Mac上使用它,但是当我单击“ Build and Run”并完成后,它找不到该应用程序。
它说:
编译器
build / MacOSX.build / Debug / libIrrlicht.a.build / Objects-normal / i386 / CIrrDeviceMacOSX.o
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm
正常的i386 Objective-c ++ com.apple.compilers.gcc.4_2 cd
/irrlicht-1.7.2/source/Irrlicht/MacOSX setenv LANG en_US.US-ASCII
/开发人员/usr/bin/gcc-4.2 -x Objective-c ++ -arch i386
-fmessage-length = 0-管道-Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn类型-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-包括/var/folders/w1/w1PRCRMnFk4CJv-F4-en5E+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/MacOSX_Prefix-euovvscioydyedfabnweyxahsnjx/MacOSX_Prefix。
-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:
在成员函数'bool irr :: CIrrDeviceMacOSX :: createWindow()'中:
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:575:
警告:“ CGDisplayBestModeForParameters”已弃用(在以下位置声明)
/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:
警告:“ CGDisplayBestModeForParameters”已弃用(在以下位置声明)
/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:
警告:不推荐使用“ CGDisplayCurrentMode”(声明为
/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:
警告:不推荐使用“ CGDisplayCurrentMode”(声明为
/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:
警告:不建议使用“ CGDisplaySwitchToMode”(声明为
/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:
警告:不建议使用“ CGDisplaySwitchToMode”(声明为
/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:
警告:“ CGLSetFullScreen”已弃用(声明于
/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:
警告:“ CGLSetFullScreen”已弃用(声明于
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenGL.framework/Headers/OpenGL.h:70)
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:
在成员函数'虚拟虚空
irr :: CIrrDeviceMacOSX :: setWindowCaption(const wchar_t *)':
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:888:
警告:不建议使用“ stringWithCString:length:”(声明为
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:385)
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:
在成员函数'void irr :: CIrrDeviceMacOSX :: setMouseLocation(int,
int)':
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:1050:
警告:“ CGSetLocalEventsSuppressionInterval”已弃用(已声明
在
/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:
警告:“ CGSetLocalEventsSuppressionInterval”已弃用(已声明
在
/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:
在成员函数'virtual irr :: video :: IVideoModeList *
irr :: CIrrDeviceMacOSX :: getVideoModeList()':
/irrlicht-1.7.2/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:1452:
警告:不推荐使用“ CGDisplayAvailableModes”(声明为
/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:
警告:不推荐使用“ CGDisplayAvailableModes”(声明为
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:481)
建立成功的26条警告
路径上没有可启动的可执行文件。
/错误SDK
1.7.2 /源代码/Irrlicht/MacOSX/build/Debug/HelloWorld_dbg.app
我搜索了HelloWorld_dbg.app
,但找不到它。我不认为它是创建的。
最佳答案
Irrlicht不是应用程序,而是图书馆。该SDK还包含一些教程,如果您将其编译,则将获得一些演示应用程序。
在Xcode中,有多个目标可供选择。如果选择libIrrlicht.a
,则仅构建库,因此“构建并运行”没有意义(没有任何要运行的内容)。如果您通过逐个选择目标作为目标来编译教程,则“构建并运行”将启动所选的应用程序。但是,如果您选择了我想已完成的目标All
,则将构建演示应用程序,但您必须手动运行它们(在Xcode之外)或告诉Xcode为All
目标运行哪个可执行文件。
提醒一下,我怀疑1.7.2 SDK中的示例是否可以在Mac上开箱即用地运行,您可能需要对其进行一些调整(以使用OpenGL设备)。
关于c++ - Mac/xcode的C/C++ irrlicht,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/8678842/