Trying the MacOS build again

B.J. bj at koupps.net
Wed Jan 24 17:45:27 UTC 2018


I’ve got to throw in the towel for a bit here…I think it’s close, I just can’t figure out why the qml folder (with only Box2D inside) lands outside the app bundle when it builds, nor why I can’t use the gcompris.entitlements file to do a codesign…but here’re the steps I’m following, basically—these are the product of the old README, my tinkering, and Johnny’s support & suggestions.  When I “make package” at the end I get an app that crashes, and lib/qml/Box2D.2.0 is outside the main tree.  I’d love a fresh look from anyone who’d like to offer:

git clone git://anongit.kde.org/gcompris.git
git submodule init
git submodule update
cd gcompris
cp platforms/macosx/config.h platforms/macosx/gcompris.pro platforms/macosx/gcompris.icns .
// need to figure out what should go in rcc & translations if created as per the README in platforms/macosx
{change src/core/CMakeLists.txt line 133, adding AND NOT APPLE after sailfishos}
{change src/core/CMakeLists.txt line 96, adding "set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)" in "APPLE" in "BUILD_STANDALONE"}
// ELIMINATE THIS STEP!  didn't work // {change src/core/CMakeLists.txt line 119, adding elseif(APPLE)  set(_lib_prefix "")
cd .. && mkdir build && cd build
export Qt5_DIR="/Users/faculty/Qt/5.9.3/clang_64/lib/cmake/Qt5"
export PATH=$PATH:/Users/faculty/Qt/5.9.3/clang_64/bin
qmake -config release ../gcompris/gcompris.pro
cmake -DQML_BOX2D_MODULE=submodule -DACTIVATION_MODE=internal ../gcompris
make
cp  -r  ~/Qt/5.9.3/clang_64/plugins  bin/gcompris-qt.app/Contents
{change ./src/core/cmake_install.cmake "clang_64/lib/qml" strings to "clang_64/qml"}
{change ./src/core/cmake_install.cmake "clang_64/lib/plugins" strings to "clang_64/plugins"}
// codesign --deep -s "3rd Party Mac Developer Application: Bruno Coudoin" --entitlements ../gcompris/platforms/macosx/gcompris.entitlements gcompris-qt.app
macdeployqt bin/gcompris.app 
// codesign --deep -s "3rd Party Mac Developer Application: Bruno Coudoin" gcompris.app/Contents/Resources/translations/*
// codesign --deep -s "3rd Party Mac Developer Application: Bruno Coudoin" gcompris.app/Contents/Resources/rcc/*
make package
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/gcompris-devel/attachments/20180124/3ddf5741/attachment.html>


More information about the GCompris-devel mailing list