Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT Compile problem.

QT Compile problem.

Scheduled Pinned Locked Moved Unsolved General and Desktop
33 Posts 6 Posters 8.9k 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.
  • U Offline
    U Offline
    UnLuckyGuy
    wrote on 19 Mar 2018, 13:51 last edited by
    #3

    First, tell me if i should add that new compiled environment, or i just add "CONFIG+= shared " ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 19 Mar 2018, 14:05 last edited by
      #4

      Hi and welcome to devnet,

      The -prefix option is used when you call make install (or mingw32-make in your case). So before going further to that to have your custom version installed properly. Then with Qt Creator, add this new version, make a Kit for it and then you can use it to build your application.

      If you are starting your application outside Qt Creator, you have to first follow the deployment procedure. The most simple thing to do is to use windeployqt.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      U 1 Reply Last reply 19 Mar 2018, 14:36
      2
      • S SGaist
        19 Mar 2018, 14:05

        Hi and welcome to devnet,

        The -prefix option is used when you call make install (or mingw32-make in your case). So before going further to that to have your custom version installed properly. Then with Qt Creator, add this new version, make a Kit for it and then you can use it to build your application.

        If you are starting your application outside Qt Creator, you have to first follow the deployment procedure. The most simple thing to do is to use windeployqt.

        U Offline
        U Offline
        UnLuckyGuy
        wrote on 19 Mar 2018, 14:36 last edited by
        #5

        @SGaist But their is no qmake.exe, so how can i add that ne version? I compiled it two times.

        J 1 Reply Last reply 19 Mar 2018, 15:28
        0
        • U UnLuckyGuy
          19 Mar 2018, 14:36

          @SGaist But their is no qmake.exe, so how can i add that ne version? I compiled it two times.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 19 Mar 2018, 15:28 last edited by
          #6

          @UnLuckyGuy If there is no qmake.exe then your build failed or you did not execute "make install"

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

          U 1 Reply Last reply 19 Mar 2018, 15:36
          1
          • J jsulm
            19 Mar 2018, 15:28

            @UnLuckyGuy If there is no qmake.exe then your build failed or you did not execute "make install"

            U Offline
            U Offline
            UnLuckyGuy
            wrote on 19 Mar 2018, 15:36 last edited by
            #7

            @jsulm I installed version 5.2, but in src, there is no Makefile, configure etc, there are just folder, and if i run the command prompt, then i do cd and configure, it says "Error, unknown command" or something like that.
            How to generate those files? I n version 5.3.2 it's all there, but here not. I prefer 5.2, so now i must fix this issue too.

            J 1 Reply Last reply 19 Mar 2018, 15:51
            0
            • U UnLuckyGuy
              19 Mar 2018, 15:36

              @jsulm I installed version 5.2, but in src, there is no Makefile, configure etc, there are just folder, and if i run the command prompt, then i do cd and configure, it says "Error, unknown command" or something like that.
              How to generate those files? I n version 5.3.2 it's all there, but here not. I prefer 5.2, so now i must fix this issue too.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 19 Mar 2018, 15:51 last edited by
              #8

              @UnLuckyGuy What exactly did you install? To build Qt you need its source code.
              You don't generate configure, it is already there.

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

              U 1 Reply Last reply 19 Mar 2018, 16:07
              1
              • J jsulm
                19 Mar 2018, 15:51

                @UnLuckyGuy What exactly did you install? To build Qt you need its source code.
                You don't generate configure, it is already there.

                U Offline
                U Offline
                UnLuckyGuy
                wrote on 19 Mar 2018, 16:07 last edited by
                #9

                @jsulm
                In version 5.3.2, there are config files, and some more, in 5.20 there are folders only :O

                In 5.3.2 if i just do:

                cd: path, and use this commands configure -platform win32-g++ -release -shared
                It's run, in 5.20 is give's me the error "unknown commands" or incorrect.
                I am downloading 5.2.1, i don't like that 5.3.2, i build my program, and my tool has bad performance (The project has been created in 5.20).

                So, i should use prefix command, in mingw32-make?

                For example : mingw32-make -prefix c:/softwares/qt...etc ?

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 19 Mar 2018, 16:09 last edited by
                  #10

                  Where did you download the 5.2 sources from ?

                  Just in case, you do realise that the current supported version is 5.10 with the LTS being 5.9 ? You are trying to use outdated versions of Qt which might not be the best bet in the long run.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  U 1 Reply Last reply 19 Mar 2018, 16:57
                  0
                  • S SGaist
                    19 Mar 2018, 16:09

                    Where did you download the 5.2 sources from ?

                    Just in case, you do realise that the current supported version is 5.10 with the LTS being 5.9 ? You are trying to use outdated versions of Qt which might not be the best bet in the long run.

                    U Offline
                    U Offline
                    UnLuckyGuy
                    wrote on 19 Mar 2018, 16:57 last edited by UnLuckyGuy
                    #11

                    @SGaist Men, it was something like 3-5 years ago... I don't know, other versions don't work with OpenGL in my case, so i use that. (It's not a openGl program, but i like this version). I remember, i donwnload it from here probably.

                    Sources are ther,in installation i check "sources", and it install it.
                    I am installing 5.2.1, will see, if they are there.

                    1 Reply Last reply
                    0
                    • U Offline
                      U Offline
                      UnLuckyGuy
                      wrote on 19 Mar 2018, 17:14 last edited by UnLuckyGuy
                      #12

                      Nothing is there too, in version 5.2.1, only folders are there.
                      I am gonna download somthing like 5.6, or better, will see what happend.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 19 Mar 2018, 21:35 last edited by
                        #13

                        You can grab the sources from here.

                        Why 5.6 ? Do you have a technical limitation that forbids the use of a current version ? As wrote before, if you need LTS the current is 5.9.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        U 1 Reply Last reply 19 Mar 2018, 23:03
                        1
                        • S SGaist
                          19 Mar 2018, 21:35

                          You can grab the sources from here.

                          Why 5.6 ? Do you have a technical limitation that forbids the use of a current version ? As wrote before, if you need LTS the current is 5.9.

                          U Offline
                          U Offline
                          UnLuckyGuy
                          wrote on 19 Mar 2018, 23:03 last edited by UnLuckyGuy
                          #14

                          @SGaist This is all messed up... I download 5.7, and it's compile, but it fails too. It create the qmake, but if i trz to us is, it's impossible to run anything, error "QT5 dll is missing" and "widgets module is not declared".

                          http://www.mediafire.com/view/waroga8c7d75nid/Error.png

                          I am not gonna download any rusty scrap again. I have enough.

                          D 1 Reply Last reply 20 Mar 2018, 05:38
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 19 Mar 2018, 23:06 last edited by
                            #15

                            You don't give any information about what option you are using so it's close to impossible to give you some hints.

                            By the way, why are you building Qt ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            U 1 Reply Last reply 19 Mar 2018, 23:16
                            0
                            • S SGaist
                              19 Mar 2018, 23:06

                              You don't give any information about what option you are using so it's close to impossible to give you some hints.

                              By the way, why are you building Qt ?

                              U Offline
                              U Offline
                              UnLuckyGuy
                              wrote on 19 Mar 2018, 23:16 last edited by UnLuckyGuy
                              #16

                              @SGaist Men, listen, the only thing i do, is run the command prompt, set the path to the source, add:

                              configure -platform win32-g++ -release -shared

                              Then in mingw32-make if i try to use, that rusty junk doesn't work, i mean prefix:

                              -prefix C:/QT_Compiled/ABC/

                              And that's it, i do nothing else. When it's compiling, it ask me for opengl, but i can skip it, is not an error, but something like warning i think. I dont want ther OpenGL, at least now.

                              "By the way, why are you building Qt ?"

                              I wanna compile my tool, and send to my friend, with DLL's, not the source code.

                              J 1 Reply Last reply 20 Mar 2018, 05:19
                              0
                              • U UnLuckyGuy
                                19 Mar 2018, 23:16

                                @SGaist Men, listen, the only thing i do, is run the command prompt, set the path to the source, add:

                                configure -platform win32-g++ -release -shared

                                Then in mingw32-make if i try to use, that rusty junk doesn't work, i mean prefix:

                                -prefix C:/QT_Compiled/ABC/

                                And that's it, i do nothing else. When it's compiling, it ask me for opengl, but i can skip it, is not an error, but something like warning i think. I dont want ther OpenGL, at least now.

                                "By the way, why are you building Qt ?"

                                I wanna compile my tool, and send to my friend, with DLL's, not the source code.

                                J Offline
                                J Offline
                                jsulm
                                Lifetime Qt Champion
                                wrote on 20 Mar 2018, 05:19 last edited by
                                #17

                                @UnLuckyGuy said in QT Compile problem.:

                                I wanna compile my tool, and send to my friend, with DLL's, not the source code.

                                For that you do not have to compile Qt by yourself. Simply install precompiled Qt for your compiler and use it.

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

                                U 1 Reply Last reply 20 Mar 2018, 14:36
                                2
                                • U UnLuckyGuy
                                  19 Mar 2018, 23:03

                                  @SGaist This is all messed up... I download 5.7, and it's compile, but it fails too. It create the qmake, but if i trz to us is, it's impossible to run anything, error "QT5 dll is missing" and "widgets module is not declared".

                                  http://www.mediafire.com/view/waroga8c7d75nid/Error.png

                                  I am not gonna download any rusty scrap again. I have enough.

                                  D Offline
                                  D Offline
                                  Diracsbracket
                                  wrote on 20 Mar 2018, 05:38 last edited by Diracsbracket
                                  #18

                                  @UnLuckyGuy
                                  Not related to your problem, but this forum has the neat option where you can make a screen shot and directly paste it in your post using CTRL-V (since you are working on Windows it seems). Or drag&Drop your image file directly into your post. That saves you the trouble of having to upload your image to some external site like mediafire first.

                                  1 Reply Last reply
                                  0
                                  • J jsulm
                                    20 Mar 2018, 05:19

                                    @UnLuckyGuy said in QT Compile problem.:

                                    I wanna compile my tool, and send to my friend, with DLL's, not the source code.

                                    For that you do not have to compile Qt by yourself. Simply install precompiled Qt for your compiler and use it.

                                    U Offline
                                    U Offline
                                    UnLuckyGuy
                                    wrote on 20 Mar 2018, 14:36 last edited by
                                    #19

                                    @jsulm If you help me, where to download the right Pre-compiled version, because i rly have enough of errors.

                                    I have now QT 5.2.1 and 5.7 with MinGW 5.3 and 4.8, what version should i donwload of that pre-compiled QT? And where?

                                    1 Reply Last reply
                                    0
                                    • U Offline
                                      U Offline
                                      UnLuckyGuy
                                      wrote on 20 Mar 2018, 18:03 last edited by UnLuckyGuy
                                      #20

                                      Guys, anybody knows what to do?? I need it, and i tried everything i can.

                                      PS.Here is the error list.
                                      http://www.mediafire.com/view/waroga8c7d75nid/Error.png#

                                      What commands shold i use on mingw32-make ?? I tried t download that pre-compiled version, but i can't find it for QT.

                                      1 Reply Last reply
                                      0
                                      • M Offline
                                        M Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on 20 Mar 2018, 18:06 last edited by
                                        #21

                                        Hi
                                        Here is direct link to lastest version
                                        https://download.qt.io/official_releases/qt/5.10/5.10.1/
                                        you can go back to get older if you really need.
                                        Make sure to select the mingw version as you not to have VS installed.

                                        U 1 Reply Last reply 20 Mar 2018, 18:40
                                        2
                                        • M mrjj
                                          20 Mar 2018, 18:06

                                          Hi
                                          Here is direct link to lastest version
                                          https://download.qt.io/official_releases/qt/5.10/5.10.1/
                                          you can go back to get older if you really need.
                                          Make sure to select the mingw version as you not to have VS installed.

                                          U Offline
                                          U Offline
                                          UnLuckyGuy
                                          wrote on 20 Mar 2018, 18:40 last edited by
                                          #22

                                          @mrjj But it's gonna compile? I need any working version to compile, and have the access to compile my tool. Even if it's 5.9, i just need it for compilation process.

                                          M 1 Reply Last reply 20 Mar 2018, 18:48
                                          0

                                          12/33

                                          19 Mar 2018, 17:14

                                          • Login

                                          • Login or register to search.
                                          12 out of 33
                                          • First post
                                            12/33
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved