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. More include locations to fix parsing issues
Forum Updated to NodeBB v4.3 + New Features

More include locations to fix parsing issues

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 4 Posters 648 Views 3 Watching
  • 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.
  • M Offline
    M Offline
    mahmoodn
    wrote on last edited by
    #1

    I have imported a project, but I see many issues like the ones you see in the picture. 1bdeb319-6fd9-411a-8f56-7e2ce7b300bf-image.png

    In fact, vector_types.h exists in /usr/local/cuda/include folder. How can I tell the editor to include that path?

    1 Reply Last reply
    0
    • M mahmoodn

      Yes exactly. I imported an existing project and then saw the parser worked for some seconds.
      So, is there any way to add more include paths?

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #9

      @mahmoodn
      Hi
      Yes I think you can, but it won't compile
      as its not that kind of import. Or at least it would not for me.

      In any case, try look in
      .includes
      its created by the import process.

      So what build system does the actual project use ?

      1 Reply Last reply
      1
      • M Offline
        M Offline
        mchinand
        wrote on last edited by
        #2

        Can post your .pro project file or CMakeLists.txt file for the project? Your include directories are likely not defined correctly.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mahmoodn
          wrote on last edited by
          #3

          I only see the following project files
          .cflags
          .config
          .creator
          .creator.user
          .cxxflags
          .files
          .includes

          The project also has not CMakeList.txt. But I guess, you are referring to .includes file. Right?

          jsulmJ 1 Reply Last reply
          0
          • M mahmoodn

            I only see the following project files
            .cflags
            .config
            .creator
            .creator.user
            .cxxflags
            .files
            .includes

            The project also has not CMakeList.txt. But I guess, you are referring to .includes file. Right?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @mahmoodn Is there a file with .pro extension?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • M Offline
              M Offline
              mahmoodn
              wrote on last edited by
              #5

              No I don't see such file.

              jsulmJ 1 Reply Last reply
              0
              • M mahmoodn

                No I don't see such file.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #6

                @mahmoodn Then how did you open the project in QtCreator?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                2
                • mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #7

                  Hi
                  Did you use this way for import ?
                  alt text

                  As that is just for using Creator as a Editor and wont set up toolchain.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mahmoodn
                    wrote on last edited by
                    #8

                    Yes exactly. I imported an existing project and then saw the parser worked for some seconds.
                    So, is there any way to add more include paths?

                    mrjjM 1 Reply Last reply
                    0
                    • M mahmoodn

                      Yes exactly. I imported an existing project and then saw the parser worked for some seconds.
                      So, is there any way to add more include paths?

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by mrjj
                      #9

                      @mahmoodn
                      Hi
                      Yes I think you can, but it won't compile
                      as its not that kind of import. Or at least it would not for me.

                      In any case, try look in
                      .includes
                      its created by the import process.

                      So what build system does the actual project use ?

                      1 Reply Last reply
                      1
                      • M Offline
                        M Offline
                        mahmoodn
                        wrote on last edited by
                        #10

                        It's based on makefile. I added a include path in .include and it seems ok now. Thanks.

                        1 Reply Last reply
                        1

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved