Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved]I can't compile Qt5.1 on windows 7. :/
Forum Updated to NodeBB v4.3 + New Features

[Solved]I can't compile Qt5.1 on windows 7. :/

Scheduled Pinned Locked Moved Installation and Deployment
21 Posts 5 Posters 14.9k 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.
  • JKSHJ Offline
    JKSHJ Offline
    JKSH
    Moderators
    wrote on last edited by
    #3

    [quote author="Lo-X" date="1375000585"]Is it normal that there are 2 \ between qtbase and configure.exe ?[/quote]No, it's not.

    Make sure you:

    Use cmd.exe, not MSYS

    Call configure.bat in the root directory (C:\qt-everywhere-opensource-src-5.1.0\configure.bat), NOT inside qtbase

    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Lo-X
      wrote on last edited by
      #4

      I've dowloaded the .zip and it works better.
      But know i've an error while compiling.
      I followed this thread : "Ici":http://www.qtfr.org/viewtopic.php?id=1609

      But, when I run mingw32-make I get this error :

      "Image here ":http://www.hostingpics.net/viewer.php?id=881120compilingqtproblem.jpg

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #5

        It looks like the build system doesn't support spaces in your library path. "Program Files (x86)" has 2 spaces, so it thinks you have 3 files:

        • C:\Program
        • Files
        • (x86)\amzi\amzi_7-6-9\lib

        Install amzi into a location with no spaces and try again.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Lo-X
          wrote on last edited by
          #6

          Ok I changed amzi location, and the AMZI_DIR environment var.

          But now i get a new error when I want to compile the mysql plugin for window :

          Unable to find file for inclusion qt_plugin

          1 Reply Last reply
          0
          • L Offline
            L Offline
            Lo-X
            wrote on last edited by
            #7

            I solved it, there's an error in the path, then, I had to specify the absolute path for running qmake.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              Lo-X
              wrote on last edited by
              #8

              The compilation is too long, is there an other way to activate the mysql-driver without recompiling the entire framework ?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #9

                Hi,

                If you already have a Qt built, you can follow the instructions "here":http://qt-project.org/doc/qt-5.0/qtsql/sql-driver.html#qmysql without recompiling all of Qt

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

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  Lo-X
                  wrote on last edited by
                  #10

                  No, I havent a Qt build, the Qt build that I've downloaded don't work, I have undefined references to the .lib files.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    What version did you download and what errors do you get ?

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

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      Lo-X
                      wrote on last edited by
                      #12

                      Qt 5.1.0 and I get a lot of undefined reference error, I use code::blocks and it seams it doesn't find the .lib files, but, I prefer work with static link (.a files.), with Qt 4.7 I've .a instead of .lib files and it worked.
                      But with Qt 5.1 build It's .lib files...

                      I've a question, how can I desactivate the jsbackend for qt compilation, it didn't work...

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #13

                        What package did you install ? There are several downloads available, MinGW and Visual Studio.

                        Which one did you install for Qt 4.7 ?

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

                        1 Reply Last reply
                        0
                        • L Offline
                          L Offline
                          Lo-X
                          wrote on last edited by
                          #14

                          Ha yeah, in fact, I picked the wrong download but now some dll are missing like icuin51.dll, where can I find this dll files ?

                          1 Reply Last reply
                          0
                          • L Offline
                            L Offline
                            Lo-X
                            wrote on last edited by
                            #15

                            I found it!
                            It was in the bin directory of qt.
                            Even windows didn't find it hahaha.

                            now, it run. ^^

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #16

                              Great !

                              Don't forget to update the thread's title to solved so other forum users may know a solution has been found :)

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

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                Mr_Ada
                                wrote on last edited by
                                #17

                                I got the same error as the originator of this thread did and there isn't enough here to get it to work for me. I am guessing I have a path issue. What should be in the path to make this script happy?

                                1 Reply Last reply
                                0
                                • JKSHJ Offline
                                  JKSHJ Offline
                                  JKSH
                                  Moderators
                                  wrote on last edited by
                                  #18

                                  Hi,

                                  [quote author="Mr_Ada" date="1382505300"]I got the same error as the originator of this thread did and there isn't enough here to get it to work for me. I am guessing I have a path issue. What should be in the path to make this script happy?[/quote]We'll need more details about your environment and what you've tried so far.

                                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

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

                                    I am running Windows XP64 and using a CMD shell I got to the first error mentioned above.

                                    I have tried to work with a CYGWIN build but that wasn't good either. What I am trying to do is get some debug static libs so that I can traverse through Qt code. I am writing Ada bindings and have had mixed success with my bindings. Some objects display, some dont.

                                    1 Reply Last reply
                                    0
                                    • JKSHJ Offline
                                      JKSHJ Offline
                                      JKSH
                                      Moderators
                                      wrote on last edited by
                                      #20

                                      CMD shell using what tools? Where did you get those tools from? Where did you get the source code from? What's in your PATH?

                                      I'd imagine that you'll have better luck if you keep trying with a native build, rather than a Cygwin build which adds an extra layer of complexity.

                                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

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

                                        I tried using Qt's MinGW compiler. I also tried to get Windows SDK but they don't provide one for XP64.

                                        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