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. Include libraries from a non-qt project
Forum Updated to NodeBB v4.3 + New Features

Include libraries from a non-qt project

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 3 Posters 3.2k 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.
  • M Offline
    M Offline
    metRo_
    wrote on last edited by
    #1

    I imported a project into qt that required some libraries that are outside of the project tree.
    How can I tell qt creator where to look?
    When I imported the project qt creator added 3 files:
    projectname.config
    projectname.files
    projectname.includes

    I suppose it should be done in .includes but can't find how. It is the "makefile":https://github.com/geoffreymbrown/STM32-Template/blob/master/Makefile.common i'm using and this is the path that I need to tell qt creator to look at "LIBROOT=/l/arm/STM32F10x_StdPeriph_Lib_V3.5.0"

    Thanks :)

    PS: qt creator run the makefile and compiles ok but can't find the headers

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      you need to add into the .pro-file your include path with "INCLUDEPATH":http://qt-project.org/doc/qt-5.0/qtdoc/qmake-variable-reference.html#includepath and the libraries path and the libraries through "LIBS":http://qt-project.org/doc/qt-5.0/qtdoc/qmake-variable-reference.html#libs

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        metRo_
        wrote on last edited by
        #3

        Can I simply add a projectname.pro and add "INCLUDEPATH = c:/msdev/include" I'm not using qmake.

        Can you tell me what are the purpose of projectname.includes file? Thanks :)

        [quote author="koahnig" date="1364757200"]you need to add into the .pro-file your include path with "INCLUDEPATH":http://qt-project.org/doc/qt-5.0/qtdoc/qmake-variable-reference.html#includepath and the libraries path and the libraries through "LIBS":http://qt-project.org/doc/qt-5.0/qtdoc/qmake-variable-reference.html#libs [/quote]

        1 Reply Last reply
        0
        • M Offline
          M Offline
          metRo_
          wrote on last edited by
          #4

          I haven't yet resolve that problem :/

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

            Hi,

            Are you trying to build a linux project on windows ?

            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
            • M Offline
              M Offline
              metRo_
              wrote on last edited by
              #6

              [quote author="SGaist" date="1370207106"]Hi,

              Are you trying to build a linux project on windows ?[/quote]

              No. I jsut wanted to be able to use the auto-complete feature.

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

                Sorry, I've been misguided by the Makefile.

                I haven't used QtCreator with only a Makefile base, so I can only make guesses, did you try to add the path you need to the CFLAGS ?

                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