Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Adding external libs and build directories
Forum Updated to NodeBB v4.3 + New Features

Adding external libs and build directories

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    browser90
    wrote on last edited by
    #1

    Dear,

    I'm trying to add an external lib and the readme of that project sais the following:

    @To use jrtplib and jthread in another project, you must then do the
    following:

    • in the project settings, add the include directory
      c:\local\include to the list of include directories (for debug and
      release builds)
    • in the project settings, add c:\local\lib to the list of library
      directories.
    • for the release version, add jrtplib.lib, jthread.lib and
      ws2_32.lib to the list of libraries
    • for the debug version, add jrtplib_d.lib, jthread_d.lib and
      ws2_32.lib to the list of libraries.

    In your program files, include a jrtplib header like this:
    #include <jrtplib3/rtpsession.h>
    and a jthread header like this:
    #include <jthread/jthread.h>@

    So I thought adding this to my .pro file would do it:
    @INCLUDEPATH += "C:\local\include"
    LIBS += -L/c:\local\lib -lpsapi
    @
    but the includes like he sais are not known.

    Can someone help me?

    Kind regards,

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      To add the README, you need to specify it by name in OTHER_FILES variable of your .pro file. It will show up in Qt Creator then.
      @
      OTHER_FILES += path/to/myReadme.txt
      @

      As for includes, you don't need to escape the quotes. You don't, in fact, need to use them. Also, if the library is part of your project, it's probably better to rely on relative paths.

      (Z(:^

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved