Beta ptitSeb's Beta Lair


Hi all :)

Thanks @ptitSeb, that did the trick !

Another issue I have with that piece of code is that I don't really understand how SDL and OpenGL ES work together... This is an SDL 1.2 application, compatible with OpenGL ES 2.0. So far (after setting export SDL_VIDEO_GLES2=1 and export SDL_VIDEO_GL_DRIVER=libGLESv2.so) it fails with:
Notice: [SDL] Video Info: 800, 480, hardware acceleration: no, window manager: yes, MSAA: 4
platform_video_init() failed.
Error: couldn't initialize video subsystem. Check permissions, try other video platform options (-f, -w, -h)
Video platform environment variables:
(...)

Video platform initialization failed
Aborted

The developper told me the call SDL_SetVideoMode(800, 480, 32, SDL_OPENGL) was failing, and that I had to use SDL_SetVideoMode(800, 480, 16, SDL_OPENGLES) instead, as per pandorawiki.org:

https://pandorawiki.org/GLES#1:_Grab_the_modified_version_of_SDL

But in order for this to work, do I need to use Cpasjuste version ?

https://github.com/Cpasjuste/SDL-13

Cheers, Magic Sam
 
@Magic Sam : SDL 1.3 is in fact ... SDL 2.0 so no.

What you need is to add "eglport" from pickle to your project. You create a regular SDL 1.2 Screen (non-opengl), then you use eglport (with "EGL_Open(800,480);" ) to create the correct GLES2 context. Look in my github account for example. f1spirit use eglport, but with GLES1.1, and is easy to follow. You can also look at Eldritch, that also use eglport with an GLES2 context, but is harder to read. There is also some wiki page somewhere.
 
Codeblocks PND is back in the beta lair!
[doublepost=1494880304,1494874362][/doublepost]So along with gcc 7.1 in the new codeblocks beta, you can find a beta a Me-TV (warning, untested, and this one save it's config in the NAND it seems).
 
I thank you very much for creating that Me-TV PND :D

Unfortunaly it do not work with my Technisat CableStar Combo HD CI and
not with my fully registerred V4l2 Device Terratec Cinergy HTC USB XS.
RegisterredDVBDevice.jpg


Me-Tv PND should give me now the Chance to Scan the Channels by itself..but it did not.
It want a Channels.conf instead of creating the Channels.conf by itself.

My Terratec Device is fully registered as V4L2 Device video0 but its not found from this PND yet :(
TextDevice.jpg

[doublepost=1494883851,1494883420][/doublepost]Edit:
Ah some missing Libs in the PND Runout:
=======================================================================================
PND : /media/BOOT/pandora/desktop/metv
PND_FSTYPE : directory
APPDATADIR : /media/BOOT/pandora/appdata/me-tv
APPDD_FSTYPE : vfat
PND_CPUSPEED : <unset>
EXENAME : runscript.sh
ARGUMENTS : <unset>
=======================================================================================
[ START ]--- Mount the PND ----------
Mounting : mount --bind -o ro "/media/BOOT/pandora/desktop/metv" "/mnt/utmp/me-tv"
mount: warning: /mnt/utmp/me-tv seems to be mounted read-write.
Mounting the Union FS : mount -t aufs -o exec,noplink,dirs="/media/BOOT/pandora/appdata/me-tv=rw+nolwh":"/mnt/pnd/me-tv=rr" none "/mnt/utmp/me-tv"
[SUCCESS]--- Mount the PND ----------
[ START ]--- Starting the application ( runscript.sh ) ----------
libffi.so.4: cannot open shared object file: No such file or directory
Failed to load module: /mnt/utmp/me-tv/lib/gio/modules/libgiofam.so
libgnutls.so.30: cannot open shared object file: No such file or directory
Failed to load module: /mnt/utmp/me-tv/lib/gio/modules/libgiognutls.so
libproxy.so.1: cannot open shared object file: No such file or directory
Failed to load module: /mnt/utmp/me-tv/lib/gio/modules/libgiolibproxy.so
libffi.so.4: cannot open shared object file: No such file or directory
Failed to load module: /mnt/utmp/me-tv/lib/gio/modules/libgiofam.so
libgnutls.so.30: cannot open shared object file: No such file or directory
Failed to load module: /mnt/utmp/me-tv/lib/gio/modules/libgiognutls.so
libproxy.so.1: cannot open shared object file: No such file or directory
Failed to load module: /mnt/utmp/me-tv/lib/gio/modules/libgiolibproxy.so

(me-tv-client:5212): Gtk-WARNING **: Attempting to set the permissions of `/mnt/utmp/me-tv/home/recently-used.xbel', but failed: Operation not permitted

(me-tv-client:5212): Gtk-WARNING **: Attempting to set the permissions of `/mnt/utmp/me-tv/home/recently-used.xbel', but failed: Operation not permitted
Me TV 1.4.0.58
Kill me-tv-server now, so the PND can unmount
[SUCCESS]--- Starting the application ( runscript.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/me-tv': 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 : 15
 
I have just updated the PND, adding the missing libs.
But I odn't think that will solve the "Channels" issue. What is this "scan" command they are refering? It's not built from me-tv, is there some other package that should also be built?
Shall a command line for me-tv be created also?
 
The missing Files where added,the PND Runout seem to be fine now ;)

Unfortunaly this DVB USB Adapters i used..are maybe not fully registered as i thought.

This Scan Application for the Terminal is easy to install into the Pandora Zaxxon with:
Code:
sudo opkg install dvb-scan
..and even this do not find my DVB Dongles.

I must try more with Firmware Files or Drivers.
Your ME-TV PND seem to work fine.
I am Curious if i can find the right DVB Firmware Files for my rescent 2 Devices.

In Germany DVB-T is Shut off and DVB-T 2 have new Frequencies...but i still want to use it for DVB-C with Cable TV :D
 
Hi all :)

@ptitSeb : python 2.7 fails when called from Code::Blocks:
/mnt/utmp/codeblocks$ python
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'

Setting PYTHONHOME to /usr/lib/python2.7/ partially solves this issue:
/mnt/utmp/codeblocks$ export PYTHONHOME="/usr/lib/python2.7/"
/mnt/utmp/codeblocks$ python
ImportError: No module named site

What am I doing wrong ?

Cheers, Magic Sam
 
@Magic Sam : that's because it's using Python from the firmware. Grab "wxPython" PND and you'll have a newer version (it will be automounted with codeblocks). Also, check your Python script and if it start with "#!/usr/bin/python" in that case, change to "#!/mnt/utmp/wxpython/bin/python" for example.
 
Last edited:
Thanks for the Informations.
My Problem is that my Terratec Cinergy USB HTC XS Dongle is automatic Mounted as V4L2 Device.
..but not as DVB Device.
I tried some other Firmware Files for it but ever the Same here.

Same Problem with my Technisat DVB-C USB Combo CI Box.

When the Tuners are not registerred as DVB Device..
..then shurely can Me-Tv not find one.

Unfortunaly i got all my old working DVB-T into the Trash because no need more here in Germany for them( because DVB-T 2 changing in Germany)

I must read and try more..
..maybe with some Modprobe Things to get it work.

Do anyone other can Confirm that the Me-Tv PND is working fine?

Zaxxon does not support my rescent TV Dongles out of the Box.
 
Added a new beta of Pacifi3D in the 1st post (the 3D Pacman emulator). this is an updtaed version compared to the one already in the Forum, with frameskipping and faster (and better) sound, making the PND playable now (on Gigahertz model at least).
 
Hi all :)

