MacOS & 0.70 compile
B.J.
bj at koupps.net
Wed May 3 17:02:10 UTC 2017
Thanks for everyone's feedback!
> On May 3, 2017, at 08:15, Timothée Giet <animtim at gmail.com> wrote:
>
> Hi,
> That's weird that it can't read svg. Is it possible that you have Qt built without svg support?
> Do you have libQt5Svg files ?
>
Timothee I think those naming conventions may be specific to iOS and Android but it got me going in the right direction:
$ pwd
/Users/faculty/Qt/5.6
$ find . -name libQt5Svg*
{lists several libs in 5.6/android_*/lib and 5.6/ios/lib because of naming conventions, but I was able to find them...}
$ ls /Users/faculty/Qt/5.6/clang_64/plugins/imageformats/l*svg*
/Users/faculty/Qt/5.6/clang_64/plugins/imageformats/libqsvg.dylib
/Users/faculty/Qt/5.6/clang_64/plugins/imageformats/libqsvg_debug.dylib
/Users/faculty/Qt/5.6/clang_64/plugins/imageformats/libqsvg.dylib.dSYM
/Users/faculty/Qt/5.6/clang_64/plugins/imageformats/libqsvg_debug.dylib.dSYM
> On May 3, 2017, at 09:02, Utkarsh Tiwari <iamutkarshtiwari at gmail.com> wrote:
>
> Hi B.J.,
>
> To solve the no images issue, try copying the 'plugins' folder which is inside your 'Qt/5.6/clang_64/' directory to 'bin/gcompris-qt.app/Contents/'. And then rebuild and make your gcompris build.
> Hope this solves your issue :)
{so then I just tried copying to the app bundle as Utkarsh suggested}
$ pwd
/Users/faculty/Qt/5.6/clang_64
$ cp -r plugins ../../../Desktop/src/build-gc/bin/gcompris-qt.app/Content
{this fixed the initial issue -- the locally linked app bundle runs! thank you Utkarsh; looks like the problem lies with this directory...now to see if I can fix it with Johnny's pointers...}
> For the running, it may not work because the Qt version is not in your path and so it does not find the plugins. I guess you can try to play with the QT_PLUGIN_PATH environment variable (http://doc.qt.io/qt-5/deployment-plugins.html <http://doc.qt.io/qt-5/deployment-plugins.html>) to be sure it works in local for now.
>
> Do you have the svg plugin in /Users/faculty/Qt/5.6/clang_64/plugins/imageformats? (lib*svg*).
>
> On my side, I think the more important for now is the svg, then the audio and then box2d ;).
>
> If it's not complicated for now, you can also try to fix the cmake_install.cmake if it's only the "lib" path issues.
>
> To help understand what happens, I guess you can add logs in https://github.com/gcompris/GCompris-qt/blob/master/src/core/CMakeLists.txt#L113 <https://github.com/gcompris/GCompris-qt/blob/master/src/core/CMakeLists.txt#L113> and https://github.com/gcompris/GCompris-qt/blob/master/cmake/qt_helper.cmake#L54 <https://github.com/gcompris/GCompris-qt/blob/master/cmake/qt_helper.cmake#L54> to see where the extra "lib" is added.
{first trying to weed out some of the cmake files that need manual updating}
$ grep -r clang_64\/lib\/plugin *
src/core/cmake_install.BAK: file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/gcompris-qt.app/Contents/plugins/" TYPE DIRECTORY FILES "/Users/faculty/Qt/5.6/clang_64/lib/plugins/imageformats")
{and so on}
$ grep -r clang_64\/lib\/qml *
src/core/cmake_install.BAK: file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/gcompris-qt.app/Contents/qml/QtQuick" TYPE DIRECTORY FILES "/Users/faculty/Qt/5.6/clang_64/lib/qml/QtQuick/Window.2")
{and so on}
$ vi src/core/cmake_install.cmake
:/clang_64\/lib\/qml/clang_64\/qml
{...or something; paraphrasing my vi command to replace the strings; did the same with plugin directory}
$ make package
[ 93%] Generate core RCC
[ 93%] Built target rcc_core
[100%] Built target gcompris-qt
Run CPack packaging tool...
CPack: Create package using DragNDrop
CPack: Install projects
CPack: - Run preinstall target for: gcompris-qt
CPack: - Install project: gcompris-qt
CMake Error at /Users/faculty/Desktop/src/build-gc/src/core/cmake_install.cmake:169 (file):
file INSTALL cannot find "/Users/faculty/Qt/5.6/clang_64/qml/Box2D.2.0".
Call Stack (most recent call first):
/Users/faculty/Desktop/src/build-gc/src/cmake_install.cmake:33 (include)
/Users/faculty/Desktop/src/build-gc/cmake_install.cmake:36 (include)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: '/Users/faculty/Desktop/src/build-gc/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/qml/Box2D.2.0/libBox2D.dylib': No such file or directory
warning: target '/Users/faculty/Desktop/src/build-gc/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/qml/Box2D.2.0/libBox2D.dylib' does not exist...
warning: target '/Users/faculty/Desktop/src/build-gc/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/qml/Box2D.2.0/libBox2D.dylib' does not exist...
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open file: /Users/faculty/Desktop/src/build-gc/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/qml/Box2D.2.0/libBox2D.dylib (No such file or directory)
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.8/Modules/BundleUtilities.cmake:869 (message):
Command failed:
'install_name_tool' '-id' '@executable_path/../MacOS/libBox2D.dylib' '/Users/faculty/Desktop/src/build-gc/_CPack_Packages/Darwin/DragNDrop/gcompris-qt-0.70-Darwin/gcompris-qt.app/Contents/qml/Box2D.2.0/libBox2D.dylib'
Call Stack (most recent call first):
/Applications/CMake.app/Contents/share/cmake-3.8/Modules/BundleUtilities.cmake:943 (fixup_bundle_item)
/Users/faculty/Desktop/src/build-gc/src/core/FixBundle.cmake:2 (fixup_bundle)
/Users/faculty/Desktop/src/build-gc/src/core/cmake_install.cmake:181 (include)
/Users/faculty/Desktop/src/build-gc/src/cmake_install.cmake:33 (include)
/Users/faculty/Desktop/src/build-gc/cmake_install.cmake:36 (include)
CPack Error: Error when generating package: gcompris-qt
make: *** [package] Error 1
{Looking better! It's trying to find box2D even though the cmake command tried to disable it? But all those other errors are gone :) and since the locally linked executable runs WITH images now (audio worked from the git-go) I consider it progress for sure. Thanks for everyone's help so far...I hope we're close! All feedback, thus-far and future, is very much appreciated.}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/gcompris-devel/attachments/20170503/c42b94d8/attachment-0001.html>
More information about the GCompris-devel
mailing list