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.8k 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 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 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 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

        jsulmJ 1 Reply Last reply
        0
        • K Kyubot

          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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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
          0
          • jsulmJ jsulm

            @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 last edited by
            #5

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

            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