Include libraries from a non-qt project
-
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.includesI 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
-
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
-
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]
-
I haven't yet resolve that problem :/
-
Hi,
Are you trying to build a linux project on windows ?
-
[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.
-
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 ?