Qt + VTK +基于MAC版本的编译和执行
我已经在 Mac osx 10.6.7 上使用 Qt 成功构建并编译了 VTK。然后根据要求我更改了CMAKE中的配置,使目标版本为10.5。我再次用 Qt 编译了 VTK,并且成功了,并运行了 cones 教程示例。但是每当我编译使用 QVTK Widget 构建的自己的应用程序时,我都会收到此错误
“与开发商联系以确保 应用程序适用于此版本的 MacOS X. 您可能需要重新安装 应用程序...”
以下是我的 CMAKE 配置
BUILD_EXAMPLES checked
BUILD_SHARED_LIBS checked
CMAKE_OSX_ARCHITECTURES x86_64
CMAKE_OSX_DEPLOYMENT_TARGET 10.5
CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.5.sdk
VTK_USE_COCOA checked
VTK_USE_CARBON unchecked
VTK_USE_QT checked
VTK_USE_QVT_QTOPENGL checked
我还在终端上运行了以下命令
export MACOSX_DEPLOYMENT_TARGET=10.5
我的应用程序中的所有内容都使用 QtCreator 和 XCode 进行编译,但不会通过给出如上所述的错误来执行。
在上面,如果我更改所有内容10.5 到 10.6 一切都开始工作。但根据要求,我需要让它与 10.5 兼容。
可以告诉我我还需要做什么吗?
有人 拉希德
I have successfully Built and compiled VTK with Qt on Mac osx 10.6.7. Then according to the requirements I changed configuration in CMAKE so that the target version is 10.5. I compiled VTK with Qt again and it was successful, with cones tutorials examples running. But whenever i compile my own application which is built using QVTK Widget i got this error
"Check with the developer to make sure
Application works with this version of MacOS
X. You may need to reinstall the
application ..."
Following is my CMAKE Configuration
BUILD_EXAMPLES checked
BUILD_SHARED_LIBS checked
CMAKE_OSX_ARCHITECTURES x86_64
CMAKE_OSX_DEPLOYMENT_TARGET 10.5
CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.5.sdk
VTK_USE_COCOA checked
VTK_USE_CARBON unchecked
VTK_USE_QT checked
VTK_USE_QVT_QTOPENGL checked
I have also ran following command on the terminal
export MACOSX_DEPLOYMENT_TARGET=10.5
Every thing in my application compiles with both QtCreator and XCode but does not execute by giving the error as mentioned above.
In the above if i change everything from 10.5 to 10.6 everything start working. But according to requirement i need to have it compatible with 10.5.
Can someone please let me know is there anything else i need to do? Am i missing something here?
Regards,
Rashid
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论