Hello,
yesterday I compiled Qt 4.3.2 with Visual Studio 2005 Express Edition (german). After configuring without needed patch in QTDIR:
and compilingconfigure
I set environment variables in a special batch file like this:nmake
I have a project that consists of several subdirectories containing libraries/dll projects using pro-templates ofset QTDIR = D:\Programme\Qt\4.3.2
set PATH=%PATH;D:\Programme\Qt\4.3.2\bin
set QMAKESPEC = win32-msvc2005orvcliband one subdir containing application, I use thevcapptemplate in main dir of project. I have a Qt pro file like this in the subdirs:SUBDIRS
When I generate my vcproj file withTEMPLATE = vclib
#TEMPLATE = lib
LANGUAGE = C++
VERSION = 1.0.0.2
CONFIG(debug, debug|release) {
TARGET = Libd
DEFINES += QT_DEBUG
CONFIG += console
} else {
TARGET = Lib
}
INCLUDEPATH = \
../debug \
SOURCES += \
[... skipped ...]
HEADERS += \
[ ... skipped ]
QT -= gui
CONFIG += dll qt warn_on debug_and_release
DEFINES += BUILD_LIB
in the subdirs I get vcproj files with names of the debug target name (Libd) of library/app, which was not so in Qt 4.3.1qmake -tp vc
I generate the main solutions file in main dir with
which generates a main dir solutions file (main.sln)qmake -tp vc -r main.pro
Another thing is when loading these project files or the solutions file of subdirs project I get a raised warning level with messages like
meaning a local parameter is not referenced in function orTPXModel.cpp(14) : warning C4100: 'qName': Unreferenzierter formaler Parameter
meaning a local variable is initialised but not referenced in function..\MainWindow.cpp(9) : warning C4189: 'view': Lokale Variable ist initialisiert aber nicht referenziert
and when linking I get another new warning:
meaning that I have to specify /MACHINE parameter when linking my project, that was never true for Qt < 4.3.2LINK : warning LNK4068: /MACHINE nicht angegeben ; Standardwert X86
Any hints on this are very well appreciated, I'll have to stick to 4.3.1 until this has been resolved.
Thx
AlGaN
Bookmarks