Using gcc on R-2

I am trying to compile Spinnaker API (which is a API to communicate with a camera) on my R-2. When I compile a sample program, I get the following error:

g++ -std=c++11 -std=c++11 -I…/…/include/spinc -I/usr/include/spinnaker/spinc -Wall -D LINUX -c Acquisition_C.cpp -o .obj/build/Acquisition_C.o make: g++: Command not found Makefile:47: recipe for target ‘.obj/build/Acquisition_C.o’ failed make: *** [.obj/build/Acquisition_C.o] Error 127

When I use the command apt-get install g++ I get the following message

Err:1 http://http.kali.org/kali kali-rolling/main armhf libstdc+±7-dev armhf 7.2.0-18 404 Not Found Err:2 http://http.kali.org/kali kali-rolling/main armhf g+±7 armhf 7.2.0-18 404 Not Found E: Failed to fetch http://http.kali.org/kali/pool/main/g/gcc-7/libstdc++-7-dev_7.2.0-18_armhf.deb 404 Not Found E: Failed to fetch http://http.kali.org/kali/pool/main/g/gcc-7/g++-7_7.2.0-18_armhf.deb 404 Not Found E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

command gcc -v gives 7.2.0

Also, if I create a hello.c file, the gcc command does not even work and I get the following error

gcc: error trying to exec ‘cc1plus’: execvp: No such file or directory

When I run the command:

find / -name “cc1plus” the system says /usr/lib/gcc/avr/5.4.0/cc1plus

Can someone help me with this.

Thanks.

You have tried apt-get update before apt-get install?

Hello,do you make sure the R2 could connect Internet? if yes,Please make sure Is your route or DNS configuration right?

He got 404 response…so i guess the version has changed

I could try to compile this project,let’s see what gonna happen on my board, @harisashraf could you please provide me Spinnaker API link?

Here is the link. They want you to open the account.

https://www.ptgrey.com/spinnaker-sdk

However, in my case i cannot even invoke gcc compiler for simple “Hell World” program.

root@kali:~# apt-get update Get:1 http://archive-2.kali.org/kali kali-rolling InRelease [30.5 kB] Err:1 http://archive-2.kali.org/kali kali-rolling InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository [email protected] Reading package lists… Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive-2.kali.org/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository [email protected] W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository [email protected]

I am using the board to use this forum, so obviously Wi-Fi is working.