-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module "Box2D" is not installed #233
Comments
Hi, do you also have it in $buildFolder/lib/qml/Box2D.2.0/{libBox2D.dylib, qmldir}? It should be using this one. Can you try exporting QT_DEBUG_PLUGINS (export QT_DEBUG_PLUGINS=1) and check if it finds box2d (I have a specific log for box2d when running land_safe activity). Johnny |
Yes, I tried the following: $ export QT_DEBUG_PLUGINS=1
$ cd $buildFolder
$ cp lib/qml/Box2D.2.0/libBox2D.dylib bin/gcompris-qt.app/Contents/PlugIns/platforms
$ bin/gcompris-qt.app/Contents/MacOS/gcompris-qt
[..]
QFactoryLoader::QFactoryLoader() checking directory path "/Users/gjherbiet/Development/GCompris-qt/build/bin/gcompris-qt.app/Contents/Plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/Users/gjherbiet/Development/GCompris-qt/build/bin/gcompris-qt.app/Contents/Plugins/platforms/libBox2D.dylib"
Found metadata in lib /Users/gjherbiet/Development/GCompris-qt/build/bin/gcompris-qt.app/Contents/PlugIns/platforms/libBox2D.dylib, metadata=
{
"IID": "org.qt-project.Qt.QQmlExtensionInterface",
"MetaData": {
},
"className": "Box2DPlugin",
"debug": false,
"version": 330497
}
Got keys from plugin meta data ()
[...]
qrc:/gcompris/src/activities/land_safe/LandSafe.qml:23:1: module "Box2D" is not installed So it seems the library is found but still not loaded. |
Yes, on my side, I have the following log: loaded library "/home/jazeix/Desktop/travail/gcompris/build/lib/qml/Box2D.2.0/libBox2D.so" after. There is also the env var QML_IMPORT_TRACE that should display info: Have you also copied the qmldir file? |
Hello,
Roughly following https://mail.kde.org/pipermail/gcompris-devel/2018-January/005359.html and https://www.ynonperek.com/2017/09/18/building-gcompris-qt-on-macos/ I now have a working version of GCompris with translations.
However some activities don't work and yield the following error message:
I tried to specify how to build
Box2D
using:After compilation, there is a
libBox2D.dylib
inqml_box2d-prefix/src/qml_box2d-build
under my build dir.What step is missing to get this library in a place where it is picked up by GCompris at run-time?
The text was updated successfully, but these errors were encountered: