raspberrypi:settingupc_developmentenvironment
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| raspberrypi:settingupc_developmentenvironment [2018/03/31 20:22] – rlunaro | raspberrypi:settingupc_developmentenvironment [2022/12/02 21:02] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 80: | Line 80: | ||
| Finally, you will get the project on eclipse: | Finally, you will get the project on eclipse: | ||
| - | |||
| {{ : | {{ : | ||
| + | |||
| + | Then, right-click on new -> source file and tye something like this: | ||
| + | |||
| + | <code cpp> | ||
| + | /* | ||
| + | * main.cpp | ||
| + | * | ||
| + | | ||
| + | | ||
| + | */ | ||
| + | |||
| + | #include < | ||
| + | |||
| + | int main( int argc, char *argv[] ) | ||
| + | { | ||
| + | std::cout << "hello world!!!" | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | And compile it. At this point it's very important to have some experience with C++ and/or eclipse. It's | ||
| + | not the purpose of this tutorial to teach you to use the eclipse IDE, to do that, probably | ||
| + | you will have to read other tutorials. | ||
| + | |||
| + | ===== Compile and run ===== | ||
| + | |||
| + | Build the program and copy it to your raspberry: it should run smoothly in the raspi. Obviously, it | ||
| + | won't execute locally. | ||
| + | |||
| + | ===== Execute and run in the raspberry pi remotely ===== | ||
| + | |||
| + | Eclipse CDT has facilities to move every build in the raspberry pi and execute it remotely. | ||
| + | |||
| + | |||
| + | NEXT STEP: debug remotely. | ||
raspberrypi/settingupc_developmentenvironment.1522527767.txt.gz · Last modified: 2022/12/02 21:02 (external edit)
