Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to add include path to imported c/c++ project
Forum Updated to NodeBB v4.3 + New Features

How to add include path to imported c/c++ project

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 1.7k Views 2 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.
  • K Offline
    K Offline
    Kyubot
    wrote on 30 May 2017, 03:33 last edited by
    #1

    Hi. I just imported my c/c++ project into qt creator which does not have any .pro files.
    Build and run is ok but code completion does not working for some objects that refer from different include paths even if they are in the same project directory.

    most of source codes are in
    /src/modules
    and look for headers in followings
    #include <uORB/topics/control_state.h>
    #include <uORB/topics/home_position.h>
    #include <uORB/topics/manual_control_setpoint.h>
    #include <uORB/topics/parameter_update.h>
    #include <uORB/topics/position_setpoint_triplet.h>

    currently these statements are yellowish as the files are actually in
    /build/src/modules/uORB/topics

    How can I manually add /build/src/modules directory into my working directory?
    Thanks,

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on 30 May 2017, 03:50 last edited by
      #2

      Hi!

      which does not have any .pro files

      what build system do you use?

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kyubot
        wrote on 30 May 2017, 08:12 last edited by
        #3

        I am currently using
        gcc-arm-none-eabi-4_9-2015q3
        for building the project and my gcc version is
        $ gcc --version
        gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
        Thanks,

        Kyu

        J 1 Reply Last reply 30 May 2017, 09:02
        0
        • K Kyubot
          30 May 2017, 08:12

          I am currently using
          gcc-arm-none-eabi-4_9-2015q3
          for building the project and my gcc version is
          $ gcc --version
          gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
          Thanks,

          Kyu

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 30 May 2017, 09:02 last edited by
          #4

          @Kyubot The question was not which compiler you're using but which build system. You said there is no pro file, so it is not qmake. Is it CMake or something else?

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

          K 1 Reply Last reply 30 May 2017, 12:41
          0
          • J jsulm
            30 May 2017, 09:02

            @Kyubot The question was not which compiler you're using but which build system. You said there is no pro file, so it is not qmake. Is it CMake or something else?

            K Offline
            K Offline
            Kyubot
            wrote on 30 May 2017, 12:41 last edited by
            #5

            @jsulm
            Oh that's right, it's CMake.

            1 Reply Last reply
            0

            1/5

            30 May 2017, 03:33

            • Login

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