PDA

View Full Version : LINK : fatal error LNK1181: can't open 'delayimp.lib'



fcamlar
7th July 2006, 10:18
Hello,

I'm trying to build QT 4.1.2. with MSVC.NET vers. 2003 over Windows using this patch: (http://prdownloads.sourceforge.net/qtwin/acs4qt412p1.zip), but I have this LINK error:

cl -c -FIqmake_pch.h -Yuqmake_pch.h -Fptmp\qmake_pch.pch -nologo -Zm200
-GS -wd4996 -O2 -MD -GR -EHsc -W3 -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_EDITION=
QT_EDITION_DESKTOP -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQT_NO_TEXTCODEC -DQT_NO_
LIBRARY -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_UNICODETABLES -DQT_NO_GEOM_VARIANT
-DQT_NO_DATASTREAM -DQMAKE_OPENSOURCE_EDITION -DQT_NODLL -DQT_NO_THREAD -DQT_NO_
QOBJECT -DWIN32 -I"../src/corelib/arch/generic" -I"generators" -I"generators\uni
x" -I"generators\win32" -I"generators\mac" -I"../include" -I"../include/QtCore"
-I"../qmake" -I"../mkspecs/win32-msvc.net" -Fotmp\ @C:\DOCUME~1\FERNAN~1\CONFIG~
1\Temp\nm1.tmp
option.cpp
link /NOLOGO /SUBSYSTEM:CONSOLE /incremental:no /OUT:"..\bin\qmake.exe"
@C:\DOCUME~1\FERNAN~1\CONFIG~1\Temp\nm2.tmp
LINK : fatal error LNK1181: no se puede abrir el archivo de entrada 'delayimp.li
b'
NMAKE : fatal error U1077: 'link' : c¾digo devuelto '0x49d'
Stop.

Could anybody help me to solve this error?

Best regards.
Fernando

ChristianEhrlicher
7th July 2006, 11:37
That's the problem when you use deeplinks... :mad:

http://sourceforge.net/project/showfiles.php?group_id=49109

fcamlar
7th July 2006, 12:31
I've tried with your link and with 4.1.4 and I got the same error.

Fernando

ChristianEhrlicher
7th July 2006, 12:38
This can't be - this issue was fixed with the patch for 4.1.3.
Please check if you really used a clean qt4.1.4 src and the correct patch.

qt-4.1.4/mkspecs/win32-msvc.net/qmake.conf should look like here: http://qtwin.cvs.sourceforge.net/*checkout*/qtwin/qt-4/mkspecs/win32-msvc.net/qmake.conf?revision=1.9

fcamlar
7th July 2006, 12:57
I have download qt 4.1.2 and qt 4.1.4 src from http://www.trolltech.com/developer/downloads
and I've used the patches from your link but allways the same error with both versions.
Do you think that it could be a problem of the .NET? Do you know how to solve it?

ChristianEhrlicher
7th July 2006, 13:01
As I said above - the qmake.conf from the link solves the problem - so use this qmake.conf. Also make sure to use the correct mkspec (win32-msvc.net)

dalyimp.lib shouldn't be anywhere in the qmake.conf - it's not used anymore.

ChristianEhrlicher
7th July 2006, 13:05
Also make sure that qt-4.1.4/qmake/Makefile.win32-msvc.net doesn't use delayimp.lib - I've overseen that the compilations tops already there (I thought it stops on qt lib linking)



LIBS = delayimp.lib ole32.lib advapi32.lib

should be


LIBS = ole32.lib advapi32.lib


in qt-4.1.4/qmake/Makefile.win32-msvc.net

fcamlar
7th July 2006, 13:07
I've search in the qmake.conf and I've not found any reference to delaimp.lib. I have the same qmake.conf as yours.:confused:

fcamlar
7th July 2006, 13:20
I have:
LIBS = delayimp.lib ole32.lib advapi32.lib

I'll try to change this line.

fcamlar
7th July 2006, 13:31
Now I have another error:

cl -c -FIqmake_pch.h -Yuqmake_pch.h -Fptmp\qmake_pch.pch -nologo -Zm200
-GS -wd4996 -O2 -MD -GR -EHsc -W3 -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_EDITION=
QT_EDITION_DESKTOP -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQT_NO_TEXTCODEC -DQT_NO_
LIBRARY -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_UNICODETABLES -DQT_NO_GEOM_VARIANT
-DQT_NO_DATASTREAM -DQMAKE_OPENSOURCE_EDITION -DQT_NODLL -DQT_NO_THREAD -DQT_NO_
QOBJECT -DWIN32 -I"../src/corelib/arch/generic" -I"generators" -I"generators\uni
x" -I"generators\win32" -I"generators\mac" -I"../include" -I"../include/QtCore"
-I"../qmake" -I"../mkspecs/win32-msvc.net" -Fotmp\ @C:\DOCUME~1\FERNAN~1\CONFIG~
1\Temp\nm23.tmp
option.cpp
link /NOLOGO /SUBSYSTEM:CONSOLE /incremental:no /OUT:"..\bin\qmake.exe"
@C:\DOCUME~1\FERNAN~1\CONFIG~1\Temp\nm24.tmp
LINK : fatal error LNK1104: no se puede abrir el archivo 'msvcprt.lib'


msvcprt.lib?

fcamlar
7th July 2006, 14:04
msvcprt.lib is a lib of the Microsoft Studio\Vc7\lib, which has been added as a LIB environment variable. What could the problem be?