Code::Blocks with C/C++ Compiler


@Magic Sam : libmagic is not codeblocks, so you where right to compile it from source.
You better use --prefix=/mnt/utmp/codeblocks/local (or --prefix=/mnt/utmp/codeblocks/usr ), it's better.
If the configure still fail, try to take a look at the generated config.log to see what fail. Also, you can try to change, at the beggining of configure, the "#!/bin/sh" to "#!/bin/bash".

About PowerPack, something like
Code:
 g++ $CXXFLAGS ppack.cpp PowerPacker.cpp -o ppack
should work, but it seems you will need to change a few things to make it compile...
 
You better use --prefix=/mnt/utmp/codeblocks/local (or --prefix=/mnt/utmp/codeblocks/usr ), it's better.

I always use --prefix=/mnt/utmp/codeblocks/usr or --prefix=/mnt/utmp/codeblocks/usr/local when testing some new lib, to avoid uninstall on the PND.
 
Hi all :)

@ptitSeb : your latest Code::Blocks no longer mounts ancillary packages (MonoRT, Lazarus, wxPython, etc...) as it used to...

What am I doing wrong ?

Cheers, Magic Sam
 
mmm, really? They should still automount. Can you put the /tmp/pndrun_codeblocks.out log file in here? (also, did you just tried to reboot, just in case?)
 
Here you go :)
=======================================================================================
PND : /media/Pandora/pandora/menu/codeblocks.pnd
PND_FSTYPE : Squashfs
APPDATADIR : /media/Pandora/pandora/appdata/codeblocks
APPDD_FSTYPE : ext3
PND_CPUSPEED : <unset>
EXENAME : runcli.sh
ARGUMENTS : <unset>
=======================================================================================
[ START ]--- Mount the PND ----------
WARNING The PND is already mounted, using it
+++++++
Loopback devices :
/dev/loop0: [b301]:17 (/media/Pandora/pandora/menu/codeblocks.pnd)
Are mounted on :
/dev/loop0 on /mnt/utmp/codeblocks type squashfs (ro,relatime)
For these Union :
Mounting the Union FS : mount -t aufs -o exec,dirs="/media/Pandora/pandora/appdata/codeblocks=rw+nolwh":"/mnt/pnd/codeblocks=rr" none "/mnt/utmp/codeblocks"
[SUCCESS]--- Mount the PND ----------
[ START ]--- Starting the application ( runcli.sh ) ----------
./runcli.sh: line 156: unset: `/mnt/utmp/codeblocks/lib:/usr/lib:/lib': not a valid identifier
Clean unmout of PND
ldconfig: Can't open configuration file /etc/ld.so.conf: No such file or directory
ldconfig: /usr/lib/libjacknet.so.0 is not a symbolic link

[SUCCESS]--- Starting the application ( runcli.sh ) ----------
[ START ]--- Restoring the frame buffer status ----------
[SUCCESS]--- Restoring the frame buffer status ----------
[ START ]--- Restoring nub mode ----------
[SUCCESS]--- Restoring nub mode ----------
[ START ]--- uMount the PND ----------
[ START ]--- Waiting the Union to be available ----------
[SUCCESS]--- Waiting the Union to be available ----------
rmdir: failed to remove `/mnt/utmp/codeblocks': Device or resource busy
[ START ]--- Waiting the PND mount dir to be free ----------
[SUCCESS]--- Waiting the PND mount dir to be free ----------
cleanup done
[SUCCESS]--- uMount the PND ----------
=======================================================================================
Return code is : 2
And yes, I tried to reboot, but to no avail :(

EDIT: I have just checked, and ancillary packages are still there and working, when used invidually.

Cheers, Magic Sam
 
Last edited:
mmm, not much here. Can you also copy everything before the Pandora logo from the codeblocks command line itself?
 
Is there a Way to check which Version of Codeblocks i have installed?
Here are too much Cards with differrent Codeblocks Versions :)

On my Main Dev SD Card it mount Mono and the Others fine.
 
from codeblocks command line, do
Code:
nano /mnt/utmp/codeblocks/PXML.xml
and check the version. That's the easier way for codeblocks.
 
