Help start programming with C++ beaglebone black

Hi all,

Want to start programming in C++ to create applications running on the BBB using Eclipse in Ubuntu but I’m having serious problems to even start, so please help…and remember: I’m very very new to all of this.

Using Ubunto on my laptop I’m running the following to install Eclipse + C++ compiler (installtion succeeded)

sudo apt-get install eclipse eclipse-cdt g++ gcc

Next step is installing the toolchain (not sure if it’s the right one!) but it’s installing with success

sudo tar -xjvf /home/downloads/angstrom-2011.03-x86_64-linux-armv7a-linux-gnueabi-toolchain.tar.bz2

In Eclipse, I create a new C++ project and choose Cross GCC then I right click on project and choose properties->C++ build → Settings and Tool settings. I chanded the Cross GCC Compiler, Cross G++Compiler and Cross G++ Linker command to:


Is that right?

My .cpp file has, for simplicity, only:

using namespace std;
int main() {
cout << “Hello” << endl;
return 0;

I can build and run the project as local C/C++ application but not on the BBB, I don’t understand what I’m missing. I have googled alot but each tutorial is making on thier own way which leaves me in a mess :frowning:

Please help me on the right track, how do I start from scratch to be able to run C++ on my BBB?

This is a good place to start:

You need to also modify eclipse settings to change the library search path to point to your toolchain; otherwise, it would try to link with your x86 library from /lib:/usr/lib:/usr/local/lib.

it is best if you post the eclipse error here.