Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO]Install JIT enabled 32bit e-uae on 64bit system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
woZa
Guru
Guru


Joined: 18 Nov 2003
Posts: 340
Location: The Steel City - UK

PostPosted: Sun Apr 13, 2008 3:12 pm    Post subject: [HOWTO]Install JIT enabled 32bit e-uae on 64bit system Reply with quote

Problem. e-uae on a 64 bit system is slow as JIT doesn't compile. Solution? Compile a 32bit JIT enabled version and install it into your 64bit environment.

1. Set up a 32bit chroot following the documentation here and chroot into it

2.
Code:
emerge xorg-x11
(needed as e-uae won't compile without libxkbfile.so - there is probably a simpler way to do it without installing the whole of xorg but as it only takes 30 mins or so to compile I didn't bother to look for it!)

3.
Code:
echo 'app-emulation/e-uae' >> /etc/portage/package.keywords
to get the latest version of e-uae

4.
Code:
echo 'app-emulation/e-uae {your use flags here}' >> /etc/portage/package.use
to set your use flags (I have X alsa dga sdl ncurses)

4.
Code:
emerge --buildpkgonly e-uae
to compile a binary 32bit package. This package will be placed in /usr/portage/packages - it was also placed in the same place in the 64bit environment but check it is there and if not copy it from the 32bit chroot to the same place in the 64bit environment.

5. exit 32bit chroot

6. Copy /usr/lib/libxkbfile.so.1.0.2 from 32bit chroot to /usr/lib32/ on the 64bit environment

7.
Code:
cd /usr/lib32 && ln -sf libxkbfile.so.1.0.2 libxkbfile.so


8.
Code:
echo 'app-emulation/e-uae' >> /etc/portage/package.keywords


9.
Code:
emerge -v app-emulation/e-uae
to install e-uae and pull in all the dependencies for e-uae

10.
Code:
e-uae
to run e-uae and configure and then save your ~/.uaerc file.

11. Quit e-uae and
Code:
emerge -vC app-emulation/e-uae
to remove the 64bit version of e-uae

12. Edit /etc/make.conf and comment out CHOST="x86_64-pc-linux-gnu" (or whatever your chost line is) and add CHOST="i686-pc-linux-gnu" and save the file.

13.
Code:
emerge --usepkgonly e-uae
to install the pre-built 32bit binary into the 64 bit environment

14. Change your /etc/make.conf file back to how it was before (change the chost line)

15. Fire up e-uae and enjoy the speed benefits of the JIT enabled version.

You can now delete your 32bit chroot if you want.

Check out AmiKit - they now have a linux version, which is nice!
_________________
A few months struggling with gentoo is better than a lifetime struggling with windoze!
Back to top
View user's profile Send private message
woZa
Guru
Guru


Joined: 18 Nov 2003
Posts: 340
Location: The Steel City - UK

PostPosted: Tue Apr 15, 2008 3:30 pm    Post subject: Reply with quote

If you want the gtk frontend for e-uae to function then you will have to

1. Merge e-uae in the 32bit chroot with the gtk use flag

2. Copy over the relevant gtk libs from the chroot to the lib32 dir of the 64bit environment

3. Copy all the pango modules from the chroot /usr/lib/pango/1.6.0/modules/ to /usr/lib32/pango/1.6.0/modules/ and copy /etc/pango/pango.modules from the chroot to 64bit

4. Edit the location of all the libs in the pango.modules file from /usr/lib/... to /usr/lib32/...
_________________
A few months struggling with gentoo is better than a lifetime struggling with windoze!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum