[solved] How to add folder to project ?



  • 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


  • Moderators

    Did you use INCLUDEPATH in your pro file?



  • 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.


  • Moderators

    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?



  • 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.


  • Moderators

    So what's in your "options" file?



  • @ 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/lnInclude

    EXE_LIBS =
    -lmultiphaseSystem
    -L$(FOAM_USER_LIBBIN)/compressibleMultiPhaseModel
    -linterfaceProperties
    -lincompressibleTransportModels
    -L$(FOAM_USER_LIBBIN)/compressibleMultiphaseEulerianInterfacialModels
    -lincompressibleLESModels
    -lincompressibleRASModels
    -lfiniteVolume@


  • Moderators

    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?



  • 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 :)


  • Moderators

    Good you could solve it.

    Please edit your first post and prepend [solved] to it.

    Happy coding


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.