Author Topic: Trying to get puredata installed on 5500  (Read 3109 times)

projekt

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Trying to get puredata installed on 5500
« on: September 25, 2004, 06:16:01 am »
Hi, this is sort of an ongoing learning process for me. I posted before here, https://www.oesf.org/forums/inde...=ST&f=91&t=6599 .. I figured I would just start a new post since that one was so old and try and get things back up and running. Okay, so I needed to do two things according to Lardman..

( a ) link libc2.3.2 off my sd card
( b ) get x windows on my zaurus

well, I sorta am at a loss for both. I downloaded libc6_2.3.2-1_armv4l-strongarm.ipk off the openzaurus experimental feed. i did two things, not sure which way i am supposed to go with this.... I at first tried (just to see if it would work) using ar -x on the file and using gzip on it to make it compatible with my rom. I tried this and got the same message (next line) that i've been getting (so I uninstalled)

pd: /lib/libc.so.6: version `GLIBC_2.3' not found (required by pd)
pd: /lib/libpthread.so.0: version `GLIBC_2.3.2' not found (required by pd)

then i look /lib out of the data.tar.gz of the ipk and put that into /mnt/card/lib, so the libraries are there, I just don't understand lardman's instructions as to how you create a link to them, or how one would override the older libc_2.2.2 which comes default on the sharprom...

I have a feeling there is more to getting PD running then just the above.  For example, on the site ( http://gige.xdv.org/pd/PDa ) it says it needs the tcl/tk library or framework or whatever it is to run.  Lardman said to install x/qt . I grabbed the following off sourceforge...

blackbox_0.65.0.1_arm
xbase-clients 4.3.0.2_arm
xbase-etc_4.3.0-2_arm
xlibs_4.3.0-2_arm
xqt-startup-scripts_0.0.2_arm
xqt-server_0.0.8_arm
xqt-fonts-misc_1.0.0_all

I installed 'em, and got a few new application icons.  Start X and X/Qt Server... yeah!  
If I run the first, nothing happens that I can see, maybe its a process ( i don't know how to view my processes yet, still learning!) . when I run x/qt I get a graphical interface and can move the cursor around quite easily, which is fun and all. I hit the menu button and can shutdown out of it.. . hrm, well that seems to be working at least, is it???
(now, I also heard of another method, something involving x11zaurus_0.8_arm.ipk, qtopia-x_0.1-arm.ipk, and keypebble.... I have no idea how to really run either, so as a n00b, I am asking help. )

I run xinit and get : (sorry if this seems stupid, I feel stupid posting this)

# xinit

xinit:  No such file or directory (errno 2):  no server "X" in PATH

Use the -- option, or make sure that /opt/QtPalmtop/bin is in your path and
that "X" is a program or a link to the right type of server
for your display.  Possible server names include:

giving up.
xinit:  Connection refused (errno 111):  unable to connect to X server
xinit:  No such process (errno 3):  Server error.

It should be noted that I have no idea what xwindows to any degree, at any level.  
So really I have two questions here that I am hoping to get answered...

1.) How can I glibc2.3.2 onto my zaurus through linking to the library off my sd card? ( I realize I could just install oz 3.3.6 pre1 BUT, I do not have a CF card right now, just a wlan card which isn't a combo card so I would like to try this method first before dishing out for another card, even though they aren't expensive)

2.) Can I get a quick xwindows tutorial.  How does it work?  How do I start it up?  How would PD work in conjunction with xwindows (I only know how to run pd by typing it in the console, but even with the glibc libraries there, I don't see how running it in the console would send it to xwindows and bring up the graphical interface for the application....)

3.).. oh and 3, is tcl/tk on my zaurus now?  did i miss something when i installed xwindows?

Thank you so much for your time, I am sorry to be such a pester.  If I get this running it'll be loads of fun for me so I'm very motivated to learn. I hope you will help me get there!

oh and one last question 4.) how do i view (in the console) what process are running, and how do I kill them off? Thanks..
James
« Last Edit: September 25, 2004, 09:25:11 am by projekt »

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Trying to get puredata installed on 5500
« Reply #1 on: September 25, 2004, 11:16:24 am »
Good lad! It's good to see people having a go (and learning). :-)

Quote
4.) how do i view (in the console) what process are running, and how do I kill them off?

