[solved] How to add folder to project ?
-
wrote on 5 Apr 2014, 13:41 last edited by
hi,
I extended my project by one folder and included in main two classes of this folder/library. Therefore I added the path of the included files in "MyProjec.includes".
How do I add the new folder to the QT Creator project, to be precise to the left panel?
greetings streight
-
wrote on 5 Apr 2014, 13:44 last edited by
Did you use INCLUDEPATH in your pro file?
-
wrote on 5 Apr 2014, 13:51 last edited by
I can't find any pro file in my projects folder. Perhaps this is the case because I use QtCreator with OpenFOAM (?)-> See:
http://openfoamwiki.net/index.php/HowTo_Use_OpenFOAM_with_QtCreator
I only got a .project file in XML format.
EDIT: Ok, the error problem is solved - I just had to add the path in file "options" in the Make folder.
Still I need to know how I can add the folder to the project.
-
wrote on 5 Apr 2014, 13:58 last edited by
I don't know OpenFOAM myself, but maybe we can give you some pointers based on the contents of your .project file. What's in it?
-
wrote on 5 Apr 2014, 14:17 last edited by
I solved the error problem -> See EDIT of my last post.
I also realized that the .project file was just a remain of the IDE Eclipse (which did not work well with OpenFOAM).
Still I want to add the folder to my Qt Project - I mean make it accessable in the left panel within QtCreator. -
wrote on 5 Apr 2014, 14:20 last edited by
So what's in your "options" file?
-
wrote on 5 Apr 2014, 14:23 last edited by
@ EXE_INC =
-IphaseModel/lnInclude
-ImultiphaseSystem/lnInclude
-ImultiphaseFixedFluxPressure
-IinterfacialModels/lnInclude
-IIntegrationsBib/cpp/src \ # -> added by me
-I$(LIB_SRC)/transportModels
-I$(LIB_SRC)/transportModels/incompressible/lnInclude
-I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude
-I$(LIB_SRC)/transportModels/incompressible/lnInclude
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel
-I$(LIB_SRC)/turbulenceModels
-I$(LIB_SRC)/turbulenceModels/incompressible/LES/LESModel
-I$(LIB_SRC)/turbulenceModels/LES/LESdeltas/lnInclude
-I$(LIB_SRC)/finiteVolume/lnIncludeEXE_LIBS =
-lmultiphaseSystem
-L$(FOAM_USER_LIBBIN)/compressibleMultiPhaseModel
-linterfaceProperties
-lincompressibleTransportModels
-L$(FOAM_USER_LIBBIN)/compressibleMultiphaseEulerianInterfacialModels
-lincompressibleLESModels
-lincompressibleRASModels
-lfiniteVolume@ -
wrote on 5 Apr 2014, 14:32 last edited by
If you cannot find any directives on how to add it, i guess you will need to go for the "trial an error approach"
What about adding another line with your path in the EXE_INC section? -
wrote on 5 Apr 2014, 14:48 last edited by
bq. What about adding another line with your path in the EXE_INC section?
i have already added the path to the files here -> See line 6 my last post.
EXE_INC isn t responsible for adding folders to the QtCreator Project panel.
EDIT: Problem solved - you probably just have to add a file inside the folder to the project and the folder is added to the panel having this file inside. If you add all files the folder will be added to the panel with all files analogous.
thx for the support :)
-
wrote on 6 Apr 2014, 10:48 last edited by
Good you could solve it.
Please edit your first post and prepend [solved] to it.
Happy coding
10/10