Trying the MacOS build again

B.J. bj at koupps.net
Tue Jan 23 15:52:09 UTC 2018


It’s running, this time WITH images!  I did have to change 1 thing in the guide though.  There’s no Plugins folder in the .app bundle so I had to make that explicitly for this to work:

cp -R ~/Qt5.9.1/5.9.1/clang_64/plugins/imageformats bin/gcompris-qt.app/Contents/PlugIns/

Otherwise it just put the imageformats plugins in the root of the newly made PlugIns folder, instead of making imageformats a folder inside of PlugIns, and the executable couldn’t find any images at runtime.

BUT there’re new problems with making the actual package (i.e. deployable):

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open file: /Users/bjcupps/src/gcompris-0.81/build/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.90-Darwin/gcompris-qt.app/Contents/plugins/mediaservice/libqavfmediaplayer.dylib (No such file or directory)
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.10/Modules/BundleUtilities.cmake:879 (message):
  Command failed:

   'install_name_tool' '-id' '@executable_path/../MacOS/libqavfmediaplayer.dylib' '/Users/bjcupps/src/gcompris-0.81/build/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.90-Darwin/gcompris-qt.app/Contents/plugins/mediaservice/libqavfmediaplayer.dylib'
Call Stack (most recent call first):
  /Applications/CMake.app/Contents/share/cmake-3.10/Modules/BundleUtilities.cmake:953 (fixup_bundle_item)
  /Users/bjcupps/src/gcompris-0.81/build/src/core/FixBundle.cmake:2 (fixup_bundle)
  /Users/bjcupps/src/gcompris-0.81/build/src/core/cmake_install.cmake:170 (include)
  /Users/bjcupps/src/gcompris-0.81/build/src/cmake_install.cmake:38 (include)
  /Users/bjcupps/src/gcompris-0.81/build/cmake_install.cmake:45 (include)



I’ll see if I can remember how/if I resolved that, but it might just be about copying more plugins from what it sounds like.  LASTLY…should I update the .icns file to the new orange icon?  As much as I love the yellow airplane I know it was changed on Windows and Android.  Thanks

bj

> On Jan 23, 2018, at 08:38, Johnny Jazeix <jazeix at gmail.com> wrote:
> 
> I just found https://www.ynonperek.com/2017/09/18/building-gcompris-qt-on-macos/ <https://www.ynonperek.com/2017/09/18/building-gcompris-qt-on-macos/> that could help (it misses a elseif in the CMakeLists.txt).
> 
> I was waiting for more change on the full gcompris package but I will merge it tonight.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/gcompris-devel/attachments/20180123/3cd4e2b9/attachment-0001.html>


More information about the GCompris-devel mailing list