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. Errors when building QT 4.7.3 from source
Forum Updated to NodeBB v4.3 + New Features

Errors when building QT 4.7.3 from source

Scheduled Pinned Locked Moved Installation and Deployment
19 Posts 3 Posters 19.2k 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.
  • G Offline
    G Offline
    goetz
    wrote on last edited by
    #3

    (Re)-Compiling Qt from the sources within the SDK is know to cause problems. If you need a manually compiled version, I recommend to grab the sources from http://qt.nokia.com/downloads and use that one.

    http://www.catb.org/~esr/faqs/smart-questions.html

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hedge
      wrote on last edited by
      #4

      Is qt-everywhere-opensource-src-4.7.2.zip the right one?

      1 Reply Last reply
      0
      • U Offline
        U Offline
        ucomesdag
        wrote on last edited by
        #5

        You need perl in the path, I had the same issue. Download "activeperl":http://www.activestate.com/activeperl/downloads and your problems will go away ;-)

        Write “Qt”, not “QT” (QuickTime).

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #6

          [quote author="Hedge" date="1303339941"]Is qt-everywhere-opensource-src-4.7.2.zip the right one?
          [/quote]

          Yes, that's the right one (and the most recent, Qt 4.7.3 has not been released yet).

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • H Offline
            H Offline
            Hedge
            wrote on last edited by
            #7

            ucomesdag:
            That helped but there are still 3 or 4 errors:

            @header created for C:/QtSDK/QtSources/4.7.3/src/qt3support/widgets/q3whatsthis.h
            (2)
            header created for C:/QtSDK/QtSources/4.7.3/src/qt3support/widgets/q3widgetstack
            .h (2)
            header (master) created for Qt3Support
            headers.pri file created for Qt3Support
            Creating qmake...
            g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
            nerators/mac -Igenerators/symbian -IC:\QtSDK\QtSources\4.7.3/include -IC:\QtSDK
            QtSources\4.7.3/include/QtCore -IC:\QtSDK\QtSources\4.7.3/include -IC:\QtSDK\QtS
            ources\4.7.3/include/QtCore -IC:\QtSDK\QtSources\4.7.3/src/corelib/global -IC:\Q
            tSDK\QtSources\4.7.3/src/corelib/xml -IC:\QtSDK\QtSources\4.7.3/mkspecs/win32-g+

            • -IC:\QtSDK\QtSources\4.7.3/tools/shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLE
              S -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNI
              CODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_
              GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQMAK
              E_OPENSOURCE_EDITION project.cpp
              project.cpp: In member function 'QStringList& QMakeProject::values(const QString
              &, QMap<QString, QStringList>&)':
              project.cpp:3004: error: 'class QDateTime' has no member named 'toString'
              mingw32-make: *** [project.o] Error 1
              del project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.o option.o win
              makefile.o projectgenerator.o property.o meta.o makefiledeps.o metamakefile.o xm
              loutput.o pbuilder_pbx.o borland_bmake.o msvc_nmake.o msvc_vcproj.o msvc_vcxproj
              .o msvc_objectmodel.o msbuild_objectmodel.o symmake.o initprojectdeploy_symbian.
              o symmake_abld.o symmake_sbsv2.o symbiancommon.o registry.o epocroot.o qbitarray
              .o qbuffer.o qbytearray.o qcryptographichash.o qvsnprintf.o qbytearraymatcher.o
              qconfig.o qdatetime.o qdir.o qdiriterator.o qfile.o qtemporaryfile.o qfileinfo.o
              qabstractfileengine.o qfsfileengine.o qfsfileengine_iterator.o qfsfileengine_wi
              n.o qfsfileengine_iterator_win.o qglobal.o qhash.o qiodevice.o qlibraryinfo.o ql
              ist.o qlinkedlist.o qlocale.o qmalloc.o qmap.o qregexp.o qtextcodec.o qutfcodec.
              o qstring.o qstringlist.o qsystemlibrary.o qtextstream.o quuid.o qvector.o qurl.
              o qsettings.o qsettings_win.o qvariant.o qmetatype.o qxmlstream.o qxmlutils.o qn
              umeric.o
              C:\QtSDK\QtSources\4.7.3\qmake\project.o konnte nicht gefunden werden
              g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
              nerators/mac -Igenerators/symbian -IC:\QtSDK\QtSources\4.7.3/include -IC:\QtSDK
              QtSources\4.7.3/include/QtCore -IC:\QtSDK\QtSources\4.7.3/include -IC:\QtSDK\QtS
              ources\4.7.3/include/QtCore -IC:\QtSDK\QtSources\4.7.3/src/corelib/global -IC:\Q
              tSDK\QtSources\4.7.3/src/corelib/xml -IC:\QtSDK\QtSources\4.7.3/mkspecs/win32-g+
            • -IC:\QtSDK\QtSources\4.7.3/tools/shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLE
              S -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNI
              CODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_
              GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQMAK
              E_OPENSOURCE_EDITION project.cpp
              project.cpp: In member function 'QStringList& QMakeProject::values(const QString
              &, QMap<QString, QStringList>&)':
              project.cpp:3004: error: 'class QDateTime' has no member named 'toString'
              mingw32-make: *** [project.o] Error 1
              Building qmake failed, return code 2@
            1 Reply Last reply
            0
            • U Offline
              U Offline
              ucomesdag
              wrote on last edited by
              #8

              [quote author="Hedge" date="1303341741"]ucomesdag:
              That helped but there are still 3 or 4 errors:
              [/quote]

              Did you run mingw32-make clean before retrying?

              Write “Qt”, not “QT” (QuickTime).

              1 Reply Last reply
              0
              • H Offline
                H Offline
                Hedge
                wrote on last edited by
                #9

                It just shows the following error when I try a clean

                @C:\QtSDK\QtSources\4.7.3>mingw32-make clean
                mingw32-make: *** No rule to make target `clean'. Stop.@

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

                  Bump!
                  Can anyone help me with the problem mentioned in the post above?

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goetz
                    wrote on last edited by
                    #11

                    Try it from the regular source package.

                    http://www.catb.org/~esr/faqs/smart-questions.html

                    1 Reply Last reply
                    0
                    • U Offline
                      U Offline
                      ucomesdag
                      wrote on last edited by
                      #12

                      Did you try running configure without arguments and then build?

                      Here it builds fine with the QtSources 4.7.3 on windows 7 as I mentioned the only hick-up I had was that it needed perl. Btw the regular sources also seem to need perl for syncqt.

                      Write “Qt”, not “QT” (QuickTime).

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        goetz
                        wrote on last edited by
                        #13

                        [quote author="ucomesdag" date="1303596988"]Btw the regular sources also seem to need perl for syncqt.[/quote]

                        syncqt is not needed for regular sources. I used to compile Qt myself on windows for years, I had no problems ever.

                        http://www.catb.org/~esr/faqs/smart-questions.html

                        1 Reply Last reply
                        0
                        • U Offline
                          U Offline
                          ucomesdag
                          wrote on last edited by
                          #14

                          [quote author="Volker" date="1303818302"]
                          [quote author="ucomesdag" date="1303596988"]Btw the regular sources also seem to need perl for syncqt.[/quote]

                          syncqt is not needed for regular sources. I used to compile Qt myself on windows for years, I had no problems ever.[/quote]
                          Same here, but because of the issue with the QtSources that come with the SDK I downloaded the regular sources cause I did'nt want to install perl, if I could have lived without it why install it now, and I had exactly the same issue it needed perl.

                          Write “Qt”, not “QT” (QuickTime).

                          1 Reply Last reply
                          0
                          • G Offline
                            G Offline
                            goetz
                            wrote on last edited by
                            #15

                            syncqt is only needed if the source tree is different from the build tree (according to the configure shell script). I never needed perl on my Windows box when I compiled Qt mysql for a couple of years (always using the regular sources of the framework, no SDK; using MSVS). What are your configure options?

                            http://www.catb.org/~esr/faqs/smart-questions.html

                            1 Reply Last reply
                            0
                            • U Offline
                              U Offline
                              ucomesdag
                              wrote on last edited by
                              #16

                              [quote author="Volker" date="1304013778"]syncqt is only needed if the source tree is different from the build tree (according to the configure shell script). I never needed perl on my Windows box when I compiled Qt mysql for a couple of years (always using the regular sources of the framework, no SDK; using MSVS). What are your configure options?[/quote]
                              None as I always used when compiling from source.

                              Write “Qt”, not “QT” (QuickTime).

                              1 Reply Last reply
                              0
                              • G Offline
                                G Offline
                                goetz
                                wrote on last edited by
                                #17

                                Seems, I need to give it a try myself. I'll report soon.

                                http://www.catb.org/~esr/faqs/smart-questions.html

                                1 Reply Last reply
                                0
                                • U Offline
                                  U Offline
                                  ucomesdag
                                  wrote on last edited by
                                  #18

                                  [quote author="Volker" date="1304028718"]Seems, I need to give it a try myself. I'll report soon.[/quote]Please do so, would like to know if it's me that has it all wrong or not! :-)

                                  Write “Qt”, not “QT” (QuickTime).

                                  1 Reply Last reply
                                  0
                                  • G Offline
                                    G Offline
                                    goetz
                                    wrote on last edited by
                                    #19

                                    I just ran two configure sessions for Qt 4.7.3, and all went without any problems.

                                    Setup:

                                    • Installed Qt Creator 2.2.0
                                    • downloaded qt-everywhere-commercial-src-4.7.3.tar.gz (the open source should be fairly identical, except of licensing files)
                                    • extract the archive
                                    • cd into the extracted directory
                                    • ran .\configure.exe in Visual Studio 2008 command prompt
                                    • opened cmd.exe, put C:\Qt\qtcreator-2.2.0\mingw\bin into PATH and ran .\configure.exe -platform win32-g++ -qconfig minimal

                                    No hassles with missing perl (it is not installed!) in both cases, no call of syncqt.

                                    http://www.catb.org/~esr/faqs/smart-questions.html

                                    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