Results 1 to 8 of 8

Thread: "Cannot find -lqjpeg" error when compiling QT application in static mode

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Re: "Cannot find -lqjpeg" error when compiling QT application in static mode

    I managed to finally compile the static version of the qjpeg library (libqjpeg.a) by removing the -qt-libjpeg parameter when executing configure.exe. It seems that by setting that parameter, you are telling Mingw32 to take the existing dynamic lib (?).

    Now I only need to figure out how to do the same with qlibtiff and qlibgif.

    >qjpeg4.a is as you say the static lib

    As far as I understand qjpeg4 is a dynamic lib, as it contains the version number and takes only several kilobytes. qjpeg.a is the static lib.

    I apologize if I'm not clear, I'm new to advanced QT compilation.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: "Cannot find -lqjpeg" error when compiling QT application in static mode

    As far as I understand qjpeg4 is a dynamic lib, as it contains the version number and takes only several kilobytes. qjpeg.a is the static lib.
    Actually no.
    *.so or *.dll are dynamic.
    *.a or *.lib are static (respectively).
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 5
    Last Post: 17th May 2011, 11:47
  2. Replies: 4
    Last Post: 20th September 2010, 10:42
  3. Replies: 2
    Last Post: 7th September 2009, 21:13
  4. The compiler error:"cannot find -lQtGuid4"
    By osmanthus in forum Installation and Deployment
    Replies: 1
    Last Post: 7th January 2009, 06:58
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 15:58

Tags for this Thread

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.