@ptitSeb : another Python related issue with your latest beta Code::Blocks:
~$ pip2
bash: /mnt/utmp/codeblocks/usr/bin/pip2: /mnt/utmp/codeblocks/usr/bin/python: bad interpreter: No such file or directory

I tried to symlink /mnt/utmp/wxpython/bin/python to /mnt/utmp/codeblocks/usr/bin, but that only led to more errors...

Pip3 is working fine though.

What am I doing wrong ?

Cheers, Magic Sam
 
I haven't used pip2 for a long time. It may still reference the location on python when it was still part of codeblocks, and not the new location in wxPython. Try to adapt the path in pip2 directly (it should be a simple script). I'll take look at fixing that for next beta.
 
Thanks @ptitSeb :)

I have changed the path of the python interpreter in pip2 to /mnt/utmp/wxpython/bin/python. Now it fails with the following error:
/mnt/utmp/codeblocks$ pip2 --help
Traceback (most recent call last):
File "/mnt/utmp/codeblocks/usr/bin/pip2", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.linux-armv7l/egg/pkg_resources.py", line 2797, in <module>
File "build/bdist.linux-armv7l/egg/pkg_resources.py", line 576, in resolve
pkg_resources.DistributionNotFound: pip==1.6.dev1

Looks like there's something wrong with pip 1.6dev1. Let's try a different version then :)

EDIT: changed "pip==1.6dev1" to "pip>=1.6dev1", and it did the trick :D

EDIT 2: but upgrading pip to 9.0.1 broke everything... :(

Cheers, Magic Sam
 
Last edited:
Tested me-tv and it loads correctly my channel list but crashes when I try to see any of them, complains about libvlc:

Code:
=======================================================================================
PND             : /media/SD16/pandora/menu/me-tv.pnd
PND_FSTYPE      : Squashfs
APPDATADIR      : /media/SD16/pandora/appdata/me-tv
APPDD_FSTYPE    : vfat
PND_CPUSPEED    : <unset>
EXENAME         : runscript.sh
ARGUMENTS       : <unset>
=======================================================================================
[ START ]--- Mount the PND ----------
Mounting : mount -t squashfs -o ro "/dev/loop1" "/mnt/utmp/me-tv"
Mounting the Union FS : mount -t aufs -o exec,noplink,dirs="/media/SD16/pandora/appdata/me-tv=rw+nolwh":"/mnt/pnd/me-tv=rr" none "/mnt/utmp/me-tv"
[SUCCESS]--- Mount the PND ----------
[ START ]--- Starting the application ( runscript.sh  ) ----------
[0x4b03d8] main libvlc error: No plugins found! Check your VLC installation.
Segmentation fault
Kill me-tv-server now, so the PND can unmount
[SUCCESS]--- Starting the application ( runscript.sh  ) ----------
[ START ]--- Restoring the frame buffer status ----------
[SUCCESS]--- Restoring the frame buffer status ----------
[ START ]--- uMount the PND ----------
[ START ]--- Waiting the Union to be available ----------
[SUCCESS]--- Waiting the Union to be available ----------
rmdir: failed to remove `/mnt/utmp/me-tv': 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

This program will be pretty useful to me, thanks for the effort.
 
Ah. Libvlc. I compiled it some time ago but never actually use it...
I guess there are some "hidden" dependancies, with a plugin folder (hardcoded?). I'll look into that.
 
The new codeblock beta is uploaded, adding yet another language: Rust v1.17, along with cargo.

Note the arm-linux--unknown-gnueabi is a target triplet that is virtualy unsupported/unknown for Rust (but arm-android-unknown-gnueabi and arm-linux-unknown-gnueablhf are).
So some dependancies may failed to compile (like cpal older than 0.4.5 for example), complaining about missing import. In that case, you'll need to alter the Cargo.toml file and use a local copy of the lib, and you'll need to alter the Cargo.toml of the lib to add the dependancie for arm-linux-unknown-gnueabi.
 
Last edited:
Back
Top