'ps'; then 'kill -9 <PID>' where <PID> is the process ID shown in the first column (?) by ps.

Quote
3.).. oh and 3, is tcl/tk on my zaurus now?

This is not part of X11 so you'll have to install it from somewhere if you want it (you may have done this already, I'm reading in reverse).

Quote
2.) Can I get a quick xwindows tutorial. How does it work? How do I start it up? How would PD work in conjunction with xwindows (I only know how to run pd by typing it in the console, but even with the glibc libraries there, I don't see how running it in the console would send it to xwindows and bring up the graphical interface for the application....)

Google for X11 or XFree, there are lots of decent explanations - far better than I'd be able to do anyway. The last point though - do you have WinXP/2k? If so open a command prompt (start menu>run: cmd.exe) and run something like 'explorer.exe'.

Quote
now, I also heard of another method, something involving x11zaurus_0.8_arm.ipk, qtopia-x_0.1-arm.ipk, and keypebble.... I have no idea how to really run either, so as a n00b, I am asking help.

This is the old method, steer clear, it's a pain and XQt is far better, newer and generally nicer.

Quote
when I run x/qt I get a graphical interface and can move the cursor around quite easily, which is fun and all. I hit the menu button and can shutdown out of it.. . hrm, well that seems to be working at least, is it???

You should have a window manager there somewhere (you installed blackbox) - this appears as a 'taskbar'. I presume you don't have one of these?

Are you running OZ or Sharp ROM 2.xx? If so there's a story ;-): XQt tries to install the Xinit file (name?) in /home/zaurus, but this doesn't exist for us OZ (and Sharp ROM 2.xx) users so you either need to create /home/zaurus for the installation or extract the relevant files manually, then (whichever you did) place these files in /root so that they get run. This should start your window manager.

That should sort you out for X11.

New post for libc (lest my computer dies and I lose this one!).


Si
« Last Edit: September 25, 2004, 11:18:48 am by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Trying to get puredata installed on 5500
« Reply #2 on: September 25, 2004, 11:23:41 am »
Quote
then i look /lib out of the data.tar.gz of the ipk and put that into /mnt/card/lib, so the libraries are there, I just don't understand lardman's instructions as to how you create a link to them, or how one would override the older libc_2.2.2 which comes default on the sharprom...

I had a dig in the ipk and the following three executables are included:

/usr/bin/pd
/usr/bin/pdreceive
/usr/bin/pdsend

I'd do this: move them to:

/usr/bin/pd.bin
/usr/bin/pdreceive.bin
/usr/bin/pdsend.bin

Create 3 scripts with the original file names (pd, pdreceive, pdsend) like so (alter the last line as appropriate):

#!/bin/bash
LD_LIBRARY_PATH=/mnt/card/lib/:$LD_LIBRARY_PATH
./pd.bin

Now hopefully (as I've never tried this), it'll alter the lib search path so that it finds your later versions first, then it will run pd (or whatever), but the alteration won't leave the script so everything else should still work okay.

Have a go and let me know if it works.


Si
« Last Edit: September 25, 2004, 11:24:06 am by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Trying to get puredata installed on 5500
« Reply #3 on: September 28, 2004, 05:58:11 pm »
James (projekt), How are you doing?

I'm about to have a go at this, assuming I can find the required libs...


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

projekt

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Trying to get puredata installed on 5500
« Reply #4 on: September 29, 2004, 04:34:12 am »
Well, I ordered a CF card today off ebay, so its sorta put on hold for the moment. I think it will be easier to do this under GPE then trying to do it on the sharprom.... ? agreed?

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Trying to get puredata installed on 5500
« Reply #5 on: September 29, 2004, 06:17:51 am »
Quote
agreed?

Agreed.

Well I had an initial stab at it.

Installed pd to ext2 formatted CF card, installed tk and tcl from ipkgfind.handhelds.org:

http://ipkgfind.handhelds.org/details.phtm...ficial=&format=
http://ipkgfind.handhelds.org/details.phtm...ficial=&format=

Now one of these packages complained that it needs a higher version of xlibs, I duly ignored it.

When I finally got round to running it ('cos it took bloody ages to work out how to get the files onto the machine - dropbear is crap imho), it came up with the following:

root@collie:~# pd
couldn't open MIDI input device -1
couldn't open MIDI output device -1
opened 0 MIDI input device(s) and 0 MIDI output device(s).
error: OSS: SNDCTL_DSP_GETCAPS failed /dev/dsp
Illegal instruction

I've no idea about the MIDI devices, this is not my field of expertise; nor do I know about the /dev/dsp problem.

Thye Illegal instruction is not a good one though; it probably means that one of the libs or the pd app itself has been compiled using ARM5 (rather than ARM4 which the 5500 uses). If it's pd then it'll need to be recompiled, if it's the libs then I'd recommend going for the oldest versions available on the pages I linked above (I used the newest versions).


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Trying to get puredata installed on 5500
« Reply #6 on: September 29, 2004, 09:40:06 am »
Re-read the pd page and the author shows a pic of it running an a SA device (so he says), so I presume it's the libs. Will give it another go this evening with the oldest libs I could download.

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Trying to get puredata installed on 5500
« Reply #7 on: September 29, 2004, 01:13:48 pm »
pd looks like it's ARM4, the libs were the problem.

I've got further now, but it requires tcl/tk >=8.4, and I downloaded 8.3.3.

I'm getting an undefined symbol error for XOpenIM

I presume the old libs are causing this.

Time to try again...


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Trying to get puredata installed on 5500
« Reply #8 on: September 29, 2004, 01:27:17 pm »
Nope, back to the illegal instruction business again.

I'll give it a go on my C750 (XQt) and see whether it goes any further.

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

projekt

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Trying to get puredata installed on 5500
« Reply #9 on: September 29, 2004, 05:56:47 pm »
cool.

PD is a mixture of midi/sound synthesis. You can control your external synthesizers with it or create oscillators to play tones then send them through different routes and mess things up in fun ways.   The midi aspect can also be used with an internal midi soundset. on windows you have the Microsoft GS Synth. All the old nintendo games and games like Doom and such of that time used midi to playback files because entire midi songs could be well under 30k. I think on the nintendo it was even less because they just looped a few bars over and over.   There isa library called libSDL that you could install to get midi to work to play your scummVM games or that port of doom they have for the Z.  I think if the lib was insalled it might clear up at least half of that midi error message, since you know would have a midi output.

Anyways here a link to the two libraries on our beloved software index

http://www.killefiz.de/zaurus/showdetail.php?app=448
http://www.killefiz.de/zaurus/showdetail.php?app=1347

Now what about the dev/dsp problem.  Hrm, it looks to me like pd is having troubles opening up the soundcard, and determining what to set the sample rate at and things like that.  I dunno the work around.  It might be a recompile thing,  I don't know.   y CF card will be hear I think by next monday so I will be able to do this with you. Thanks for all your time so far

this is all so exiting.

j.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Trying to get puredata installed on 5500
« Reply #10 on: September 30, 2004, 01:10:21 pm »
Curiously enough, I still get the illegal instruction error running on my C750.

This is rather odd. Any ideas?

I somehow think tk & tcl will have to be re-compiled.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

projekt

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Trying to get puredata installed on 5500
« Reply #11 on: September 30, 2004, 03:46:01 pm »
sounds like a real pain in the rear  

are you saying you got the libSDL up and working as well?

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Trying to get puredata installed on 5500
« Reply #12 on: September 30, 2004, 04:55:44 pm »
No I didn't try SDL, I just tried the same (pd & tk & tcl) as I'd tried on my 5500, and I get the same error which is odd.

There may be other tk/tcl ipks out there (it may be in oe for all I know!)


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

terrorphile

  • Newbie
  • *
  • Posts: 44
    • View Profile
Trying to get puredata installed on 5500
« Reply #13 on: October 15, 2004, 04:47:14 am »
i didnt think i would find a pd thread on here
i guess everyone is past using trackers now  
this looks very interesting too
so did you guys get it working?
i would really like to be able to get pd working on my 5500 too
ive been trying to get a tracker in it for the past week
so i could make some oldskool jungle -but every route seemed to lead to a dead end so far.
anyway i would like to see if you did get this working because i also think it would be really nice to be able to use the zaurus live

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Trying to get puredata installed on 5500
« Reply #14 on: October 15, 2004, 06:54:07 am »
No, it looks like tk/tcl will need to be re-compiled for the Z.

I'm not sure whether these are in OE yet, this is the best bet imo.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva