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. Qt4 with VS2003
QtWS25 Last Chance

Qt4 with VS2003

Scheduled Pinned Locked Moved Installation and Deployment
23 Posts 3 Posters 9.8k 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.
  • L Offline
    L Offline
    loladiro
    wrote on last edited by
    #10

    Ok, sorry, I thought you were trying to build configure yourself (looked like it from the errors you posted).
    Do you have perl in your PATH?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JediSpam
      wrote on last edited by
      #11

      This is what i currently have in PATH under system variables
      @
      %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QT Lite\QTSystem;C:\Program Files\Shoreline Communications\ShoreWare Client;C:\QtSDK\mingw\bin;C:\QtSDK\QtCreator\bin;C:\QtSDK\Desktop\Qt\4.7.3\msvc2008\bin;
      @

      Here is a screen of my "Qt4" and "Tool Chains". I have only VS2003 installed at the moment

      !http://img706.imageshack.us/img706/4585/newpicture6c.png(yep)!

      !http://img12.imageshack.us/img12/6840/newpicture7m.png(sup)!

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JediSpam
        wrote on last edited by
        #12

        what do i need perl for?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          loladiro
          wrote on last edited by
          #13

          Qt uses it within configure:
          http://doc.qt.nokia.com/4.7/requirements-win.html

          1 Reply Last reply
          0
          • G Offline
            G Offline
            giesbert
            wrote on last edited by
            #14

            if you download the SDK, you can't build qt from there. To build your own qt, you must download the source zip file from "here":http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.3.zip and then build it.

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply
            0
            • J Offline
              J Offline
              JediSpam
              wrote on last edited by
              #15

              Alright let me try this out and i'll let you know! thanks again

              1 Reply Last reply
              0
              • J Offline
                J Offline
                JediSpam
                wrote on last edited by
                #16

                just ran configure and it works like a champ! my next instruction was to "Just run mingw32-make" and now i'm seeing tons of errors after trying to run that. I have perl installed and qt-everywhere-opensource-src-4.7.3

                @
                int, int) const'
                release/main.o:main.cpp:(.text+0x3e0d): undefined reference to QByteArray::oper ator=(QByteArray const&)' release/main.o:main.cpp:(.text+0x3e2a): undefined reference to qFree(void*)'
                release/main.o:main.cpp:(.text+0x3e81): undefined reference to qFree(void*)' release/main.o:main.cpp:(.text+0x3ebf): undefined reference to QHashData::free_
                helper(void ()(QHashData::Node))'
                release/main.o:main.cpp:(.text+0x3ef8): undefined reference to qt_assert_x(char const*, char const*, char const*, int)' release/main.o:main.cpp:(.text+0x3f41): undefined reference to QByteArray::oper
                ator=(QByteArray const&)'
                release/main.o:main.cpp:(.text$_ZN5QListI7QStringE4freeEPN9QListData4DataE[QList
                <QString>::free(QListData::Data*)]+0x34): undefined reference to QString::free( QString::Data*)' release/main.o:main.cpp:(.text$_ZN5QListI7QStringE4freeEPN9QListData4DataE[QList <QString>::free(QListData::Data*)]+0x57): undefined reference to qFree(void*)'
                release/main.o:main.cpp:(.text$_ZN5QListIN12Preprocessor11IncludePathEE4freeEPN9
                QListData4DataE[QListPreprocessor::IncludePath::free(QListData::Data*)]+0x42):
                undefined reference to qFree(void*)' release/main.o:main.cpp:(.text$_ZN5QListIN12Preprocessor11IncludePathEE4freeEPN9 QListData4DataE[QList<Preprocessor::IncludePath>::free(QListData::Data*)]+0x6f): undefined reference to qFree(void*)'
                release/main.o:main.cpp:(.text$ZN5QListIN12Preprocessor11IncludePathEE6appendER
                KS1
                [QListPreprocessor::IncludePath::append(Preprocessor::IncludePath const&)]
                +0x3e): undefined reference to QListData::detach_grow(int*, int)' release/main.o:main.cpp:(.text$_ZN5QListIN12Preprocessor11IncludePathEE6appendER KS1_[QList<Preprocessor::IncludePath>::append(Preprocessor::IncludePath const&)] +0x15f): undefined reference to QListData::append()'
                release/main.o:main.cpp:(.text$_ZN4QMapI10QByteArrayS0_ED1Ev[QMap<QByteArray, QB
                yteArray>::~QMap()]+0x34): undefined reference to QMapData::continueFreeData(in t)' release/main.o:main.cpp:(.text$_ZN4QMapI10QByteArrayS0_ED1Ev[QMap<QByteArray, QB yteArray>::~QMap()]+0x5a): undefined reference to qFree(void*)'
                release/main.o:main.cpp:(.text$_ZN4QMapI10QByteArrayS0_ED1Ev[QMap<QByteArray, QB
                yteArray>::~QMap()]+0x70): undefined reference to qFree(void*)' release/main.o:main.cpp:(.text$_ZN5QListI8ClassDefED1Ev[QList<ClassDef>::~QList( )]+0x6d): undefined reference to qFree(void*)'
                collect2: ld returned 1 exit status
                mingw32-make[2]: *** [......\bin\moc.exe] Error 1
                mingw32-make[2]: Leaving directory C:/QtSDK/QtSources/4.7.3/src/tools/moc' mingw32-make[1]: *** [release] Error 2 mingw32-make[1]: Leaving directory C:/QtSDK/QtSources/4.7.3/src/tools/moc'
                mingw32-make: *** [sub-moc-make_default-ordered] Error 2

                C:\QtSDK\QtSources\4.7.3>
                @

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

                  Why do you run mingw-make if you want to build with MSVS 2003?
                  MSVS 2003 uses nmake, not mingw-make

                  Nokia Certified Qt Specialist.
                  Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    JediSpam
                    wrote on last edited by
                    #18

                    Yep thats true! I re-ran configure and now it prompted me to use "nmake". It's currently running without errors we'll see what happens when it's done *crosses fingers

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      JediSpam
                      wrote on last edited by
                      #19

                      Alright nmake built correctly! Took a few hours but no errors. Tried to run one of the examples in QT and this is what I'm getting:

                      "Direct Link":http://i54.tinypic.com/2ywfvbo.jpg

                      !http://i54.tinypic.com/qqvojn.jpg(screenshot)!

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        giesbert
                        wrote on last edited by
                        #20

                        So, did you add the newly build Qt to the Qt versions of QtCreator? If yes, did you add it for the project (or just delete the pro.user file and reopen the pro project in creator)?

                        Nokia Certified Qt Specialist.
                        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          JediSpam
                          wrote on last edited by
                          #21

                          I just added it to the "Qt Versions" and that's all i've done.

                          !http://i51.tinypic.com/2vjrbyh.jpg(qt)!

                          Do i need to do the second thing you mentioned?

                          1 Reply Last reply
                          0
                          • G Offline
                            G Offline
                            giesbert
                            wrote on last edited by
                            #22

                            if you had your qt project before in creator, it uses another qt build.
                            So I suggest, close creator, delete teh .pro.user file (or some similar names) and reopen it. Then you are asked, which Qt version to use. Select your msvs 2003 build....

                            Nokia Certified Qt Specialist.
                            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                            1 Reply Last reply
                            0
                            • J Offline
                              J Offline
                              JediSpam
                              wrote on last edited by
                              #23

                              Got it working! Thank you very much. I realized I have multiple instances of QT and had a lot of confusion going on.

                              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