Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to manage Includes in subproject's .pro files with Qt Creator 2.8.1?
Forum Updated to NodeBB v4.3 + New Features

How to manage Includes in subproject's .pro files with Qt Creator 2.8.1?

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 2.0k 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.
  • L Offline
    L Offline
    letomato
    wrote on last edited by
    #1

    i'm new to Qt, i imported an open source project (qtstalker 0.37) with Qt Creator easily from a svn repository, by going to File, Import project. But i cant build it because it always fails to compile some subproject, it says it cant find a header (from ta-lib). I know that i just can add an INCLUDEPATH to the .pri or .pro file of each subproject that needs it, but surely there is a better way of doing this, or maybe im doing something wrong?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      The first thing to verify is: do you have the headers installed ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • L Offline
        L Offline
        letomato
        wrote on last edited by
        #3

        Yes, i have all the headers installed. I can add it to the INCLUDEPATH in every .pro file of the subproject that contains the file for which the compiler complains, but it does so for almost every subproject. So i wonder, im doing something wrong or qtstalker still isn't properly prepared for building?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Depending on where the author has ta-lib installed (and what OS it uses) it might not be a problem.

          What you can do is to add a ta-lib.pri with the include path / linking stuff and include it in the subprojects that need it

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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