[LAD] Animata on 64bit architecture

Ralf Mardorf ralf.mardorf at alice-dsl.net
Wed Sep 23 05:25:47 UTC 2009


nescivi wrote:
> [snip]
> I tried getting it right, and got it to build on 64bit, but then got seg 
> faults as I wanted to work with layers.
>
> I ended up building it in a 32bit chroot instead (which works fine).
>
> [snip]


Hi :)

this isn't really a howto. I guess I made some mistakes, but anyway, 
Animata might be okay. maybe this can help someone else and maybe 
someone else can help me ;).

I'll do a last cross-posting, because this 32bit vs 64bit issue should 
be interesting for this 3 mailing lists.

I tried to install 4 32bit applications to my 64 Studio/ Ubuntu Hardy.
Synaptic is installed, it runs, but dosen't work.
LaCie LightScribe Labeler couldn't be installed.
LightScribe Simple Labeler couldn't be installed, but I tried this one 
with Suse and it's fine on my Suse installs at 64bit.
Btw. I suspect to know what's going wrong, I did something different for 
Animata.
Animata could be compiled, installed and it's running, but I didn't 
tested if it's really fine.

Maybe someone is able to notice what I might have ignored, while I setup 
32bit chroot half asleep.

GParted before 32bit chroot for my 64 Studio 3.0-beta3:

Label studio3.0
Size 6.09 GiB
Used 4.24 GiB
Unused 1.85 GiB

In this case the better way might be to resize the partition before 
setting up the chroot. This must be done from another system, that's why 
I setup the chroot first.

$ sudo -i
# synaptic

Reload and install:

dchroot
debootstrap

# mkdir /chroot
# gedit /etc/schroot/schroot.conf

Add this and replace the user name:

[hardy]
description=Hardy (hardy32)
location=/chroot
priority=3
groups=your_user_name,root
root-groups=root
aliases=default,unstable,ia32
personality=linux32
type=plain
run-exec-scripts=true
run-setup-scripts=true

# rm /etc/schroot/schroot.conf~

The base system installed successfully after 3:12 minutes by:

# debootstrap --arch i386 hardy /chroot/ 
http://de.archive.ubuntu.com/ubuntu/

Gparted now:

Label studio3.0
Size 6.09 GiB
Used 4.44 GiB
Unused 1.65 GiB

# cp /etc/apt/sources.list /chroot/etc/apt/sources.list
# chroot /chroot
# apt-get update

Always ignore warnings about verification etc. and confirm.

# apt-get upgrade

When asked, just enter the encoding of the console.
Ignore:

Processing triggers for initramfs-tools ...
Errors were encountered while processing:
console-setup
E: Sub-process /usr/bin/dpkg returned an error code (1)

# exit
# cp /etc/passwd /chroot/etc/
# cp /etc/shadow /chroot/etc/
# cp /etc/group /chroot/etc/
# cp /etc/sudoers /chroot/etc/
# cp /etc/hosts /chroot/etc/
# cp -r /usr/lib/locale/* /chroot/usr/lib/locale/
# mkdir /chroot/media/cdrom0
# gedit /etc/fstab

Add this:

/home /chroot/home none bind 0 0
/tmp /chroot/tmp none bind 0 0
/dev /chroot/dev none bind 0 0
/proc /chroot/proc proc defaults 0 0
/media/cdrom0 /chroot/media/cdrom0 none bind 0 0

# mount -a

Keep in mind that you've got a backup of the original fstab by /etc/fstab~.

# gedit

Copy and paste this:

#!/bin/bash
/usr/bin/dchroot -d $1

Save it as:

/usr/local/bin/do_chroot

# chmod 755 /usr/local/bin/do_chroot

That's it. Gparted at this point:

Label studio3.0
Size 6.09 GiB
Used 4.52 GiB
Unused 1.57 GiB

Install 32bit application, example #1, Synaptic for 32bit. Open a 
terminal and run $ dchroot -d, it should look similar:

spinymouse-sudo at 64studio:~$ dchroot -d
I: [hardy-81bb8cf6-4656-4198-943b-fa461c7d100b chroot] Running shell: 
‘/bin/bash’
(hardy)spinymouse-sudo at 64studio:~$

$ sudo -i
# apt-get install synaptic
# ln -s /usr/bin/synaptic /usr/local/bin/synaptic32

To make the difference of the exit commands clear:

(hardy)root at 64studio:~# exit
logout
(hardy)spinymouse-sudo at 64studio:~$ exit
exit
spinymouse-sudo at 64studio:~$ sudo -i
root at 64studio:~# ln -s /usr/local/bin/do_chroot /usr/local/bin/synaptic32

Now you can launch Synaptic for 64bit and Synaptic for 32bit:

For my system this isn't fine:

$ sudo synaptic32

But this is fine for 32bit:

$ dchroot -d sudo synaptic

For 64bit it's still:

$ sudo synaptic

Install 32bit application, example #2, LaCie LightScribe Labeler:

$ cd Desktop
$ wget 
http://www.lacie.com/download/drivers/lightscribe-1.8.15.1-linux-2.6-intel.rpm 
http://www.lacie.com/download/drivers/4L-1.0-r6.i586.rpm
$ dchroot -d sudo synaptic

Reload and ignore warnings because of keys. Then, by ignoring missing 
graphics, install: alien

For me Synaptic doesn't work, but this is fine:

$ dchroot -d sudo apt-get install alien
$ dchroot -d sudo alien 4L-1.0-r6.i586.rpm 
lightscribe-1.8.15.1-linux-2.6-intel.rpm

The output:

I: [hardy-640a3f72-dfc1-400e-aa97-fe6612833770 chroot] Running command: 
“sudo alien 4L-1.0-r6.i586.rpm lightscribe-1.8.15.1-linux-2.6-intel.rpm”
4l_1.0-1_i386.deb generated
Warning: Skipping conversion of scripts in package lightscribe: postinst 
prerm
Warning: Use the --scripts parameter to include the scripts.
lightscribe_1.8.15.1-1_i386.deb generated

$ dchroot -d sudo dpkg -i lightscribe_1.8.15.1-1_i386.deb 4l_1.0-1_i386.deb

It doesn't work, because it seems to be not installed:

$ dchroot -d 4L-gui

$ sudo rm lightscribe* 4l*
$ sudo rm 4L*

Install 32bit application, example #3, LightScribe Simple Labeler:

$ wget 
http://download.lightscribe.com/ls/lightscribe-1.18.8.1-linux-2.6-intel.deb 
http://download.lightscribe.com/ls/lightscribeApplications-1.18.6.1-linux-2.6-intel.deb
$ dchroot -d sudo dpkg -i lightscribe-1.18.8.1-linux-2.6-intel.deb 
lightscribeApplications-1.18.6.1-linux-2.6-intel.deb

There's no:

chroot/opt/lightscribeApplications/SimpleLabeler/SimpleLabeler

$ rm lightscribe*

Install 32bit application, example #4, Animata:

I had a svn version in /usr/src/animata-read-only. I removed this version:

$ sudo rm -r /usr/src/animata-read-only

And got it again:

$ sudo -i
# cd /chroot/usr/src
# svn co http://animata.googlecode.com/svn/trunk/ animata-read-only
# cd /
# dchroot -d
# cd /usr/src/animata*
# apt-get install scons g++
# apt-get install libfltk1.1 libfltk1.1-dev
# apt-get install libgl1-mesa-dev
# apt-get install libglu1-mesa-dev
# scons
# exit
# exit
$ dchroot -d
$ cd /usr/src/animata-read-only/build
$ ./animata

Wow, Animata was running, but I didn't tested it and Synaptic was 
running too, but not fine. Anyway, Animata made a better dent, than 
Synaptic did.

GParted at the end:

Label studio3.0
Size 6.09 GiB
Used 4.72 GiB
Unused 1.37 GiB

Cheers,
Ralf



More information about the Linux-audio-dev mailing list