August 13, 2011

JediSpam JediSpam
Lab Rat
21 posts

Qt4 with VS2003

Page  
1

For a few reasons, I am required to use VS2003 right now in Qt4. I am trying to configure it properly with Qt4 but having some issues. It recognizes VS2003 but won’t build properly. I’m trying to run the configure.exe and it errors out because some of the directories are no longer in the same location. Any help would be great!

Edited: it’s Qt, not QT.

22 replies

August 13, 2011

Gerolf Gerolf
Area 51 Engineer
3210 posts

AFAIK, VS2003 is not anymore supported.
What does confige write as error? Which dirs are missing? A bit more information would help.

 Signature 

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

August 13, 2011

JediSpam JediSpam
Lab Rat
21 posts

Yeah I know it’s no longer supported. 2005 is the last that is acknowledged in the package manager. I will post up the errors tomorrow

August 13, 2011

loladiro loladiro
Lab Rat
596 posts

I have managed to successfully compile Qt 4.7.3 with an out-of-the box VS2003, so it is possible. I’ll try to help you once you post the errors.

August 13, 2011

JediSpam JediSpam
Lab Rat
21 posts

Alright I’m getting tons of errors atm upon building configure.exe here is so far.

  1. In file included from project.cpp:42:
  2. project.h:45:25: error: qstringlist.h: No such file or directory
  3. project.h:46:25: error: qtextstream.h: No such file or directory
  4. project.h:47:21: error: qstring.h: No such file or directory
  5. project.h:48:20: error: qstack.h: No such file or directory
  6. project.h:49:18: error: qmap.h: No such file or directory
  7. project.h:50:23: error: qmetatype.h: No such file or directory
  8. In file included from project.cpp:44:
  9. option.h:48:19: error: qfile.h: No such file or directory
  10. In file included from project.cpp:45:
  11. cachekeys.h:49:23: error: qfileinfo.h: No such file or directory
  12. cachekeys.h:50:19: error: qhash.h: No such file or directory
  13. In file included from project.cpp:46:
  14. generators/metamakefile.h:47:19: error: qlist.h: No such file or directory
  15. project.cpp:48:23: error: qdatetime.h: No such file or directory
  16. project.cpp:51:18: error: qdir.h: No such file or directory
  17. project.cpp:52:21: error: qregexp.h: No such file or directory
  18. project.cpp:56:20: error: qdebug.h: No such file or directory

  1. option.h: At global scope:
  2. option.h:80: error: 'QStringList' does not name a type
  3. option.h:81: error: 'QStringList' does not name a type
  4. option.h:82: error: 'QStringList' does not name a type
  5. option.h:149: error: 'QFile' does not name a type
  6. option.h:155: error: 'QStringList' does not name a type
  7. option.h:163: error: 'QStringList' does not name a type
  8. option.h:167: error: 'QStringList' does not name a type
  9. option.h:173: error: 'QStringList' does not name a type
  10. option.h:187: error: 'QStringList' does not name a type

  1. In file included from project.cpp:45:
  2. cachekeys.h:58: error: field 'string' has incomplete type
  3. cachekeys.h:58: error: field 'pwd' has incomplete type
  4. cachekeys.h: In constructor 'FixStringCacheKey::FixStringCacheKey(const QString&
  5. , uchar)':
  6. cachekeys.h:63: error: 'pwd' was not declared in this scope
  7. cachekeys.h:63: error: invalid use of incomplete type 'struct QString'
  8. C:\QtSDK\QtSources\4.7.3/src/corelib/global/qglobal.h:1424: error: forward decla
  9. ration of 'struct QString'
  10. cachekeys.h:64: error: 'string' was not declared in this scope
  11. cachekeys.h: In member function 'bool FixStringCacheKey::operator==(const FixStr
  12. ingCacheKey&) const':
  13. cachekeys.h:71: error: 'const struct FixStringCacheKey' has no member named 'str
  14. ing'
  15. cachekeys.h:71: error: 'string' was not declared in this scope
  16. cachekeys.h:72: error: 'const struct FixStringCacheKey' has no member named 'pwd
  17. '
  18. cachekeys.h:72: error: 'pwd' was not declared in this scope
  19. cachekeys.h: In member function 'uint FixStringCacheKey::hashCode() const':
  20. cachekeys.h:76: error: 'string' was not declared in this scope
  21. cachekeys.h:76: error: 'qHash' was not declared in this scope
  22. cachekeys.h: At global scope:
  23. cachekeys.h:86: error: field 'file' has incomplete type
  24. cachekeys.h:86: error: field 'pwd' has incomplete type
  25. cachekeys.h: In constructor 'FileInfoCacheKey::FileInfoCacheKey(const QString&)'

Seems like most errors coming from cachekeys.h, option.h, project.h. Those are just a few of the errors coming up.

When i build it from QT Creator the errors are

  1. :-1: warning: D4002 : ignoring unknown option '-Zc:-'

  1. C:\QtSDK\QtSources\4.7.3\tools\configure-build-desktop\..\configure\configure_pch.h:58: error: C1083: Cannot open include file: 'qlist.h': No such file or directory

August 13, 2011

loladiro loladiro
Lab Rat
596 posts

You’re not supposed to build configure.exe yourself. It’s included in the source package.

August 13, 2011

JediSpam JediSpam
Lab Rat
21 posts

when does it get executed? why is there a .bat with options then?

