Question / Help After creating DMG or APP it wont open on a different system

codey22

New Member
Hi,

I created a DMG file by doing the following:

sudo cmake .. -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt/5.14.2 && sudo make package

It creates a DMG and runs on my system. But when it's on a different system it wont run as the libraries aren't bundled (file size only about 15MB).


I also tried using this script to create an APP file:

python build_app.py -d rundir/RelWithDebInfo/ -n 1

As per this post: https://obsproject.com/forum/threads/mac-package-building.48767/

It creates an APP file of 115MB but when I try to run it it just crashes with the below error:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff3527c5b8 CFBundleCopyBundleURL + 9
1 QtCore 0x00000001035b4585 QLibraryInfo::location(QLibraryInfo::LibraryLocation) + 1477
2 QtCore 0x00000001035b478c QLibraryInfo::location(QLibraryInfo::LibraryLocation) + 1996
3 QtCore 0x000000010378f759 QCoreApplication::libraryPathsLocked() + 1625
4 QtCore 0x0000000103790051 QCoreApplication::addLibraryPath(QString const&) + 193
5 obs 0x0000000100a10e10 main + 3264 (obs-app.cpp:2472)
6 libdyld.dylib 0x00007fff6f220cc9 start + 1

Can anyone help?

It all runs perfectly on my system but im trying to create a package that will run on anyones system.

Thanks.
 
Top