Results 1 to 3 of 3

Thread: [SOLVE]External shared lib and qt ...

  1. #1
    Join Date
    Mar 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Unhappy [SOLVE]External shared lib and qt ...

    Hi all, I'm traying tu use an exteranl shared lib in a mine qt software.. For develop it I'm using QT Creator, I tray to add the line at the pro file:
    LIB += -L"/pathtolib" or -l"Name of lib" or only the name of the lib

    But nothing to do the result is a linker error:
    error: collect2: ld returned 1 exit status

    whit some function without reference (off course..)
    Some help please! There are 2 days that I work around this problem!
    Last edited by Mandarancio; 25th March 2009 at 20:26.

  2. #2
    Join Date
    Mar 2009
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: External shared lib and qt ...

    LIBS += -L/path/to/MyLib/ -lMyLib

  3. #3
    Join Date
    Mar 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: External shared lib and qt ...

    Mmm, I used also this config but nothing ... The same error..

    [EDIT]Mmm I don't see.. the error is not the same the linker output is:
    /usr/bin/ld: cannot find -llibkfacebook
    but the libkfacebook is installed in the correct path..
    [EDIT2]I'm an Idiot.. The right name of the lib is kfacebook also if the file is libkfacebook.. ops.. lol
    Last edited by Mandarancio; 25th March 2009 at 20:25.

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.