Beta ptitSeb's Beta Lair


Hi all :)

@ptitSeb : thanks for adding Rust to your Code::Blocks package !
/media/Pandora1/dev/projects/hello_world$ ls
main main.rs
/media/Pandora1/dev/projects/hello_world$ ./main
Hello, world!

Cheers, Magic Sam
 
Hi all :)

@ptitSeb : thanks for adding Rust to your Code::Blocks package !


Cheers, Magic Sam
Nice (you misspelled "Hellolo wolrd" :p ).

I tried some Rust stuff too. Most game/emulators wont work because they need shaders (all Piston based stuff for example). But other stuff do work (I have to try that Quantum computer emulator lib!).
 
Last edited:
@ptitSeb hi there, I am trying to compile i3wm for zaxxon and possibly make a pnd out of it. Tried this years ago and failed at some point.

I have all dependencies compiled and the libs should be in the right folders, however I am getting an error stating that the provided cairo libs are not recent enough ("Requested 'cairo >= 1.14.4' but version of cairo is 1.12.16"). You have it right there in the changelog, that you have included the latest cairo libs from git. How can that be? Did I screw up the update of codeblocks? I updated the pnd just now to get a recent cairo library as I can't figure out how to correctly build it myself on pandora.

I made sure to delete the old appdata folder of my previous codeblocks pnd. Can you help me out? Thanks btw once again for your amazing work. Compiling stuff using your codeblocks package is sooooo much fun.

EDIT: I think I just answered my own question... not sure though but it seems, that configure looks for the cairo library install of the pandora OS and not the updated one as I didn't provide a path to the codeblocks directory.
 
Last edited:
@xnopasaranx : I assume it use pkconfig to get cairo.

Look there:
Code:
cat /mnt/utmp/codeblocks/usr/lib/pkgconfig/cairo.pc

On my side, I get
Code:
prefix=/mnt/utmp/codeblocks/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: cairo
Description: Multi-platform 2D graphics library
Version: 1.15.2

Requires.private:   gobject-2.0 glib-2.0 >= 2.14       pixman-1 >= 0.30.0    fontconfig >= 2.2.95 freetype2 >= 9.7.3   libpng xcb-shm x11-xcb xcb >= 1.6 xcb-render >= 1.6 xrender >= 0.6 x11 xext
Libs: -L${libdir} -lcairo
Libs.private:      -lz      -lz -lz
Cflags: -I${includedir}/cairo

But maybe the software you want to compile get it's dependancies using some other mecanism (also, if it's a custom shell script, be sure to use #!/bin/bash istead of sh)
 
@xnopasaranx : if you manage to get i3wm up and running for zaxxon, I'd really appreciate you helping me do the same. I've tried and failed to compiled a couple times now. I can't quite remember the issue, but I believe I went down some dependency rabbit-hole and couldn't find my way out.
 
@ptitSeb It seems my version is different and obsolete. No idea why, will have to take another look after work.

this is my output:
prefix=/mnt/utmp/codeblocks/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: cairo
Description: Multi-platform 2D graphics library
Version: 1.12.16

Requires.private: gobject-2.0 glib-2.0 pixman-1 >= 0.16.0 fontconfig >= 2.2.95 freetype2 >= 9.7.3 libpng xcb-shm x11-xcb xcb >= 1.6 xcb-render >= 1.6 xrender >= 0.6 x11 xext
Libs: -L${libdir} -lcairo
Libs.private: -lz -lz -lz
Cflags: -I${includedir}/cairo
[doublepost=1497854726,1497854629][/doublepost]@edgex004 will do! I plan on making a pnd with a default configuration for pandora and a couple extra tools (polybar, termite)
 
@ptitSeb I believe it is. I updated after downloading from here and it should be this version, unless I made some mistake. It is the same file size as the version on this thread as well.
 
