Results 1 to 3 of 3

Thread: Compilation Error , Can't find lib file.

  1. #1
    Join Date
    Mar 2011
    Posts
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Compilation Error , Can't find lib file.

    Hi,
    I have got a qt project from web, and I'm trying to work on it, but when i compile it I get an error " Can't find file -lz "

    In the pro file I can see "-lz" is being used as below.

    LIBS += -lz

    Commenting out the above line, makes the project to compile but I find issues in running the project,
    Can some one explain me what exactly the above statement is trying to do, and how this issue can be solved.

    I'm using qt 4.7.0 on win7 64bit os.

    Thanks in advance.

    Regards,
    Vijay.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Compilation Error , Can't find lib file.

    It binds the z library to the project. So install the development files for z on your computer and recompile.

    Just in case: zlib.net...

  3. #3
    Join Date
    Mar 2011
    Posts
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: Compilation Error , Can't find lib file.

    Hi Lykurg,
    I downloaded the code from the url specified by you.
    But when I checked it on the comp , i find that the same code is already present in qt installation directory.

    i.e "C:\Qt\2010.05\qt\src\3rdparty\zlib"

    Now could you please tell me how do I need to modify "LIBS += -lz" line in pro, to use the library from the above specified path..
    I tried lot of options but nothing is working out.

    Also to give you some more information, the pro file has following statements .

    LIBS += -lz
    win32 {
    INCLUDEPATH += c:\\development\\zlib-1.2.3
    LIBS += -Lc:\\development\\zlib-1.2.3
    }

    Kindly help on this.

    Regards,
    Vijay.

Similar Threads

  1. Replies: 0
    Last Post: 28th April 2011, 09:36
  2. Replies: 4
    Last Post: 13th April 2011, 07:03
  3. error - cannot find collection file
    By GrahamLabdon in forum Newbie
    Replies: 2
    Last Post: 9th November 2010, 08:25
  4. compilation error
    By jjbabu in forum Qt Programming
    Replies: 19
    Last Post: 9th April 2009, 07:03
  5. Replies: 3
    Last Post: 27th December 2008, 19:34

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.