[Qt-interest] How to add 3rd party Header to project

John McClurkin jwm at nei.nih.gov
Thu Sep 3 13:28:19 CEST 2009


Deepak Angeshwar wrote:
> All,
> 
> I have installed QJason and I want to use it in my project.
> I can "Add" the Header files to my project.
> 
> I right click on the project and "Add existing files..."
> My .pro file gets updated with .h files (relative path for header files)
> under HEADERS section.
> 
> Howevere when I build the project it still complains
>  
> client.cpp:9:20: parser.h: No such file or directory
> 
> Can some one let me know how to add 3rd party files/
> 

Make sure that you add the path to the 3rd party header to the 
INCLUDEPATH variable in your .pro file. Re-run qmake to build updated 
makefiles, vcproj, or xcode files.




More information about the Qt-interest-old mailing list