Results 1 to 12 of 12

Thread: QwtPolar building generates an error on qwtpolard.lib

  1. #1
    Join Date
    Oct 2012
    Location
    France
    Posts
    29
    Thanks
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QwtPolar building generates an error on qwtpolard.lib

    Hello everyone,

    I'm building qwtpolar1.1.0-rc0 on Win7 64bits.
    I'm using Qt5.1.1 and Qwt6.1.0, both built with msvc2012.

    When launching the command nmake inside the qwtpolar folder (where I launched a qmake qwtpolar.pro before), I get the following error :
    LINK : fatal error LNK1104: impossible d'ouvrir le fichier 'qwtpolard.lib' (Read : impossible to open file qwtpolard.lib)
    Same error but with qwtpolar.lib when I execute the command nmake release

    I checked in the qwtpolar/lib folder : I only find qwtpolar.dll and qwtpolard.dll.
    No *.lib

    Does anyone know the solution to this annoying error ?

    Thanks !

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QwtPolar building generates an error on qwtpolard.lib

    Link qwtpolard.dll instead of qwtpolar.lib.

    Uwe

  3. #3
    Join Date
    Oct 2012
    Location
    France
    Posts
    29
    Thanks
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QwtPolar building generates an error on qwtpolard.lib

    Thanks for your answer;

    I tried to link one of the example in qwtpolar (polardemo) with the dll using the line
    # I'm not shure it's the right way, but I found it on some forum
    LIBS += "C:/Dev_x86/qwtpolar/QwtPolar-1.1.0-rc0/lib/qwtpolard.dll"
    in the .pro, but it tries to open the 'qwtpolard.lib'.

    I might not have understood your advice; could you please extend your answer ?

    Thanks

    if it helps, the line following line in example.pri is evaluated to false.
    contains(QWT_CONFIG, QwtPolarDll)

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QwtPolar building generates an error on qwtpolard.lib

    Is your question about how to link your application statically or how to link at all ?

    Uwe

  5. #5
    Join Date
    Oct 2012
    Location
    France
    Posts
    29
    Thanks
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QwtPolar building generates an error on qwtpolard.lib

    It's just about linking the library (preferably dynamicallly)

    In fact, it's a 2 steps question :
    1. The QwtPolar doesn't compile (actually, it stops at the linkage; and when it does, only qwtpolar.dll and qwtpolard.dll are created in the /lib folder)
    2. I can't link the polardemo example to these dll (But since the qwtploar[d].lib don't exist, will it work ? I thought that a .lib was needed to link with a dll)


    Thanks
    Last edited by bouchebeu; 15th October 2013 at 09:08. Reason: updated contents

  6. #6
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QwtPolar building generates an error on qwtpolard.lib

    When you can't even build the libraries better report this first.

    Uwe

  7. #7
    Join Date
    Oct 2012
    Location
    France
    Posts
    29
    Thanks
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QwtPolar building generates an error on qwtpolard.lib

    Ok; I wen't on the sourceforge 's project page and created a ticket there.
    Last edited by bouchebeu; 15th October 2013 at 10:55. Reason: updated contents

  8. #8
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QwtPolar building generates an error on qwtpolard.lib

    No I mean you should disable the silent mode in qwtpolarbuild.pri rebuild the project and show more information about what fails.

    Uwe

  9. #9
    Join Date
    Oct 2012
    Location
    France
    Posts
    29
    Thanks
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QwtPolar building generates an error on qwtpolard.lib

    Hi, I did remove the silent mode, but I just get the same message.

    What I did was also remove the designer from the 'qwtpolar.pro' file (I commented the 3 corresponding lines).
    (Maybe the designer is needed for the whole building process to work...?)

    And the error I get is :
    cd src\ && ( if not exist Makefile C:\Dev_x86\Qt\5.1.1\qtbase\bin\qmake.exe C:\Dev_x86\qwtpolar\src\qwtpolar-1.1.0-rc0\src\src.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile
    "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile.Debug all
    "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile.Release all
    cd examples\ && ( if not exist Makefile C:\Dev_x86\Qt\5.1.1\qtbase\bin\qmake.exe C:\Dev_x86\qwtpolar\src\qwtpolar-1.1.0-rc0\examples\examples.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile
    cd spectrogram\ && ( if not exist Makefile C:\Dev_x86\Qt\5.1.1\qtbase\bin\qmake.exe C:\Dev_x86\qwtpolar\src\qwtpolar-1.1.0-rc0\examples\spectrogram\spectrogram.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile
    "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe" -f Makefile.Debug all
    echo 1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ "..\\bin\\spectrogram.exe.embed.manifest">..\bin\s pectrogram.exe_manifest.rc
    if not exist ..\bin\spectrogram.exe if exist ..\bin\spectrogram.exe.embed.manifest del ..\bin\spectrogram.exe.embed.manifest
    if exist ..\bin\spectrogram.exe.embed.manifest copy /Y ..\bin\spectrogram.exe.embed.manifest ..\bin\spectrogram.exe_manifest.bak
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST /MANIFESTFILE:..\bin\spectrogram.exe.embed.manifest /OUT:..\bin\spectrogram.exe @C:\Users\OC3B1~1.SOS\AppData\Local\Temp\nmB33B.tm p
    LINK : fatal error LNK1104: impossible d'ouvrir le fichier 'qwtpolard.lib'
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\link.EXE"'*: code retour '0x450'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"'*: code retour '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd'*: code retour '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd'*: code retour '0x2'
    Stop.
    where the line:
    LINK : fatal error LNK1104: impossible d'ouvrir le fichier 'qwtpolard.lib'
    means
    LINK : fatal error LNK1104: impossible to open 'qwtpolard.lib' file
    If it helps, in the qwtpolar-1.1.0-rc0/lib folder, there are 8 created files:

    qwtpolar.dll
    qwtpolar.dll.embed.manifest
    qwtpolard.dll
    qwtpolard.dll.embed.manifest
    qwtpolard.dll_manifest.rc
    qwtpolard.dll_manifest.res
    qwtpolard.ilk
    qwtpolard.pdb

    Added after 1 41 minutes:


    Update; I now uncommented the designer lines I commented before in qwtpolar.pro.
    I still have the same problem.
    Last edited by bouchebeu; 15th October 2013 at 13:06. Reason: updated contents

  10. #10
    Join Date
    Oct 2012
    Location
    France
    Posts
    29
    Thanks
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QwtPolar building generates an error on qwtpolard.lib

    Hello again,

    I tried with the newly released Qt.5.2.0-beta version, and I still have the exact same error.
    I'm really stuck and don't know where to investigate.

    Thanks for any ideas.

  11. #11
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QwtPolar building generates an error on qwtpolard.lib

    Don't you follow your own ticket: http://sourceforge.net/p/qwtpolar/bugs/4/ ?

    Uwe

  12. #12
    Join Date
    Oct 2012
    Location
    France
    Posts
    29
    Thanks
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QwtPolar building generates an error on qwtpolard.lib

    Oups...

    Thanks.

Similar Threads

  1. Replies: 0
    Last Post: 21st August 2013, 12:16
  2. Replies: 0
    Last Post: 19th March 2013, 18:48
  3. Negative border offset CSS in windows generates error
    By droneone in forum Qt Programming
    Replies: 1
    Last Post: 4th January 2013, 19:42
  4. Error when building Qt4 on Mac OS X
    By DragonLance156156 in forum Installation and Deployment
    Replies: 11
    Last Post: 17th February 2009, 16:29
  5. Building qt error
    By as001622 in forum Installation and Deployment
    Replies: 1
    Last Post: 20th June 2008, 08:19

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
  •  
Qt is a trademark of The Qt Company.