<div dir="ltr"><div dir="ltr"><div>Hi,<br><br></div>it's not the part I handle the best too :).<br><br><a href="https://github.com/gcompris/GCompris-qt/blob/master/cmake/qt_helper.cmake#58">https://github.com/gcompris/GCompris-qt/blob/master/cmake/qt_helper.cmake#58</a> is where the plugins are handled.<br></div><div>Once you have managed to compile again and start the package generation, it would be nice to get the logs to see the actual error.<br></div><div>Thanks,<br><br></div><div>Johnny<br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 17 janv. 2019 à 14:42, B.J. <<a href="mailto:bj@koupps.net">bj@koupps.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">I’m still confused how QT does all the app bundling to be honest…I never took the time to go through the docs and figure it out unfortunately.  I do have 2 interesting notes from last year though.  1 says there’s a cmake_install.cmake file that needs a couple fields trimmed (the lib piece)...<div><br></div><div>:%s/clang_64\/lib\/qml/clang_64\/qml/g<br>:%s/clang_64\/lib\/plugins/clang_64\/plugins/g</div><div><br></div><div>…which matches the weirdness I was getting from the ldd darwin equivlent (otool maybe?).  Another step, for which I maybe should have taken better notes, said in src/core/CMakeLists.txt around line 119 to add these for #Qml plugins to install:<br><br></div><div>  elseif(APPLE)<br>    set(_lib_prefix "")<br>  else()<br><br></div><div>...but it changed the .dylib files such that they were missing the "lib" prefix; it misread and thought it'd remove the ../lib/... from the directories of the .dylib files being copied :( anyway.  Thanks; I will keep messing around w/the helpful pieces you’ve provided, hopefully today.<br><div><br><blockquote type="cite"><div>On Jan 16, 2019, at 14:29, Timothée Giet <<a href="mailto:animtim@gmail.com" target="_blank">animtim@gmail.com</a>> wrote:</div><br class="gmail-m_-3004764250324190865Apple-interchange-newline"><div>
  
    
  
  <div bgcolor="#FFFFFF">
    <div class="gmail-m_-3004764250324190865moz-cite-prefix">Hi B.J.,</div>
    <div class="gmail-m_-3004764250324190865moz-cite-prefix"><br>
    </div>
    <div class="gmail-m_-3004764250324190865moz-cite-prefix">Indeed I also have started looking at
      packaging the mac version recently, got the build working but got
      stuck at making a distributable package.</div>
    <div class="gmail-m_-3004764250324190865moz-cite-prefix">If you find the missing pieces I'm
      interested, you can contact me and Johnny directly :)</div>
    <div class="gmail-m_-3004764250324190865moz-cite-prefix"><br>
    </div>
    <div class="gmail-m_-3004764250324190865moz-cite-prefix">Cheers,</div>
    <div class="gmail-m_-3004764250324190865moz-cite-prefix">Timothée<br>
    </div>
    <div class="gmail-m_-3004764250324190865moz-cite-prefix"><br>
    </div>
    <div class="gmail-m_-3004764250324190865moz-cite-prefix">Le 16/01/2019 à 21:24, B.J. a écrit :<br>
    </div>
    <blockquote type="cite">
      
      Thanks a ton!  I’ll adjust my build script so we lose the .pro and
      hopefully can contribute something to the 233 bug.  I thought I
      was able to run the  post-0.52 app w/working SVG and Box2D after
      some finaggling but I wasn’t ever able to package it up into the
      distributable .app bundle :(  If I get the pieces before “make
      package” working I’ll be happy…anywho.  Will get back to you soon
      hopefully.  Thanks again.
      <div><br>
      </div>
      <div>B.J.<br>
        <div><br>
          <blockquote type="cite">
            <div>On Jan 16, 2019, at 13:20, Johnny Jazeix <<a href="mailto:jazeix@gmail.com" target="_blank">jazeix@gmail.com</a>> wrote:</div>
            <br class="gmail-m_-3004764250324190865Apple-interchange-newline">
            <div>
              <div dir="ltr">
                <div dir="ltr">
                  <div>Hi,</div>
                  <div><br>
                  </div>
                  <div>Qt5.9.7 is still good for compilation.</div>
                  <div><br>
                  </div>
                  <div>it looks like you have some files (the
                    translation files) in the po folder in the source
                    and it tries to compile them.</div>
                  <div>Either install msgattrib (<span class="gmail-m_-3004764250324190865gmail-js-issue-title">gettext</span>
                    package) or remove the files from the po folder and
                    run cmake again.<br>
                  </div>
                  <div><br>
                  </div>
                  <div>I'm almost sure we won't need to compile
                    from the .pro file (so only with the cmake command,
                    no more qmake) if we don't plan to go on the stores
                    and only provide a dmg.</div>
                  <div><br>
                  </div>
                  <div>Basically:</div>
                  <div>* cd gcompris-0.95-orig</div>
                  <div>* mkdir build</div>
                  <div>* cd build</div>
                  <div>* export
                    Qt5_DIR="/Users/faculty/Qt/5.9.7/clang_64/lib/cmake/Qt5"<br>
                    * export
                    PATH=$PATH:/Users/faculty/Qt/5.9.7/clang_64/bin</div>
                  <div> * cmake -DQML_BOX2D_MODULE=disable
                    -DACTIVATION_MODE=internal ../gcompris-0.95-orig<br>
                    * make <br>
                  </div>
                  <div>(* make package -> to create the dmg
                    once it has compiled well)</div>
                  <div><br>
                  </div>
                  <div>From Github, we have a bug for macOS: <a href="https://github.com/gcompris/GCompris-qt/issues/233" target="_blank">https://github.com/gcompris/GCompris-qt/issues/233</a>
                    when trying to run with box2d (so everything before
                    should be fine).</div>
                  <div><br>
                  </div>
                  <div>Johnny</div>
                  <div><br>
                  </div>
                  <div class="gmail_quote">
                    <div dir="ltr" class="gmail-m_-3004764250324190865gmail_attr">Le mer. 16 janv.
                      2019 à 20:01, B.J. <<a href="mailto:bj@koupps.net" target="_blank">bj@koupps.net</a>> a
                      écrit :<br>
                    </div>
                    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">In celebration
                      of 0.95 I'm taking another whack at the MacOS
                      release :)  <br>
                      I have QT 5.9.7 ready to go (sounds like we've
                      moved there).  Are there <br>
                      any new steps for getting the MacOS source tree to
                      compile?  After <br>
                      trying to set up the src & build dirs and
                      running cmake I'm getting a <br>
                      new error I don't remember:<br>
                      <br>
                      $ make<br>
                      [  0%] Generating shareFolders<br>
                      [  0%] Built target createShareFolders<br>
                      [  0%] Generating gcompris_zh_TW.qm<br>
                      make[2]: msgattrib: No such file or directory<br>
                      make[2]: *** [gcompris_zh_TW.qm] Error 1<br>
                      make[1]: ***
                      [CMakeFiles/BuildTranslations.dir/all] Error 2<br>
                      make: *** [all] Error 2<br>
                      <br>
                      The full shell out can be found below if it's
                      useful...thanks for any <br>
                      feedback!<br>
                      <br>
                      =========================================<br>
                      <br>
                              • cd gcompris-0.95-orig<br>
                              • cp platforms/macosx/config.h
                      platforms/macosx/<a href="http://gcompris.pro/" rel="noreferrer" target="_blank">gcompris.pro</a> <br>
                      platforms/macosx/gcompris.icns
                      platforms/macosx/Info.plist <br>
                      platforms/macosx/gcompris.entitlements .<br>
                              • // need to figure out what should go in
                      rcc & translations if created<br>
                              • {change src/core/CMakeLists.txt line
                      133, adding AND NOT APPLE after <br>
                      sailfishos} // couldn't find this time around!<br>
                              • change src/core/CMakeLists.txt line 111,
                      adding <br>
                      "set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)" in
                      "APPLE" in <br>
                      "BUILD_STANDALONE"<br>
                              • cd .. && mkdir
                      gcompris-0.95-build && cd
                      gcompris-0.95-build<br>
                              • export
                      Qt5_DIR="/Users/faculty/Qt/5.9.7/clang_64/lib/cmake/Qt5"<br>
                              • export
                      PATH=$PATH:/Users/faculty/Qt/5.9.7/clang_64/bin<br>
                              • qmake -config release
                      ../gcompris-0.95-orig/<a href="http://gcompris.pro/" rel="noreferrer" target="_blank">gcompris.pro</a><br>
                              • cmake -DQML_BOX2D_MODULE=disable
                      -DACTIVATION_MODE=internal <br>
                      ../gcompris-0.95-orig<br>
                              • make<br>
                      <br>
                      // that's where I've gotten so far (will change
                      "disable" cmake <br>
                      parameter to "submodule" for box2D after this
                      compiles)...plans for next <br>
                      steps follow<br>
                      <br>
                              • cp  -r  ~/Qt/5.9.7/clang_64/plugins 
                      bin/gcompris-qt.app/Contents<br>
                              • {change ./src/core/cmake_install.cmake
                      "clang_64/lib/qml" strings to <br>
                      "clang_64/qml"}<br>
                              • {change ./src/core/cmake_install.cmake
                      "clang_64/lib/plugins" strings <br>
                      to "clang_64/plugins"}<br>
                              • // codesign --deep -s "3rd Party Mac
                      Developer Application: Bruno <br>
                      Coudoin" --entitlements <br>
                      ../gcompris/platforms/macosx/gcompris.entitlements
                      gcompris-qt.app<br>
                              • macdeployqt bin/gcompris.app <br>
                              • // codesign --deep -s "3rd Party Mac
                      Developer Application: Bruno <br>
                      Coudoin"
                      gcompris.app/Contents/Resources/translations/*<br>
                              • // codesign --deep -s "3rd Party Mac
                      Developer Application: Bruno <br>
                      Coudoin" gcompris.app/Contents/Resources/rcc/*<br>
                              • // make product ?? - old?<br>
                              • make package<br>
                    </blockquote>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote><p><br>
    </p>
  </div>

</div></blockquote></div><br></div></div></blockquote></div>