Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. import marble in qml qt
Qt 6.12 LTS is out! See what's new in the release blog

import marble in qml qt

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 767 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    no1122cc
    wrote on last edited by
    #1

    hi
    After I installed marble using
    cmake -DCMAKE_BUILD_TYPE=Release -DWITH_KF5=FALSE -DCMAKE_PREFIX_PATH=/home/alino/Qt5.13.3/5.13.3/gcc_64/ -DBUILD_MARBLE_TOOLS=NO -DMARBLE_PRI_INSTALL_USE_QT_SYS_PATHS=YES -DBUILD_MARBLE_EXAMPLES=NO -DBUILD_MARBLE_TESTS=NO -DCMAKE_INSTALL_PREFIX=/usr ~/Downloads/marble/sources/

    sudo make install marble in ubuntu 20.04 in QT 5.13 and no error returns.
    but when I want to import marble using
    import org.kde.marble 0.20 or import Marble 1.0 or 2.20
    it returns "qml module not found"
    and I also added Qt += Marble
    and
    LIBS += -L/usr/local/lib/ -lmarblewidget-qt5
    in .pro file but nothing solved

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rangantha B V
      wrote on last edited by
      #2

      Step 1: Verify Marble Installation
      ls /usr/lib/qml/org/kde/marble

      Step 2: Check Where Marble Installed Its QML Module
      find /usr -type d -name "org.kde.marble"
      find /usr/local -type d -name "org.kde.marble"

      Step 3: Manually Add QML Import Path
      // Set additional import path for QML modules
      engine.addImportPath("/usr/local/lib/qml"); // Adjust if necessary in main.cpp

      Step 4: Verify Installed Marble Libraries
      ldd /usr/local/lib/libmarblewidget-qt5.so
      If any dependencies are "not found", you might need to add /usr/local/lib to your library path:

      sh
      Copy
      Edit
      export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

      Step 5: Try Importing Again in QML
      import org.kde.marble 0.20 // Change version based on installed version

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved