I want to program my CORE2 offline, with a Windows 10 laptop and VS code.
I’ve follow this tutorial :
The result of the hFramework sourcecode compilation is:
[95/95] Linking CXX static library libhFramework.a
I can finish correctly this tutorial with the “Using the library compiled by yourself” chapter. I’m able to make blink the led, all seems ok …
Now I try to import my cloud firmware into VSC. I made a copy/paste of the main.cpp from the cloud
(it’s the ROSBOT 2.0 default firmware) into the main.cpp generated in VSC just before.
The only difference between both codes is this line commented :
When I build this code, there is this error message:
C:\mydirectory\main.cpp:5:17: fatal error: ros.h: No such file or directory
ninja: build stopped: subcommand failed.
The terminal process terminated with exit code: 1
In fact, all includes are non availabled. Can you please explaine to me what is the problem ?
I’ve tried also on Ubuntu 16.04 and I’ve got exactly the same problem.
I’m a bit lost with all these tutorials. I’ve got a custom hFramework that is used from the Cloud, now I need to remove the thinkerboard, so I need to flash directly the Core2 (offline) what is the best way to do it ? Because when someone will help me (I hope !) to buid the “standard” ROSBOT firmeware, I will need to modify some files (rosbot.cpp; rosbot.h …). I’m not sure that the described way into the tutorial is the best for me because I will need to compile 2 times to test changes (hFramework) and main.cpp.
Please, is there someone for helping me ?