应用程序文件没有在不同的mac上运行
app-file not running on different mac
我用Qt创建了一个应用程序文件。它包含openGL、Qt和c++代码。
我的专业文件如下:
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
HEADERS += openglscene.h
glwidget.h
QT += opengl
OTHER_FILES +=
RESOURCES +=
images.qrc
mac: LIBS += -framework GLUT
else:unix|win32: LIBS += -lGLUT
FORMS +=
当我试图在不同的mac上运行应用程序文件时,我收到以下错误消息:
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Library not loaded: /Developer/QtSDK/Desktop/Qt/473/gcc/lib/QtOpenGL.framework/Versions/Current/QtOpenGL
Referenced from: /Users/USER/Desktop/*/model.app/Contents/MacOS/model
Reason: image not found
其他Mac电脑没有安装Qt。似乎我需要以某种方式包含一个openGL框架。如何才能让我的应用程序的其他用户能够使用它?
您需要在应用程序捆绑包中包含所有应用程序的依赖项,包括Qt。qmake不会自己处理这个问题。Qt附带了一个小工具macdeployqt
,它可以满足您的需要。一个更复杂的解决方案是使用CMake和DeployQt4.cmake
相关文章:
- Mac os x app bundle 在下载并运行时崩溃,但在终端或更改 Info.plist 时运行良好
- 在终端中运行可执行文件与在Mac查找器中打开
- Homebrew OS X OpenCV - 在另一台Mac上运行时寻找dylib
- 我无法在C++(Clion,Mac OS)中运行Gurobi
- 运行OpenMP,"clang: error: unsupported option '-fopenmp'"的Mac。
- 在 Mac OS 上运行 x11
- 为什么在Windows和Mac OS中运行UnionFind时存在广泛的运行时变化?
- 在 Mac OSX 上运行 Sublime Text 3 中的 C++
- 运行Mac OS X C 程序与OpenGL 3.3一起工作
- 在另一台 Mac 上运行应用程序
- 无法在Mac终端中运行qmake
- 如何通过C 在Mac OS中运行外部程序
- 为什么当我键入名称时我的可执行文件不会运行?(Mac OS X Mountain Lion)Mac OS X 10.8.
- 为什么这段代码在Mac和Red Hat中的运行方式如此不同
- 为什么我不能在 mac 上使用 g++ 运行这个简单的 c++ 代码
- 如何使用Eclipse for mac编译和运行C++程序
- 如何将运行 OS/X El Capitan 的 Mac 上的 clang 升级到 LLVM 3.8
- Opengl cpp 代码可在 Windows 和 Mac 上运行
- 无法在Xcode版本4.3.2的Mac OS X Lion 10.7.5上运行Matlab Mex文件
- C++:在Mac OS X,Qt 5.0上运行代码(在Linux中创建)