Results 1 to 11 of 11

Thread: LINK : fatal error LNK1181: can't open 'delayimp.lib'

  1. #1
    Join Date
    Jul 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy LINK : fatal error LNK1181: can't open 'delayimp.lib'

    Hello,

    I'm trying to build QT 4.1.2. with MSVC.NET vers. 2003 over Windows using this patch: (http://prdownloads.sourceforge.net/q...s4qt412p1.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

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: LINK : fatal error LNK1181: can't open 'delayimp.lib'

    That's the problem when you use deeplinks...

    http://sourceforge.net/project/showf...group_id=49109

  3. #3
    Join Date
    Jul 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Re: LINK : fatal error LNK1181: can't open 'delayimp.lib'

    I've tried with your link and with 4.1.4 and I got the same error.

    Fernando

  4. #4
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: LINK : fatal error LNK1181: can't open 'delayimp.lib'

    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/*ch...f?revision=1.9

  5. #5
    Join Date
    Jul 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: LINK : fatal error LNK1181: can't open 'delayimp.lib'

    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?

  6. #6
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: LINK : fatal error LNK1181: can't open 'delayimp.lib'

    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.

  7. #7
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: LINK : fatal error LNK1181: can't open 'delayimp.lib'

    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)

    Qt Code:
    1. LIBS = delayimp.lib ole32.lib advapi32.lib
    To copy to clipboard, switch view to plain text mode 
    should be
    Qt Code:
    1. LIBS = ole32.lib advapi32.lib
    To copy to clipboard, switch view to plain text mode 

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

  8. #8
    Join Date
    Jul 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: LINK : fatal error LNK1181: can't open 'delayimp.lib'

    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.

  9. #9
    Join Date
    Jul 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: LINK : fatal error LNK1181: can't open 'delayimp.lib'

    I have:
    LIBS = delayimp.lib ole32.lib advapi32.lib

    I'll try to change this line.

  10. #10
    Join Date
    Jul 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: LINK : fatal error LNK1181: can't open 'delayimp.lib'

    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?

  11. #11
    Join Date
    Jul 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: LINK : fatal error LNK1181: can't open 'delayimp.lib'

    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?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.