Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved] How to add folder to project ?
QtWS25 Last Chance

[solved] How to add folder to project ?

Scheduled Pinned Locked Moved General and Desktop
10 Posts 2 Posters 6.7k Views
  • 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.
  • S Offline
    S Offline
    Streight
    wrote on last edited by
    #1

    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

    I`m Streight ;).

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Did you use INCLUDEPATH in your pro file?

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Streight
        wrote on last edited by
        #3

        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.

        I`m Streight ;).

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #4

          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?

          Qt Certified Specialist
          www.edalsolutions.be

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Streight
            wrote on last edited by
            #5

            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.

            I`m Streight ;).

            1 Reply Last reply
            0
            • EddyE Offline
              EddyE Offline
              Eddy
              wrote on last edited by
              #6

              So what's in your "options" file?

              Qt Certified Specialist
              www.edalsolutions.be

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Streight
                wrote on last edited by
                #7

                @ 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@

                I`m Streight ;).

                1 Reply Last reply
                0
                • EddyE Offline
                  EddyE Offline
                  Eddy
                  wrote on last edited by
                  #8

                  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?

                  Qt Certified Specialist
                  www.edalsolutions.be

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    Streight
                    wrote on last edited by
                    #9

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

                    I`m Streight ;).

                    1 Reply Last reply
                    0
                    • EddyE Offline
                      EddyE Offline
                      Eddy
                      wrote on last edited by
                      #10

                      Good you could solve it.

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

                      Happy coding

                      Qt Certified Specialist
                      www.edalsolutions.be

                      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