[GCompris-devel] MacOSX deployment

Johnny Jazeix jazeix at gmail.com
Wed Jan 21 17:02:48 UTC 2015


Hi, i think the best is to let the list in copy because I don't have a
mac and I can only try to guess ;).

On this page http://gcompris.net/download/beta/, the binary(0.18) is a
.dmg package and the 0.26 is a .app. I'm not sure of the difference
but is there a way to list the content of the 0.18 package?

I thought that the Qt libraries would be copied inside the package but
it does not seem...

Johnny

2015-01-21 14:51 GMT+01:00 B.J. <bj at koupps.net>:
> Thanks for peeking.
>
> Here’s the otool -L output:
> $ otool -L gcompris-qt.app/Contents/MacOS/gcompris-qt
> gcompris-qt.app/Contents/MacOS/gcompris-qt:
> /Users/bjcupps/Qt/5.4/clang_64/lib/QtQuick.framework/Versions/5/QtQuick
> (compatibility version 5.4.0, current version 5.4.0)
> /Users/bjcupps/Qt/5.4/clang_64/lib/QtMultimedia.framework/Versions/5/QtMultimedia
> (compatibility version 5.4.0, current version 5.4.0)
> /Users/bjcupps/Qt/5.4/clang_64/lib/QtXmlPatterns.framework/Versions/5/QtXmlPatterns
> (compatibility version 5.4.0, current version 5.4.0)
> /Users/bjcupps/Qt/5.4/clang_64/lib/QtSvg.framework/Versions/5/QtSvg
> (compatibility version 5.4.0, current version 5.4.0)
> /Users/bjcupps/Qt/5.4/clang_64/lib/QtXml.framework/Versions/5/QtXml
> (compatibility version 5.4.0, current version 5.4.0)
> /Users/bjcupps/Qt/5.4/clang_64/lib/QtQml.framework/Versions/5/QtQml
> (compatibility version 5.4.0, current version 5.4.0)
> /Users/bjcupps/Qt/5.4/clang_64/lib/QtNetwork.framework/Versions/5/QtNetwork
> (compatibility version 5.4.0, current version 5.4.0)
> /Users/bjcupps/Qt/5.4/clang_64/lib/QtWidgets.framework/Versions/5/QtWidgets
> (compatibility version 5.4.0, current version 5.4.0)
> /Users/bjcupps/Qt/5.4/clang_64/lib/QtGui.framework/Versions/5/QtGui
> (compatibility version 5.4.0, current version 5.4.0)
> /Users/bjcupps/Qt/5.4/clang_64/lib/QtCore.framework/Versions/5/QtCore
> (compatibility version 5.4.0, current version 5.4.0)
> /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version
> 120.0.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
> 1213.0.0)
>
> let me know if you want the crash output when I redirect these to
> .app/Contents/Frameworks (with the Qt libraries copied over)…it wasn’t
> helpful to me anyway :)
>
> Here’s the build/bin directory’s .app tree:
> $ ls -lohR gcompris-qt.app
> total 0
> drwxr-xr-x  5 bjcupps   170B Jan 16 15:31 Contents
>
> gcompris-qt.app/Contents:
> total 8
> -rw-r--r--  1 bjcupps   1.1K Jan 16 15:31 Info.plist
> drwxr-xr-x  5 bjcupps   170B Jan 16 15:32 MacOS
> drwxr-xr-x  3 bjcupps   102B Jan 16 15:32 Resources
>
> gcompris-qt.app/Contents/MacOS:
> total 616
> -rwxr-xr-x   1 bjcupps   307K Jan 16 15:32 gcompris-qt
> drwxr-xr-x  91 bjcupps   3.0K Jan 16 15:32 rcc
> drwxr-xr-x   2 bjcupps    68B Jan 16 15:31 translations
>
> gcompris-qt.app/Contents/MacOS/rcc:
> total 46032
> -rw-r--r--  1 bjcupps   1.4K Jan 16 15:31 activities.rcc
> -rw-r--r--  1 bjcupps   458K Jan 16 15:31 advanced_colors.rcc
> -rw-r--r--  1 bjcupps    43K Jan 16 15:31 algebra_by.rcc
> -rw-r--r--  1 bjcupps    29K Jan 16 15:31 algebra_minus.rcc
> -rw-r--r--  1 bjcupps    30K Jan 16 15:31 algebra_plus.rcc
> -rw-r--r--  1 bjcupps   581K Jan 16 15:31 algorithm.rcc
> -rw-r--r--  1 bjcupps   153K Jan 16 15:31 align4-2players.rcc
> -rw-r--r--  1 bjcupps   4.9K Jan 16 15:31 align4.rcc
> -rw-r--r--  1 bjcupps    13K Jan 16 15:31 alphabet-sequence.rcc
> -rw-r--r--  1 bjcupps   372K Jan 16 15:31 ballcatch.rcc
> -rw-r--r--  1 bjcupps    62K Jan 16 15:31 braille_alphabets.rcc
> -rw-r--r--  1 bjcupps   1.0M Jan 16 15:31 canal_lock.rcc
> -rw-r--r--  1 bjcupps   178K Jan 16 15:31 click_on_letter.rcc
> -rw-r--r--  1 bjcupps    14K Jan 16 15:31 click_on_letter_up.rcc
> -rw-r--r--  1 bjcupps   6.8K Jan 16 15:31 clickanddraw.rcc
> -rw-r--r--  1 bjcupps   580K Jan 16 15:31 clickgame.rcc
> -rw-r--r--  1 bjcupps    33K Jan 16 15:31 clockgame.rcc
> -rw-r--r--  1 bjcupps   226K Jan 16 15:31 color_mix.rcc
> -rw-r--r--  1 bjcupps   5.6K Jan 16 15:31 color_mix_light.rcc
> -rw-r--r--  1 bjcupps   137K Jan 16 15:31 colors.rcc
> -rw-r--r--  1 bjcupps   3.0M Jan 16 15:32 core.rcc
> -rw-r--r--  1 bjcupps   228K Jan 16 15:31 drawnumber.rcc
> -rw-r--r--  1 bjcupps   167K Jan 16 15:31 enumerate.rcc
> -rw-r--r--  1 bjcupps   5.4M Jan 16 15:31 erase.rcc
> -rw-r--r--  1 bjcupps    16K Jan 16 15:31 erase_2clic.rcc
> -rw-r--r--  1 bjcupps    16K Jan 16 15:31 erase_clic.rcc
> -rw-r--r--  1 bjcupps   157K Jan 16 15:31 fifteen.rcc
> -rw-r--r--  1 bjcupps    57K Jan 16 15:31 followline.rcc
> -rw-r--r--  1 bjcupps    29K Jan 16 15:31 football.rcc
> -rw-r--r--  1 bjcupps   109K Jan 16 15:31 gletters.rcc
> -rw-r--r--  1 bjcupps    85K Jan 16 15:31 gnumch-equality.rcc
> -rw-r--r--  1 bjcupps    24K Jan 16 15:31 gnumch-factors.rcc
> -rw-r--r--  1 bjcupps    24K Jan 16 15:31 gnumch-inequality.rcc
> -rw-r--r--  1 bjcupps    22K Jan 16 15:31 gnumch-multiples.rcc
> -rw-r--r--  1 bjcupps    25K Jan 16 15:31 gnumch-primes.rcc
> -rw-r--r--  1 bjcupps   213K Jan 16 15:31 guessnumber.rcc
> -rw-r--r--  1 bjcupps    27K Jan 16 15:31 hexagon.rcc
> -rw-r--r--  1 bjcupps   112K Jan 16 15:31 imageid.rcc
> -rw-r--r--  1 bjcupps   2.6M Jan 16 15:31 instruments.rcc
> -rw-r--r--  1 bjcupps   392K Jan 16 15:31 leftright.rcc
> -rw-r--r--  1 bjcupps   164K Jan 16 15:31 lightsoff.rcc
> -rw-r--r--  1 bjcupps   103K Jan 16 15:31 magic-hat-minus.rcc
> -rw-r--r--  1 bjcupps    11K Jan 16 15:31 magic-hat-plus.rcc
> -rw-r--r--  1 bjcupps    63K Jan 16 15:31 maze.rcc
> -rw-r--r--  1 bjcupps    20K Jan 16 15:31 mazeinvisible.rcc
> -rw-r--r--  1 bjcupps    16K Jan 16 15:31 mazerelative.rcc
> -rw-r--r--  1 bjcupps    86K Jan 16 15:31 memory-enumerate.rcc
> -rw-r--r--  1 bjcupps   9.8K Jan 16 15:31
> memory-math-add-minus-mult-div-tux.rcc
> -rw-r--r--  1 bjcupps   6.9K Jan 16 15:31 memory-math-add-minus-mult-div.rcc
> -rw-r--r--  1 bjcupps   8.6K Jan 16 15:31 memory-math-add-minus-tux.rcc
> -rw-r--r--  1 bjcupps   9.2K Jan 16 15:31 memory-math-add-minus.rcc
> -rw-r--r--  1 bjcupps   8.7K Jan 16 15:31 memory-math-add-tux.rcc
> -rw-r--r--  1 bjcupps   6.4K Jan 16 15:31 memory-math-add.rcc
> -rw-r--r--  1 bjcupps   7.4K Jan 16 15:31 memory-math-div-tux.rcc
> -rw-r--r--  1 bjcupps   8.5K Jan 16 15:31 memory-math-div.rcc
> -rw-r--r--  1 bjcupps   7.1K Jan 16 15:31 memory-math-minus-tux.rcc
> -rw-r--r--  1 bjcupps   8.5K Jan 16 15:31 memory-math-minus.rcc
> -rw-r--r--  1 bjcupps   8.3K Jan 16 15:31 memory-math-mult-div-tux.rcc
> -rw-r--r--  1 bjcupps   6.2K Jan 16 15:31 memory-math-mult-div.rcc
> -rw-r--r--  1 bjcupps   8.1K Jan 16 15:31 memory-math-mult-tux.rcc
> -rw-r--r--  1 bjcupps   8.7K Jan 16 15:31 memory-math-mult.rcc
> -rw-r--r--  1 bjcupps   8.3K Jan 16 15:31 memory-sound-tux.rcc
> -rw-r--r--  1 bjcupps   1.4M Jan 16 15:31 memory-sound.rcc
> -rw-r--r--  1 bjcupps    12K Jan 16 15:31 memory-tux.rcc
> -rw-r--r--  1 bjcupps   307K Jan 16 15:31 memory-wordnumber.rcc
> -rw-r--r--  1 bjcupps   427K Jan 16 15:31 memory.rcc
> -rw-r--r--  1 bjcupps   112K Jan 16 15:31 menu.rcc
> -rw-r--r--  1 bjcupps    78K Jan 16 15:31 mining.rcc
> -rw-r--r--  1 bjcupps   609K Jan 16 15:31 missing-letter.rcc
> -rw-r--r--  1 bjcupps   569K Jan 16 15:31 money.rcc
> -rw-r--r--  1 bjcupps    33K Jan 16 15:31 money_back.rcc
> -rw-r--r--  1 bjcupps   8.3K Jan 16 15:31 money_back_cents.rcc
> -rw-r--r--  1 bjcupps   6.3K Jan 16 15:31 money_cents.rcc
> -rw-r--r--  1 bjcupps   126K Jan 16 15:31 mosaic.rcc
> -rw-r--r--  1 bjcupps    10K Jan 16 15:31 numbers-odd-even.rcc
> -rw-r--r--  1 bjcupps   112K Jan 16 15:31 penalty.rcc
> -rw-r--r--  1 bjcupps    49K Jan 16 15:31 planegame.rcc
> -rw-r--r--  1 bjcupps   108K Jan 16 15:31 redraw.rcc
> -rw-r--r--  1 bjcupps   7.6K Jan 16 15:31 redraw_symmetrical.rcc
> -rw-r--r--  1 bjcupps   254K Jan 16 15:31 reversecount.rcc
> -rw-r--r--  1 bjcupps   113K Jan 16 15:31 scalesboard.rcc
> -rw-r--r--  1 bjcupps    28K Jan 16 15:31 scalesboard_weight.rcc
> -rw-r--r--  1 bjcupps    11K Jan 16 15:31 scalesboard_weight_avoirdupois.rcc
> -rw-r--r--  1 bjcupps    66K Jan 16 15:31 smallnumbers.rcc
> -rw-r--r--  1 bjcupps    35K Jan 16 15:31 smallnumbers2.rcc
> -rw-r--r--  1 bjcupps   202K Jan 16 15:31 sudoku.rcc
> -rw-r--r--  1 bjcupps   124K Jan 16 15:31 target.rcc
> -rw-r--r--  1 bjcupps   262K Jan 16 15:31 traffic.rcc
> -rw-r--r--  1 bjcupps   257K Jan 16 15:31 wordsgame.rcc
>
> gcompris-qt.app/Contents/MacOS/translations:
>
> gcompris-qt.app/Contents/Resources:
> total 88
> -rwxr-xr-x  1 bjcupps    42K Jan 16 15:32 GCompris.icns
>
> On Jan 16, 2015, at 3:59 PM, JAZEIX Johnny <jazeix at gmail.com> wrote:
>
> Hi,
>
> the BUILD_STANDALONE variable should be set to ON by default for macOS (this
> variable is set to copy all the Qt/Qml plugins inside the package). I'm not
> sure if it works the same on macOS as for windows package, but on windows,
> running the "make package" copies the dynamic libraries besides the GCompris
> executable.
> Could you list us the content of the package to see if there are missing
> files? And if you have some time, check if there are more/less files in the
> 0.18 and run the "otool -L" also on it?
>
> Thanks,
>
> Johnny
>
> On 01/16/15 22:42, B.J. wrote:
>
> Now that 0.26 compiles & runs on the local machine, it breaks when the app
> package is copied to other machines (the one created at the end via “make
> package”).  According to otool -L gcompris-qt (which seems to work like the
> ldd in linux) they’re all linked to
> /Users/username/Qt/5.4/clang_64/lib/Qt****.framework …
>
> In order to localize this in the mac’s .app structure as it’s supposed to, I
> wrote a shell script that re-linked them to the proper place using
> install_name_tool, but then I got weird thread-related crashes.  I’m
> probably not using cmake correctly to make a standalone target, since this
> project was deployed as a stand-alone package in version 0.18.  I saw the
> -DBUILD_STANDALONE=ON option in the project’s CMakeLists.txt file but it
> doesn’t seem to change the way the package is generated…am I missing
> something or should I keep trying it the long way?  Have a great weekend all
> :)
>
> B.J.
> _______________________________________________
> GCompris-devel mailing list
> GCompris-devel at kde.org
> https://mail.kde.org/mailman/listinfo/gcompris-devel
>
>
> _______________________________________________
> GCompris-devel mailing list
> GCompris-devel at kde.org
> https://mail.kde.org/mailman/listinfo/gcompris-devel
>
>


More information about the GCompris-devel mailing list