Hello,
I searcher and found a couple of posts dealing with include options in CCS but nothing that helped me. So:
I'm trying to build a Keystone2 example project, ex44_compute in CCStudio 6.
I imported the whole ex44_compute project into CCS (Import-Import…-Existing code as makefile project) which worked fine, but building failed with missing include file (apparently I need to point out a sysroot) I then changed the setting of the host subproject in CCS, C/C++ General/Preprocessor include path and added the path under CDT user settings (see attached screenshot). But when building again, the host project still fails and it seems to me that the setting just made is not used.
Output from the CCS build (the output seems a little garbled with error messages appearing before they reasonably should):
debug/transport_qmss.av7A lib/debug/obj/TransportQMSS.ov7A
make[2]: Leaving directory `/home/klint/ti/ipc_3_36_01_11/examples/ex44_compute/transport/hlos'
make[1]: Leaving directory `/home/klint/ti/ipc_3_36_01_11/examples/ex44_compute/transport/hlos'
#
TransportQMSS.c: In function ‘TransportQMSS_unbind’:
TransportQMSS.c:187:27: warning: variable ‘obj’ set but not used [-Wunused-but-set-variable]
TransportQMSS.c: In function ‘TransportQMSS_put’:
TransportQMSS.c:204:27: warning: variable ‘obj’ set but not used [-Wunused-but-set-variable]
MainHost.c:44:24: fatal error: ti/ipc/Ipc.h: No such file or directory
compilation terminated.
# Making host ...
make -C host
make[1]: Entering directory `/home/klint/ti/ipc_3_36_01_11/examples/ex44_compute/host'
#
make[2]: *** [bin/debug/obj/MainHost.ov7A] Error 1
make[1]: *** [all] Error 2
make: *** [host] Error 2
# Making all ...
make PROFILE=debug app_host
make[2]: Entering directory `/home/klint/ti/ipc_3_36_01_11/examples/ex44_compute/host'
#
# Making bin/debug/obj/MainHost.ov7A ...
/opt/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin/arm-linux-gnueabihf-gcc -c -MD -MF bin/debug/obj/MainHost.ov7A.dep -D_REENTRANT -Wall -ffloat-store -fPIC -Wunused -Dfar= -ggdb -D DEBUG -I. -I/home/klint/ti/ipc_3_36_01_11/linux/include -o bin/debug/obj/MainHost.ov7A MainHost.c
make[2]: Leaving directory `/home/klint/ti/ipc_3_36_01_11/examples/ex44_compute/host'
make[1]: Leaving directory `/home/klint/ti/ipc_3_36_01_11/examples/ex44_compute/host'
15:30:03 Build Finished (took 52s.306ms)
As you can see on the command line for MainHost.c there are two –I arguments present, but neither of them were what was set for the host project according to the screenshot.
Running CCS 6.0.1 on Ubuntu Linux 12.04 LTS
Any help appreciated...
Regards /Anders Klint