Code Monkey home page Code Monkey logo

Comments (3)

petitlapin avatar petitlapin commented on July 18, 2024

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.

gjherbiet avatar gjherbiet commented on July 18, 2024

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.

petitlapin avatar petitlapin commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.