@ptitSeb : "et voila" ;)
bash: [: : integer expression expected
--------------------------------------------------------------
Setting PATH to /mnt/utmp/codeblocks:/mnt/utmp/codeblocks/bin:/mnt/utmp/codeblocks/usr/bin:/mnt/utmp/codeblocks/wx/bin:/mnt/utmp/codeblocks/qt5/bin:/mnt/utmp/codeblocks/home/bin:/mnt/utmp/codeblocks/wine/bin:/mnt/utmp/codeblocks/ant/bin:/mnt/utmp/codeblocks/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
--------------------------------------------------------------
Setting PKG_CONFIG_PATH to /mnt/utmp/codeblocks/local/lib/pkgconfig:/mnt/utmp/codeblocks/usr/lib/pkgconfig:/mnt/utmp/codeblocks/usr/share/pkgconfig:/mnt/utmp/codeblocks/lib/pkgconfig:
--------------------------------------------------------------
Setting GIT_TEMPLATE_DIR to /mnt/utmp/codeblocks/usr/share/git-core/templates
--------------------------------------------------------------
Setting CDEVROOT to /mnt/utmp/codeblocks
--------------------------------------------------------------
Setting XDG_DATA_DIRS to /mnt/utmp/codeblocks/usr/share:/mnt/utmp/codeblocks/share:/etc/xdg/op:/usr/local/share:/usr/share:-||_datadir_@:/usr/share:/usr/share
--------------------------------------------------------------
--------------------------------------------------------------
Setting up AutoTools variables
--------------------------------------------------------------
Setting CODEBLOCKS_DATA_DIR to /mnt/utmp/codeblocks
--------------------------------------------------------------
--------------------------------------------------------------
--------------------------------------------------------------
Testing for need of a ldconfig
Must launch ldconfig, sudo password needed
Password:
ldconfig: /mnt/utmp/codeblocks/usr/lib/libisl.so.10.1.1-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /mnt/utmp/codeblocks/usr/lib/libisl.so.13.1.0-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /mnt/utmp/codeblocks/usr/lib/libstdc++.so.6.0.21-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /mnt/utmp/codeblocks/usr/lib/libstdc++.so.6.0.22-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /mnt/utmp/codeblocks/usr/lib/libfmodL.so.6 is not a symbolic link

ldconfig: /mnt/utmp/codeblocks/usr/lib/libfmod.so.6 is not a symbolic link

ldconfig: /mnt/utmp/codeblocks/usr/lib/libalut.so.0 is not a symbolic link

ldconfig: /mnt/utmp/codeblocks/usr/lib/libRegalW.so.1.0 is not a symbolic link

ldconfig: /mnt/utmp/codeblocks/usr/lib/libRegal.so.1.0 is not a symbolic link

ldconfig: /usr/lib/libjacknet.so.0 is not a symbolic link

Setting LD_LIBRARY_PATH to /mnt/utmp/codeblocks:/mnt/utmp/codeblocks/lib:/mnt/utmp/codeblocks/usr/lib:/mnt/utmp/codeblocks/wx/lib:/mnt/utmp/codeblocks/wine/lib:/mnt/utmp/codeblocks/lib:/usr/lib:/lib

Cheers, Magic Sam
 
Nope, I don't see anything.
What gives you, from codeblocks command line
Code:
l /mnt/utmp/wxpython
l /mnt/utmp/monort
l /mnt/utmp/lazarus
Also, when the command line start, a small popup should appear breefly, in the lower right corner, saying what pnd is mounted or not found.
And at last, can you mount each pnd individualy?
 
@ptitSeb : OK, replies are in order :)
pandora:/mnt/utmp/codeblocks$ l /mnt/utmp/wxpython
ls: cannot access /mnt/utmp/wxpython: No such file or directory
pandora:/mnt/utmp/codeblocks$ l /mnt/utmp/monort
ls: cannot access /mnt/utmp/monort: No such file or directory
pandora:/mnt/utmp/codeblocks$ l /mnt/utmp/lazarus
ls: cannot access /mnt/utmp/lazarus: No such file or directory

- The small popup says the PNDs can't be found.

- And yes, all three packages work correctly when launched invidually (see one of my previous posts).

Cheers, Magic Sam
 
@ptitSeb : sure :)
pandora:/mnt/utmp/codeblocks$ l "/usr/share/applications/monort-ptitseb*.desktop"
ls: cannot access /usr/share/applications/monort-ptitseb*.desktop: No such file or directory

Cheers, Magic Sam
[doublepost=1473100842,1473100719][/doublepost]Even though monort-ptitseb#0.desktop is in there...

EDIT: without the quotes the "ls" command manages to find the file

EDIT2: without the quotes in runcli.sh, it works ;)
 
Last edited:
@ptitSeb : or just tell your users about this tiny bug and how to solve it :)

You could even provide a short script (a hot patch if you want) that mounts codeblocks.pnd, copies runcli.sh to appdata/codeblocks, removes the quotes from the test conditions in that file and unmounts the PND.

Cheers, Magic Sam
 
@Magic Sam
I rekognized that PND downloaded over PNDManager have another Name.
Example: Palemoon
When you dowload it with the normal Browser on my PC the downloaded File will have the Name: palemoon.pnd
but when i use PND Manager..the downloaded File have the Name: palemoon_ptitseb.pnd

Maybe its simply a Naming Problem.
Can you try to rename your Mono PND to monort.pnd
The others should be named:
wxpython.pnd
lazarus.pnd
java.pnd
codeblocks.pnd

Maybe that help ;)

btw:
My PND are near all in the /media/SDCARD/pandora/menu Directory..maybe it help too. ;)
 
Hi all :)

@ptitSeb : I'm porting Simsu to the Pandora. The compilation was easy thanks to Code::Blocks, and the application works correctly when your package is still mounted.

However, it fails with the following error message when launched as a PND, after a reboot:
[ START ]--- Starting the application ( run.sh ) ----------
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Reinstalling the application may fix this problem.
QT5 Base dir = /mnt/utmp/simsu-magicsam
/usr/pandora/scripts/pnd_run.sh: line 528: 2127 Aborted
What am I doing wrong ?

I think I have copied all the required libraries to the libs directory:
pandora:/media/Pandora/dev/install/simsu-magicsam/lib$ ls
libGLESv2.so libQt5Widgets.so.5 libicui18n.so.54 librt.so.1
libIMGegl.so libdl.so.2 libicuuc.so.54 libstdc++.so.6
libQt5Core.so.5 libgcc_s.so.1 libpcre16.so.0 libz.so.1
libQt5Gui.so.5 libicudata.so.54 libpng16.so.16

Thanks for your help :)

Cheers, Magic Sam

EDIT: nevermind, I think I found a solution here. I should have searched the boards before posting, sorry :p
 
Last edited:
Back
Top