@ptitSeb I believe it is. I updated after downloading from here and it should be this version, unless I made some mistake. It is the same file size as the version on this thread as well.
I have downloaded the pnd from here and extracted the cairo.pc file (don't have a Pandora here). And it reference the 1.15.2.
To be sure you have latest version, try this:
Code:
rustc --version
If Rust is not there, then that mean you probably don't have the latest pnd.
 
@ptitSeb thanks a lot for taking a look. I'll try again today and will also replace the pnd again to make sure it's the correct version.
 
yeah, I am doing that right now. Thanks for the heads up. The sdcard goes straight into my laptop this time, which will also save me a bunch of time copying the actual pnd. I think it was still mounted the last time and the file wasn't deleted when I tried to.
[doublepost=1497983993,1497980337][/doublepost]@ptitSeb so far so good. Now i3 configures and it's compiling right now. I am knocking on wood...

Have compiled i3 on the pandora with slackware before which was quite a hassle but overall very straight forward. I am not sure how SZ handles sessions though, I remember fiddling with it once and finding a bunch of hacks instead of an xsession file getting parsed.

Yeah it failed... asciidocs a2x threw some python error. I went to investigate and found out, that it can't import any sys modules for some reason. Can't even open a python shell, fails with the same error. I must have seriously screwed up my system somehow. Think I will just reflash and then try again.

This is the error message btw:
Code:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site.py", line 569, in <module>
    main()
  File "/usr/lib/python2.7/site.py", line 551, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/lib/python2.7/site.py", line 278, in addusersitepackages
    user_site = getusersitepackages()
  File "/usr/lib/python2.7/site.py", line 253, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/usr/lib/python2.7/site.py", line 242, in getuserbase
    from sysconfig import get_config_var
  File "/usr/lib/python2.7/sysconfig.py", line 10, in <module>
    'stdlib': '{base}/'+sys.lib+'/python{py_version_short}',
AttributeError: 'module' object has no attribute 'lib'

"which python" gives me /usr/bin/python
 
Last edited:
because it tries to use system python. Download wxPython (if you don't have already) then restart codeblocks so it automount wxPython.

Now you access to a more modern Python in /mnt/utmp/wxpython/bun/python (but it's also 1st in the PATH).
 
Code:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site.py", line 569, in <module>
    main()
  File "/usr/lib/python2.7/site.py", line 551, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/lib/python2.7/site.py", line 278, in addusersitepackages
    user_site = getusersitepackages()
  File "/usr/lib/python2.7/site.py", line 253, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/usr/lib/python2.7/site.py", line 242, in getuserbase
    from sysconfig import get_config_var
  File "/usr/lib/python2.7/sysconfig.py", line 10, in <module>
    'stdlib': '{base}/'+sys.lib+'/python{py_version_short}',
AttributeError: 'module' object has no attribute 'lib'
@ptitSeb I am still having the same problem. wxpython is there and gets mounted by codeblocks. "which python" still shows the same path in codeblocks cli though: /usr/bin

I updated PATH doing
Code:
export PATH=/mnt/utmp/wxpython/usr/bin:$PATH
and when I echo it, it comes back correctly. Still "which" points to the wrong path and if I run python it fails with the error message quoted above.
 
Last edited:
I'm not sure what's wrong. Look what I get:
Code:
/media/sda1/sources$ echo $PATH
/mnt/utmp/codeblocks/home/go/bin:/mnt/utmp/codeblocks/local/bin:/mnt/utmp/codeblocks/perl/bin:/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/qt4/bin:/mnt/utmp/codeblocks/rust/bin:/mnt/utmp/codeblocks/qtcreator/bin:/mnt/utmp/codeblocks/home/bin:/mnt/utmp/codeblocks/wine/bin:/mnt/utmp/codeblocks/ant/bin:/mnt/utmp/mysql/bin:/mnt/utmp/nodejs/bin:/mnt/utmp/lazarus/fpc/bin/arm-linux:/mnt/utmp/wxpython/bin:/mnt/utmp/monort/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
/media/sda1/sources$ which python
/mnt/utmp/wxpython/bin/python
/media/sda1/sources$ python
Python 2.7.10 (default, Jun 17 2017, 20:40:02)
[GCC 7.1.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
[doublepost=1498069417,1498069343][/doublepost]Ah, yes, it's /mnt/utmp/wxpython/bin (no "usr" for wxpython).
 
ah! I'll try that in my PATH instead. Thanks for being so helpful btw!
[doublepost=1498072000,1498070238][/doublepost]okay, now python is working correctly. I am installing all compiled deps again now and then I'll give it another go.
 
@ptitSeb and @edgex004 I have tried to compile i3 several times now and make always fails because of libiconv. I remember that this was the problem last time I attempted to build it. Maybe that was the same problem with your build edgex004?

Seems like iconv is normally provided with libc on other distributions so you really don't have to install libiconv by itself. I've compiled libiconv and installed that instead, hoping it would work then. Still no luck.

Now I've added -liconv to the LDFLAGS in the Makefile autoconf generates.

make now fails while generating man pages and docs...

Code:
xmlto: /media/pandora/pandora/code/i3/build/man/i3.xml does not validate (status 3)
xmlto: Fix document syntax or use --skip-validation option
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
/media/pandora/pandora/code/i3/build/man/i3.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
                                                                               ^
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
validity error : Could not load the external subset "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
Document /media/pandora/pandora/code/i3/build/man/i3.xml does not validate
Makefile:3797: recipe for target 'man/i3.1' failed
make[1]: *** [man/i3.1] Error 13
make[1]: *** Waiting for unfinished jobs....
xmlto: /media/pandora/pandora/code/i3/build/man/i3bar.xml does not validate (status 3)
xmlto: Fix document syntax or use --skip-validation option
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
/media/pandora/pandora/code/i3/build/man/i3bar.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
                                                                               ^
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
validity error : Could not load the external subset "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
Document /media/pandora/pandora/code/i3/build/man/i3bar.xml does not validate
Makefile:3797: recipe for target 'man/i3bar.1' failed
make[1]: *** [man/i3bar.1] Error 13
xmlto: /media/pandora/pandora/code/i3/build/man/i3-msg.xml does not validate (status 3)
xmlto: Fix document syntax or use --skip-validation option
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
/media/pandora/pandora/code/i3/build/man/i3-msg.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
                                                                               ^
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
validity error : Could not load the external subset "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
Document /media/pandora/pandora/code/i3/build/man/i3-msg.xml does not validate
Makefile:3797: recipe for target 'man/i3-msg.1' failed
make[1]: *** [man/i3-msg.1] Error 13
make[1]: Leaving directory '/media/pandora/pandora/code/i3/build'
Makefile:1242: recipe for target 'all' failed
make: *** [all] Error 2

I don't even want to generate the documentation and manpages... but I've no idea how to switch it off. There isn't any information on the internet about this, apparently i3 package maintainers get this information from reading the guts of sacrificed lambs. All the documentation on github about i3 says that you're not supposed to compile it but wait for release packages for your distro... stupid as fuck. I am really very annoyed about this. Why can't they just document how to build a package/release then?

The configure script gives a synopsis when finishing and it always says "build manpages = yes"/"build docs = yes" no matter what parameters I try. I wish I could just switch that off somehow.

I am configuring with:
Code:
../configure --prefix=/mnt/utmp/i3/ --exec-prefix=/mnt/utmp/i3/bin/ --disable-sanitizers --datadir=/mnt/utmp/i3/data/ --datarootdir=/mnt/utmp/i3/data/ LIBS="-liconv"

Would someone be willing to take a look at the configure script?
 

Attachments

  • i3-configure.zip
    70.7 KB · Views: 306
@xnopasaranx : so clone latest version of i3 from github, generated the configure script (using autoreconf -i), used your exact configure line, and, after a whole bunch of update in condeblocks libs
Code:
********* 25/06/2017
* make            4.2.1 (with change to force /bin/bash as default shell)
+ libev            latest from cvs
+ xcb-util        0.4.0
+ xcb-util-renderutil    0.3.9
+ xcb-util-cursor        0.1.3
+ xcb-util-keysyms        0.4.0
+ xcb-util-wm    0.4.1
+ xcb-util-xrm    latest from git
+ libstartup-notification    0.12

it just built.

I'll package a new updated of codeblocks pnd soon, with those updates.
You can find the "i3" folder, (with the lib depandencies filled) here: i3.tgz
I haven't tried, as it complain because another XWM is loaded, and I'm not found of tile manager... So I let you continue from here.
 
Back
Top