User forums > Using Code::Blocks
Program execution within Code::Blocks on Raspbian (Linux)
oBFusCATed:
The output looks pretty much messed up. There should not be g++'s on every row.
Can you compile simple console project on this machine?
Sensei:
Hi,
I don't know whether this went this way.
Here is the exaclty same build log as it is shown inside Code::Blocks:
--- Quote ----------------- Clean: Release in wxWidgetsTest ---------------
Cleaned "wxWidgetsTest - Release"
-------------- Build: Release in wxWidgetsTest ---------------
g++ -Wall -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -O2 -I../../../../../usr/local/include/wx-2.8 -I/usr/include/wx-2.8 -c /home/pi/Projekte/Software/wxWidgetsTest/wxWidgetsTestApp.cpp -o obj/Release/wxWidgetsTestApp.o
g++ -Wall -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -O2 -I../../../../../usr/local/include/wx-2.8 -I/usr/include/wx-2.8 -c /home/pi/Projekte/Software/wxWidgetsTest/wxWidgetsTestMain.cpp -o obj/Release/wxWidgetsTestMain.o
g++ -L../../../../../usr/local/lib -L/usr/lib/arm-linux-gnueabihf -o bin/Release/wxWidgetsTest obj/Release/wxWidgetsTestApp.o obj/Release/wxWidgetsTestMain.o -s -L/usr/local/lib
-pthread -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8
Output size is 38,84 KB
Process terminated with status 0 (1 minutes, 34 seconds)
0 errors, 0 warnings
--- End quote ---
Hope this helps?
Greetings
Sensei
BlueHazzard:
From this log I can't see any problem:
--- Quote from: Sensei on June 14, 2013, 12:53:41 pm ---g++ -L../../../../../usr/local/lib -L/usr/lib/arm-linux-gnueabihf -o bin/Release/wxWidgetsTest obj/Release/wxWidgetsTestApp.o obj/Release/wxWidgetsTestMain.o -s -L/usr/local/lib
-pthread -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8
Output size is 38,84 KB
Process terminated with status 0 (1 minutes, 34 seconds)
0 errors, 0 warnings
--- End quote ---
the pr0cess terminated with 0... It didn't work when you hit the green run button?
--- Quote from: Sensei on June 13, 2013, 05:33:57 pm ---The other question is, why does my "Hello World" console application start without having this problem?
--- End quote ---
the hello world doesn't use any additional library. The wxWidgets application uses the wxWidgets library, so you have a dependence and if the executable can't find this library it will terminate with a error... I think this is happening with your application, but i can't say where the error is... If you run it from terminal it works? interesting... 90% of the errors are conversely.
Sensei:
Hi,
yes I'm also confused.
To run the wxWidgts test app I have to type ./wxWidgetsTestApp in a console window otherwise without ./ it the program will not be executed.
The HelloWord programm can be started by clicking the green run butten but from the console I also need the ./ to execute it.
The fact that ./wxWidgetsTestApp starts the application I would think that the libs can be found but I'm not 100% sure.
My PATH looks like:
/usr/lib/arm-linux-gnueabihf/libfm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usrbin:/sbin:/bin;/usr/local/games:/usr/games:/
The wx-Libraries are located in /usr/local/lib. This directory in detail is not converd in the path variable, but Im not sure that this is the problem.
I think I will try out in adding it to the path variable.
Greetings
Sensei
Sensei:
Hi,
UPDATE:
I did:
PATH=$PATH:/usr/local/lib
exoprt PATH
Unfortunately this didn't solve the Problem and I still can not execute the wxWidgetsTestApp by clicking the green run button.
I hope someone out there has further ideas?
Greetings
Sensei
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version