[Qt-interest] MSVC add-in - some problems
Olaf Krzikalla
Olaf.Krzikalla at tu-dresden.de
Thu Dec 2 16:37:31 CET 2010
Hi,
I've encountered two problems with the MSVC add-in.
1. Sometimes environment variables are surrounded by _() instead of $().
That is, in the vcproj file things like _(QTDIR) appear, where $(QTDIR)
would be correct. In particular the bug can be found in all the
VCCustomBuildTool sections (moc, uic, rcc). This bug is already there
for a while and it didn't change until 1.1.7.
2. Since at least 1.1.5 library names seems to be expanded to a fully
qualified path. That is, if you have something like this:
LIB_DIR = c:\example
LIBS += -L"$$LIB_DIR" -lmylib
then the vcproj may contain the entry
AdditionalDependencies=c:\example\mylib.lib
It seems that the add-in searches and locates the libs. Well, the idea
itself seems already broken to me (but I don't know, whether this is
just an accidently activated feature, because former vcproj files didn't
have that issue). However, the actual bug occurs if LIB_DIR contains a
space. Then eventually the command line issued to the msvc linker is broken.
I tried to fix it this way:
LIBS += -L"$$LIB_DIR" -l"mylib"
but it didn't help.
Best regards
Olaf Krzikalla
More information about the Qt-interest-old
mailing list