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
Alright I’m getting tons of errors atm upon building configure.exe here is so far.
- In file included from project.cpp:42:
- In file included from project.cpp:44:
- In file included from project.cpp:45:
- In file included from project.cpp:46:
- option.h: At global scope:
- option.h:80: error: 'QStringList' does not name a type
- option.h:81: error: 'QStringList' does not name a type
- option.h:82: error: 'QStringList' does not name a type
- option.h:149: error: 'QFile' does not name a type
- option.h:155: error: 'QStringList' does not name a type
- option.h:163: error: 'QStringList' does not name a type
- option.h:167: error: 'QStringList' does not name a type
- option.h:173: error: 'QStringList' does not name a type
- option.h:187: error: 'QStringList' does not name a type
- In file included from project.cpp:45:
- cachekeys.h:58: error: field 'string' has incomplete type
- cachekeys.h:58: error: field 'pwd' has incomplete type
- cachekeys.h: In constructor 'FixStringCacheKey::FixStringCacheKey(const QString&
- , uchar)':
- cachekeys.h:63: error: 'pwd' was not declared in this scope
- cachekeys.h:63: error: invalid use of incomplete type 'struct QString'
- C:\QtSDK\QtSources\4.7.3/src/corelib/global/qglobal.h:1424: error: forward decla
- ration of 'struct QString'
- cachekeys.h:64: error: 'string' was not declared in this scope
- cachekeys.h: In member function 'bool FixStringCacheKey::operator==(const FixStr
- ingCacheKey&) const':
- cachekeys.h:71: error: 'const struct FixStringCacheKey' has no member named 'str
- ing'
- cachekeys.h:71: error: 'string' was not declared in this scope
- cachekeys.h:72: error: 'const struct FixStringCacheKey' has no member named 'pwd
- '
- cachekeys.h:72: error: 'pwd' was not declared in this scope
- cachekeys.h: In member function 'uint FixStringCacheKey::hashCode() const':
- cachekeys.h:76: error: 'string' was not declared in this scope
- cachekeys.h:76: error: 'qHash' was not declared in this scope
- cachekeys.h: At global scope:
- cachekeys.h:86: error: field 'file' has incomplete type
- cachekeys.h:86: error: field 'pwd' has incomplete type
- 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: warning: D4002 : ignoring unknown option '-Zc:-'
- 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
Qt uses it within configure:
http://doc.qt.nokia.com/4.7/requirements-win.html
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.
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+0x3ef8): undefined reference to `qt_assert_x(char
- const*, char const*, char const*, int)'
- 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$_ZN5QListIN12Preprocessor11IncludePathEE4freeEPN9
- QListData4DataE[QList<Preprocessor::IncludePath>::free(QListData::Data*)]+0x42):
- undefined reference to `qFree(void*)'
- release/main.o:main.cpp:(.text$_ZN5QListIN12Preprocessor11IncludePathEE4freeEPN9
- undefined reference to `qFree(void*)'
- release/main.o:main.cpp:(.text$_ZN5QListIN12Preprocessor11IncludePathEE6appendER
- KS1_[QList<Preprocessor::IncludePath>::append(Preprocessor::IncludePath const&)]
- +0x3e): undefined reference to `QListData::detach_grow(int*, int)'
- release/main.o:main.cpp:(.text$_ZN5QListIN12Preprocessor11IncludePathEE6appendER
- 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()]+0x70): undefined reference to `qFree(void*)'
- )]+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>
You must log in to post a reply. Not a member yet? Register here!





