Results 1 to 2 of 2

Thread: adding external library

  1. #1
    Join Date
    Oct 2014
    Posts
    71
    Thanks
    13
    Qt products
    Qt5
    Platforms
    Windows

    Post adding external library

    Hello,

    I am trying to add external lib in my Qt Project in two way

    1.By right click on code editor ->add library->External Library->path and name
    2.By giving the full path LIBS += -L"D:\EMU\EMU6\InterFace_D2XXFTDI\InterFace_D2XXFTD I\libs" -lftd2xx

    In my case 2nd one is working but in 1st case I am getting a error " error: cannot find -lftd2xx"

    please let me know why I am getting the error.
    Actually I want to add Relative path not the absolute path.

  2. #2
    Join Date
    May 2012
    Posts
    136
    Thanks
    2
    Thanked 27 Times in 24 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: adding external library

    you can use $$PWD to point to the project directory and go up from there
    examle: -L$$PWD/../../../EMU\EMU6\InterFace_D2XXFTDI\InterFace_D2XXFTD I\libs (EMU is 3 dirs up from the project directory)

Similar Threads

  1. Replies: 1
    Last Post: 7th February 2013, 08:51
  2. Replies: 0
    Last Post: 20th November 2011, 18:17
  3. adding external .lib
    By sqvarek in forum Qt Programming
    Replies: 5
    Last Post: 18th April 2011, 04:54
  4. Replies: 4
    Last Post: 7th May 2009, 07:19
  5. Adding an external Library
    By afflictedd2 in forum Qt Programming
    Replies: 1
    Last Post: 13th December 2008, 05:51

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.