cinemascience / cinema_scope

A simple cross platform viewer for image-based databases
Other
2 stars 2 forks source link

build_installer_mac script fails #45

Open EthanS94 opened 5 years ago

EthanS94 commented 5 years ago

@dhrogers I can't get build_installer_mac to work locally. I have to change the paths around a bit to point to my qt binaries, so I included an echo of the full command run for each step. I am using qt's open source installer framework version 3.0.6 and qt 5.12.0 installed by brew.

Cleaning packages/cinemascope/data ...
rm -rf packages/cinemascope/data/cinema_scope.app

Copying current build ...
cp -rf ../build/release/cinema_scope.app packages/cinemascope/data

Running mac delpoyment ...
/usr/local/opt/qt/bin/macdeployqt packages/cinemascope/data/cinema_scope.app

Creating installer ...
/Users/stam/qt-installer-framework-opensource-src-3.0.6/bin/binarycreator -t /Users/stam/qt-installer-framework-opensource-src-3.0.6/bin/installerbase -c config/config.xml -p packages cinema_scope.dmg

[5003] Warning: QFile::at: Cannot set file position 0
[5003] Critical: Error occurred while assembling the installer: Read failed after 0 bytes: Unknown error
Cleaning packages/cinemascope/data ...
rm -rf packages/cinemascope/data/cinema_scope.app
EthanS94 commented 5 years ago

@dhrogers I looked at this last Thursday. It turns out newer versions of qt are incompatible with qt installer framework's QFSFileEngine. In qt-installer-framework/src/libs/installer/binaryformat.h, changing the line "QFSFileEngine m_file;" to "QFile m_file;" and rebuilding fixed this for me