User forums > Using Code::Blocks

CodeBlocks problems on Raspberry

(1/3) > >>

gauthierlerouzic:
Hi,
I expose my problems : Few years ago, I run on a old Raspberry Pi 2, CodeBlocks 10.05 on a old Raspbian.
I have write a program who run properly on it.
Few days ago I bought a new raspberry pi 3, and I install the last CodeBlocks on raspberry source.list.
It run properly, but when I open exactly the same projet who runs good in Raspberry pi 2, I can Compil, but when I want to run, I have this message in a pop up box:
"Can't Fin compiler executable in your configured search path's for Small Device C Compiler"

It's weird, because I don't use Small Device C, and I don't know what it is.

Let me know if you are any informations about that. Or maybe someone has a CodeBlocks 10.05 installer for raspberry ?

Really thank you for your time.

oBFusCATed:
Are you using a project?
If you are: which compiler is selected in the project and the targets?

What do you mean by run?
Build -> Run?
Build -> Build and Run?

gauthierlerouzic:
Yes I use a codeblocks project.
the compiler select for the project is GNU GCC, and the target is /usr

the problem is when I Run the project. There is no problem when I build it.

oBFusCATed:
The target is not /usr, this is the folder where C::B expects to find the compiler.
The target is something you add to your project.
You can see it in the Project -> Properties or Project -> Build options!

Can you post the log from building and running?

gauthierlerouzic:
Yes of course.
This is my Build and Run log :

--- Quote ---
-------------- Build: Release in genesis (compiler: GNU GCC Compiler)---------------

g++   -c /home/pi/Téléchargements/genesis/main.cpp -o obj/Release/main.o
g++   -c /home/pi/Téléchargements/genesis/ofSerial.cpp -o obj/Release/ofSerial.o
g++  -o bin/Release/genesis obj/Release/main.o obj/Release/ofSerial.o   /usr/lib/libcurl.so /usr/lib/libcurl-gnutls.so
Output file is bin/Release/genesis with size 29.55 KB
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 

-------------- Run: Release in genesis (compiler: GNU GCC Compiler)---------------

Checking for existence: /home/pi/Téléchargements/genesis/bin/Release/genesis
Executing: xterm -T genesis -e /usr/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. /home/pi/Téléchargements/genesis/bin/Release/genesis  (in /home/pi/Téléchargements/genesis/.)

--- End quote ---

I look the Project > Build Options, and There is Small Device selected, so I change it for GNU GCC and it's the same error.

This is the Xterm return when I run :

--- Quote ---Process turned 0 (0x0) execution time : 0.004 s
Press ENTER to continue.

--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version