Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML project can't be run by Static Qt linking version , Qt 5.2
Forum Updated to NodeBB v4.3 + New Features

QML project can't be run by Static Qt linking version , Qt 5.2

Scheduled Pinned Locked Moved QML and Qt Quick
30 Posts 3 Posters 13.8k Views 1 Watching
  • 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.
  • O Offline
    O Offline
    onek24
    wrote on last edited by
    #7

    Sorry, but i can't help you out then. I've never compiled statically.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      heba
      wrote on last edited by
      #8

      Thank you very much.

      last thing, do you know how we can get stand-alone file for project release by other way ? a closed project package to send and run on devices

      1 Reply Last reply
      0
      • O Offline
        O Offline
        onek24
        wrote on last edited by
        #9

        Have a look at:

        "Installer Tutorial":http://doc-snapshot.qt-project.org/qtifw-1.3/ifw-tutorial.html
        "Deploy On Android Devices":http://doc.qt.digia.com/qtcreator/creator-deployment-maemo.html

        1 Reply Last reply
        0
        • H Offline
          H Offline
          heba
          wrote on last edited by
          #10

          Thank you for your time

          1 Reply Last reply
          0
          • O Offline
            O Offline
            onek24
            wrote on last edited by
            #11

            You're welcome. If you still got some questions, feel free to ask.

            1 Reply Last reply
            0
            • H Offline
              H Offline
              heba
              wrote on last edited by
              #12

              Sir, help me to understand.

              First, I dont need installer. But, app .exe file which work in any place without depending on any other files. Like .apk for Android from Eclipse or .ipa from xcode for IOS.

              Now, I feel that I got very confused.
              Can you help me to know the real problem ?

              All what I need is this Stand-Alone exe file of project.
              The .exe file in "Release" folder doesn't work for QML projects.

              And I have this error:
              !E:\Qt\q.png()!

              When I searched, some said that I have to create static run version of qt to get this Stand-Alone exe file. But I see now that may that is very wrong.

              What is your opinion ?

              Sorry, for disturbance

              1 Reply Last reply
              0
              • H Offline
                H Offline
                heba
                wrote on last edited by
                #13

                Sorry, error is

                • The procedure entry point _Z8qWinMainP11HINSTANCE__S0_PciRiR7QVectorIS1_E could not be located in the dynamic link library E:\Qt\build-untitled1-Desktop_Qt_5_2_0_MinGW_32bit-Release\release\untitled1.exe

                I searched about it, and some say some missing dlls, but nothing i found after installing all missing dlls.

                1 Reply Last reply
                0
                • O Offline
                  O Offline
                  onek24
                  wrote on last edited by
                  #14

                  The second link i posted is about deploying applications on android devices, i guess that means .apk. About the error: You'll find all necessary DLL's in:

                  PATH_TO_YOUR_QT\YOUR_QT_VERSION\YOUR_COMPILER\bin*.dll

                  for example:

                  C:\Qt\5.2.1\mingw48_32\bin*.dll

                  Don't forget to check for dependencies.

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    heba
                    wrote on last edited by
                    #15

                    ok, I know that this dlls are in bin folder, but what i do with it ? but it in my project "Release" folder ?

                    1 Reply Last reply
                    0
                    • O Offline
                      O Offline
                      onek24
                      wrote on last edited by
                      #16

                      Yes, if you don't build statically you have to put the required dll's from the dll folder into your Release folder or the folder where your .exe is. If you are building statically your compiler will put all required libraries into your .exe.

                      1 Reply Last reply
                      0
                      • H Offline
                        H Offline
                        heba
                        wrote on last edited by
                        #17

                        Thank you, That works great.

                        Still search about static version.

                        1 Reply Last reply
                        0
                        • O Offline
                          O Offline
                          onek24
                          wrote on last edited by
                          #18

                          You're welcome. I'll see what else i can find about your issue.

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            mib383
                            wrote on last edited by
                            #19

                            I have the same problem with stand alone qml app. People, please, help!

                            1 Reply Last reply
                            0
                            • O Offline
                              O Offline
                              onek24
                              wrote on last edited by
                              #20

                              Hey,

                              please provide us some further informations about your problem.

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                mib383
                                wrote on last edited by
                                #21

                                I built qt staticaly.
                                Qt widgets applications works on my static kit. But qt quick applications doesn't work!
                                Then i tried to run default qt quick "hello world" on static kit and i failed to push run button because it was disabled. This program is working on normal kit.
                                In qt versions window when choosing my static qt i see warning sign and "No qmlscene installed" and "No qmlviewer installed".
                                In General Message window i see "Project ERROR: Unknown module(s) in QT: quick qml".
                                In static configuration "Run" button is disabled and onMouseHover it shows tooltip: ".pro file coudn't be parsed"

                                .pro file is default:
                                @
                                TEMPLATE = app

                                QT += qml quick widgets

                                SOURCES += main.cpp

                                RESOURCES += qml.qrc

                                Additional import path used to resolve QML modules in Qt Creator's code model

                                QML_IMPORT_PATH =

                                Default rules for deployment.

                                include(deployment.pri)
                                @

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  mib383
                                  wrote on last edited by
                                  #22

                                  I built qt with configure params: -debug-and-release -opensource -static -opengl desktop -no-vcproj -nomake examples

                                  Then i executed: mingw32-make sub_src

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    mib383
                                    wrote on last edited by
                                    #23

                                    I provided futher information and still no answers...

                                    1 Reply Last reply
                                    0
                                    • O Offline
                                      O Offline
                                      onek24
                                      wrote on last edited by
                                      #24

                                      Hello,

                                      i'm sorry for my late answer, but i wasn't able to write you in the last few days. My .pro file looks almost like yours except for that my QT has only got qml and quick included.
                                      @QT += qml quick@
                                      But that shouldn't be the problem, your issue is a well known issue, you might check out this threads for further informations:
                                      "QML apps not runnable using static build up to Qt 5.0.1 release!":http://qt-project.org/forums/viewthread/22566
                                      "Build qml statically":http://www.qtcentre.org/threads/36271-Build-qml-statically
                                      Also which QT version are you using?

                                      1 Reply Last reply
                                      0
                                      • M Offline
                                        M Offline
                                        mib383
                                        wrote on last edited by
                                        #25

                                        i am using 5.3 qt version. I downloaded it to test standalone apps and qml declaration of interface. I am very interested in qt and i want to migrate from c#/wpf. But this "small" issue is very disapointing me. I think there is a solution but i already wasted 1 week for it.

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          mib383
                                          wrote on last edited by
                                          #26

                                          Thank you for your answers. Can you tell me: does your qt can create standalone qml applications?

                                          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