How to add include path to imported c/c++ project
-
wrote on 30 May 2017, 03:33 last edited by
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/topicsHow can I manually add /build/src/modules directory into my working directory?
Thanks, -
wrote on 30 May 2017, 03:50 last edited by
Hi!
which does not have any .pro files
what build system do you use?
-
wrote on 30 May 2017, 08:12 last edited by
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
-
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
@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?
-
@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?
1/5