MacOS & 0.70 compile
Johnny Jazeix
jazeix at gmail.com
Wed May 3 13:58:26 UTC 2017
Hi,
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) 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
and
https://github.com/gcompris/GCompris-qt/blob/master/cmake/qt_helper.cmake#L54
to see where the extra "lib" is added.
Johnny
2017-05-03 14:31 GMT+02:00 B.J. <bj at koupps.net>:
> I can compile/run without packaging, but there’re no images, so I guess
> the next step I can either (1) troubleshoot the package errors, which seem
> to relate to plugins, or (2) find out all I can about box2D so I can try to
> enable that? Whatever we think is more practical/important—I’ll go with
> the first person from whom I hear back :) Here’s the verbose version—thanks
> for whatever feedback you have! -bj
>
>
> —
>
>
> $ cmake -DQML_BOX2D_MODULE=disabled -DACTIVATION_MODE=internal
> ../gcompris-qt-0.70
> ~~~ all goes well, no errors ~~~
>
>
> $ make
> ~~~ all goes well, no errors ~~~
>
>
> $ open bin/gcompris-qt.app
> ~~~ it seems to be running but I can't see anything--white screen with
> clickable letters, maybe b/c box2D is needed? but it does run
> successfully, though locally linked, so I continue to make the app bundle
> ~~~
>
>
> $ make package
> ~~~ no errors until about here ~~~
> [ 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:73
> (file):
> file INSTALL cannot find
> "/Users/faculty/Qt/5.6/clang_64/lib/plugins/imageformats".
> 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)
> ~~~ several other plugins have pretty much the same error; this is about
> where my last report ended ~~~
>
>
> $ ls /Users/faculty/Qt/5.6/clang_64/lib/plugins/imageformats
> ls: /Users/faculty/Qt/5.6/clang_64/lib/plugins/imageformats: No such file
> or directory
> ~~~ is it odd that the cmake_install.cmake file pointed here? ~~~
>
>
> $ ls /Users/faculty/Qt/5.6/clang_64/plugins/imageformats
> libqdds.dylib libqico_debug.dylib libqtiff.dylib
> libqdds.dylib.dSYM libqico_debug.dylib.dSYM libqtiff.dylib.dSYM
> ~~~ several other plugins listed; directory not empty ~~~
>
>
> $ grep -r "clang_64/lib/plug" *
> src/core/cmake_install.cmake: file(INSTALL DESTINATION
> "${CMAKE_INSTALL_PREFIX}/gcompris-qt.app/Contents/plugins/" TYPE
> DIRECTORY FILES "/Users/faculty/Qt/5.6/clang_64/lib/plugins/imageformats")
> src/core/cmake_install.cmake: file(INSTALL DESTINATION
> "${CMAKE_INSTALL_PREFIX}/gcompris-qt.app/Contents/plugins/" TYPE
> DIRECTORY FILES "/Users/faculty/Qt/5.6/clang_64/lib/plugins/mediaservice")
> src/core/cmake_install.cmake: file(INSTALL DESTINATION
> "${CMAKE_INSTALL_PREFIX}/gcompris-qt.app/Contents/plugins/" TYPE
> DIRECTORY FILES "/Users/faculty/Qt/5.6/clang_64/lib/plugins/mediaservice")
> src/core/cmake_install.cmake: file(INSTALL DESTINATION
> "${CMAKE_INSTALL_PREFIX}/gcompris-qt.app/Contents/plugins/" TYPE
> DIRECTORY FILES "/Users/faculty/Qt/5.6/clang_64/lib/plugins/mediaservice")
>
>
> ~~~ these 4 lines are adjusted to point to the right directory (w/o the
> "lib" in the middle) ~~~
>
>
> $ make package
> ~~~ no errors until about here ~~~
> [ 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:105
> (file):
> file INSTALL cannot find
> "/Users/faculty/Qt/5.6/clang_64/lib/qml/QtQuick/Window.2".
> 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)
>
>
> SO - my questions is - should I keep changing the cmake_install.cmake file
> like so, should I be making symlinks in the Qt tree instead, OR is there a
> different problem someone notices? Thanks for your feedback!
>
>
> B.J.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/gcompris-devel/attachments/20170503/083def5b/attachment-0001.html>
More information about the GCompris-devel
mailing list