Comments (3)
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
from gcompris-qt.
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.
from gcompris-qt.
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:
QQmlImports(qrc:/gcompris/src/activities/land_safe/LandSafe.qml)::addLibraryImport: "Box2D" 2.0 as ""
QQmlImports(qrc:/gcompris/src/activities/land_safe/LandSafe.qml)::importExtension: loaded "/home/jazeix/Desktop/travail/gcompris/build/lib/qml/Box2D.2.0/qmldir"
QQmlImportDatabase::registerPluginTypes: "Box2D" from "/home/jazeix/Desktop/travail/gcompris/build/lib/qml/Box2D.2.0"
Have you also copied the qmldir file?
from gcompris-qt.
Related Issues (20)
- no sounds in Gnumch game HOT 4
- Windows installer doesn't create a shortcut in public desktop HOT 1
- Sync configuration HOT 3
- Multiple profiles HOT 1
- Enrich your vocabulary crashes HOT 4
- Installation On Android problem HOT 11
- Can't download external assets on Fire OS 5 HOT 4
- About Section is not Updated for 2021 - Copyright Not Updated.
- Raspberry Pi sound issues HOT 1
- gcompris-qt segfaults HOT 5
- black boxes instead of buttons HOT 9
- (Windows 7, 64bit) Font error, most of the material are unreadable HOT 21
- Debian 11 XFCE - Screen flickering HOT 3
- android app download audio: Handshake failed Code 6 HOT 3
- Background music do not play HOT 6
- Watercycle broken starting after 2.1 HOT 5
- Can't compile, missing qtquickcontrols2-5-private-dev package on Raspbian Bullseye (Debian 11) HOT 5
- Checksum of downloaded file does not match HOT 6
- Request: command-line option to disable manual level switch HOT 4
- Mouse "cursor" placement with multiple monitors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcompris-qt.