J
J
jadewizzard2016-02-14 18:35:23
Qt
jadewizzard, 2016-02-14 18:35:23

How to solve the problem with QT Creator?

Hello. Today I installed QTCreator from the official site, created a new QT Quick UI project . I need a QtPositioning element , this library, as I understand it, is installed in place with QTCreator. I connect it like this:
import QtPositioning 5.5
That is, I get the following code:

import QtQuick 2.5
import QtQuick.Window 2.2
import QtPositioning 5.5

Window {
    visible: true

    MouseArea {
        anchors.fill: parent
        onClicked: {
            Qt.quit();
        }
    }

    Text {
        text: qsTr("Hello World")
        anchors.centerIn: parent
    }
}

At first, it showed an error that the module was not found, and if you remove it from the project, then everything starts.
module "QtPositioning" is not installed

I installed it with command (debian 8 stable distribution)
sudo apt-get install libqt5positioning5

And I started showing this error
file:///media/dmitry/Projects/test/untitled/untitled.qml:3 plugin cannot be loaded for module "QtPositioning": Cannot load library /media/dmitry/Projects/qt-creator/5.5/gcc_64/qml/ QtPositioning/libdeclarative_positioning.so: (/media/dmitry/Projects/qt-creator/5.5/gcc_64/qml/QtPositioning/libdeclarative_positioning.so: undefined symbol: _Z25geoCoordinateInterpolatorRK14QGeoCoordinateS1_d)

Googling did not help, I ask for help, maybe someone came across a similar one.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2016-02-14
@Zifix

Are you sure that version 5.5 even exists? I have above 5.3 in Qt 5.5.1 does not show. Well, in general, it is desirable to install the assembly from offsite, and not from the repositories, the nerves will be more whole.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question