Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How can i compile Qt example application that used QtQuick, QtQml on QtCreator?

How can i compile Qt example application that used QtQuick, QtQml on QtCreator?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 2 Posters 2.1k 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.
  • rickY79R Offline
    rickY79R Offline
    rickY79
    wrote on last edited by
    #1

    Hi,
    I had compiled Embedded Device of qt5 using yocto. (in case i had used meta-toolchain-qt5)
    And then install SDK using the script that created by after compile,
    Try to use the SDK in QtCreator Tool.

    But some error was occurred when i import application from Qt example, (likes: todos)
    Error message:
    cannot find -lQt5Quick
    cannot find -lQt5Qml
    collect2: error: ld returned 1 exit status

    Here is content of todos.pro file

    TEMPLATE = app
    
    DEFINES += ENGINIO_SAMPLE_NAME=\\\"todo\\\"
    
    include(../../common/backendhelper/qmlbackendhelper.pri)
    
    QT += quick qml enginio
    SOURCES += ../main.cpp
    
    mac: CONFIG -= app_bundle
    
    OTHER_FILES += todo.qml
    RESOURCES += todo.qrc
    

    How can i do to solve this error?
    Please share your wisdom.

    Thanks
    ricky

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Did you compile Qt5Quick and lQt5Qml?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      rickY79R 1 Reply Last reply
      0
      • jsulmJ jsulm

        Did you compile Qt5Quick and lQt5Qml?

        rickY79R Offline
        rickY79R Offline
        rickY79
        wrote on last edited by
        #3

        @jsulm

        Did you compile Qt5Quick and lQt5Qml?

        I had tried to compile Qt5Quick, Qt5Qml..
        But i can't..
        Can you let me know, how to compile Qt5Quick, Qt5Qml?

        Thank you.

        1 Reply Last reply
        0
        • jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Like any other Qt module.
          Why can't you build these modules? What was the problem?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          rickY79R 1 Reply Last reply
          0
          • jsulmJ jsulm

            Like any other Qt module.
            Why can't you build these modules? What was the problem?

            rickY79R Offline
            rickY79R Offline
            rickY79
            wrote on last edited by
            #5

            @jsulm
            here is my whole step.. please kindly check.

            I had compiled Qt5Quick, Qt5Qml by yocto like any other Qt moulde.

            And then do Installed SDK using script that created by after compile.
            file name is build/tmp/deploy/sdk/oecore-x86_64-corei7-64-toolchain-nodistro.0.sh

            After install, sdk was installed under the path in host pc. (/usr/local/oecore-x86-64/... ... )
            i can show libQt5Quick.so, libQt5Qml.so in sdk path. (/usr/local/oecore-x86-64/sysroot/corei7-64-poky-linux/usr/lib/)

            After Then try to use this SDK in QtCreator Tool.
            But Some error was occurred when i import application from Qt example. (likes: todos)
            Error message:
            cannot find -lQt5Quick
            cannot find -lQt5Qml
            collect2: error: ld returned 1 exit status

            How can i do..to solve this error?
            Thanks.

            1 Reply Last reply
            0
            • jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Just to be sure: you're really using that SDK in QtCreator? Do you have a Kit in QtCreator configured to use this SDK?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              rickY79R 1 Reply Last reply
              0
              • jsulmJ jsulm

                Just to be sure: you're really using that SDK in QtCreator? Do you have a Kit in QtCreator configured to use this SDK?

                rickY79R Offline
                rickY79R Offline
                rickY79
                wrote on last edited by
                #7

                @jsulm Yes, of cause.
                I made a Qt Kit in QtCreator.

                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 Extensions
                • Unsolved