August 13, 2011

loladiro loladiro
Lab Rat
596 posts

It’s in the main folder of the source package. You just call configure.exe like you would ./configure on linux, with all the appropriate options. If you do not have configure.exe in your source package, may I recommend you to re-download it.

August 13, 2011

JediSpam JediSpam
Lab Rat
21 posts

That’s what i’ve done. I’m getting those errors from running configure.exe command prompt. I prompt “o” for open source edition then “y” to accept the license then errors spew

August 13, 2011

loladiro loladiro
Lab Rat
596 posts

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?

August 13, 2011

JediSpam JediSpam
Lab Rat
21 posts

This is what i currently have in PATH under system variables

  1. %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

yep

sup

August 13, 2011

JediSpam JediSpam
Lab Rat
21 posts

what do i need perl for?

August 13, 2011

loladiro loladiro
Lab Rat
596 posts

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

August 13, 2011

Gerolf Gerolf
Area 51 Engineer
3210 posts

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 [get.qt.nokia.com] and then build it.

 Signature 

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

August 14, 2011

JediSpam JediSpam
Lab Rat
21 posts

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

August 15, 2011

JediSpam JediSpam
Lab Rat
21 posts

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

  1. int, int) const'
  2. release/main.o:main.cpp:(.text+0x3e0d): undefined reference to `QByteArray::oper
  3. ator=(QByteArray const&)'
  4. release/main.o:main.cpp:(.text+0x3e2a): undefined reference to `qFree(void*)'
  5. release/main.o:main.cpp:(.text+0x3e81): undefined reference to `qFree(void*)'
  6. release/main.o:main.cpp:(.text+0x3ebf): undefined reference to `QHashData::free_
  7. helper(void (*)(QHashData::Node*))'
  8. release/main.o:main.cpp:(.text+0x3ef8): undefined reference to `qt_assert_x(char
  9. const*, char const*, char const*, int)'
  10. release/main.o:main.cpp:(.text+0x3f41): undefined reference to `QByteArray::oper
  11. ator=(QByteArray const&)'
  12. release/main.o:main.cpp:(.text$_ZN5QListI7QStringE4freeEPN9QListData4DataE[QList
  13. <QString>::free(QListData::Data*)]+0x34): undefined reference to `QString::free(
  14. QString::Data*)'
  15. release/main.o:main.cpp:(.text$_ZN5QListI7QStringE4freeEPN9QListData4DataE[QList
  16. <QString>::free(QListData::Data*)]+0x57): undefined reference to `qFree(void*)'
  17. release/main.o:main.cpp:(.text$_ZN5QListIN12Preprocessor11IncludePathEE4freeEPN9
  18. QListData4DataE[QList<Preprocessor::IncludePath>::free(QListData::Data*)]+0x42):
  19. undefined reference to `qFree(void*)'
  20. release/main.o:main.cpp:(.text$_ZN5QListIN12Preprocessor11IncludePathEE4freeEPN9
  21. QListData4DataE[QList<Preprocessor::IncludePath>::free(QListData::Data*)]+0x6f):
  22.  undefined reference to `qFree(void*)'
  23. release/main.o:main.cpp:(.text$_ZN5QListIN12Preprocessor11IncludePathEE6appendER
  24. KS1_[QList<Preprocessor::IncludePath>::append(Preprocessor::IncludePath const&)]
  25. +0x3e): undefined reference to `QListData::detach_grow(int*, int)'
  26. release/main.o:main.cpp:(.text$_ZN5QListIN12Preprocessor11IncludePathEE6appendER
  27. KS1_[QList<Preprocessor::IncludePath>::append(Preprocessor::IncludePath const&)]
  28. +0x15f): undefined reference to `QListData::append()'
  29. release/main.o:main.cpp:(.text$_ZN4QMapI10QByteArrayS0_ED1Ev[QMap<QByteArray, QB
  30. yteArray>::~QMap()]+0x34): undefined reference to `QMapData::continueFreeData(in
  31. t)'
  32. release/main.o:main.cpp:(.text$_ZN4QMapI10QByteArrayS0_ED1Ev[QMap<QByteArray, QB
  33. yteArray>::~QMap()]+0x5a): undefined reference to `qFree(void*)'
  34. release/main.o:main.cpp:(.text$_ZN4QMapI10QByteArrayS0_ED1Ev[QMap<QByteArray, QB
  35. yteArray>::~QMap()]+0x70): undefined reference to `qFree(void*)'
  36. release/main.o:main.cpp:(.text$_ZN5QListI8ClassDefED1Ev[QList<ClassDef>::~QList(
  37. )]+0x6d): undefined reference to `qFree(void*)'
  38. collect2: ld returned 1 exit status
  39. mingw32-make[2]: *** [..\..\..\bin\moc.exe] Error 1
  40. mingw32-make[2]: Leaving directory `C:/QtSDK/QtSources/4.7.3/src/tools/moc'
  41. mingw32-make[1]: *** [release] Error 2
  42. mingw32-make[1]: Leaving directory `C:/QtSDK/QtSources/4.7.3/src/tools/moc'
  43. mingw32-make: *** [sub-moc-make_default-ordered] Error 2
  44.  
  45. C:\QtSDK\QtSources\4.7.3>

Page  
1

  ‹‹ Simulator not starting      QtCreator/Compiler cannot find header files. ››

You must log in to post a reply. Not a member yet? Register here!