C/C++ Mac/xcode 的 irrlicht

发布于 2024-12-23 08:53:34 字数 5611 浏览 3 评论 0原文

我已经下载了“ Irrlicht SDK 1.7.2 ”以在我的Mac上使用它,但是当我单击“构建并运行”并完成后,它找不到该应用程序。

它说:

编译C 构建/MacOSX.build/调试/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 /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: 在成员函数“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: 在成员函数“virtual void”中 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 个警告

路径中没有可启动的可执行文件。

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

我搜索了 HelloWorld_dbg.app,但找不到它。我不认为它是被创建的。

I have downloaded " Irrlicht SDK 1.7.2 " ' to use it on my mac, but when I click " Build and Run" and after it's 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 don't think it was created.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

对不⑦ 2024-12-30 08:53:34

Irrlicht 不是一个应用,它是一个。 SDK 还包含一些教程,如果您编译它们,您将获得一些演示应用程序。

在 Xcode 中,有多个目标可供选择。如果您选择libIrrlicht.a,则仅构建库,因此“构建并运行”没有意义(没有任何运行 >)。如果您通过一一选择教程作为目标来编译教程,那么“构建并运行”将启动所选的应用程序。但是,如果您选择目标 All(我想您这样做了),那么演示应用程序就会构建,但您必须手动运行它们(在 Xcode 之外)或告诉 Xcode 为 运行哪个可执行文件>全部目标。


警告一句,我怀疑 1.7.2 SDK 中的示例能否在 Mac 上顺利运行,您可能需要稍微调整它们(以使用 OpenGL 设备)。

Irrlicht is not an app, it's a library. The SDK also contains a few tutorials and if you compile them, you will get some demo apps.

In Xcode, there are multiple targets to choose from. If you select libIrrlicht.a, only the library is built, so "build and run" doesn't make sense (there is nothing to run). If you compile the tutorials by selecting them one by one as targets, then "build and run" will start the selected app. But if you choose the target All, which I suppose you did, then the demo apps are built but you have to run them manually (out of Xcode) or tell Xcode which executable to run for the All target.


A word of warning, I doubt that the examples from the 1.7.2 SDK will run smoothly out of the box on your Mac, you will probably have to tweak them a little bit (to use the OpenGL device).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文