You are not logged in.

#1 2009-04-16 12:47:46

ignus
Member
Registered: 2009-04-14
Posts: 29

[SOLVED] Dwarf Fortress on 64 bit Arch

I'm trying to run the Linux binary of Dwarf Fortress on x86_64.

When I run the executable, I get this error:

error while loading shared libraries: libtiff.so.4: cannot open shared object file: No such file or directory

Installed 32-bit libraries:

lib32-gtk2
lib32-sdl
lib32-libtiff

Seems a screwup with a missing libtiff.so.4: http://bbs.archlinux.org/viewtopic.php?id=45393

edit: downloaded libtiff 4 for i386. The game starts now, but produces garbled output and a load of "elf class" errors:

(dwarfort.exe:6546): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libubuntulooks.so: wrong ELF class: ELFCLASS64

(dwarfort.exe:6546): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: wrong ELF class: ELFCLASS64

(dwarfort.exe:6546): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64

(dwarfort.exe:6546): Pango-WARNING **: Failed to load Pango module '/usr/lib/pango/1.6.0/modules/pango-basic-fc.so' for id 'BasicScriptEngineFc'

(dwarfort.exe:6546): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64

(dwarfort.exe:6546): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64

(dwarfort.exe:6546): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64

(dwarfort.exe:6546): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64

etc. etc.

Seems it just doesn't work with bit 64?

Last edited by ignus (2009-06-27 12:03:51)

Offline

#2 2009-04-16 13:48:00

Kilz
Member
Registered: 2008-03-01
Posts: 140

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

ignus wrote:
(dwarfort.exe:6546): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libubuntulooks.so: wrong ELF class: ELFCLASS64

(dwarfort.exe:6546): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: wrong ELF class: ELFCLASS64

(dwarfort.exe:6546): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64

(dwarfort.exe:6546): Pango-WARNING **: Failed to load Pango module '/usr/lib/pango/1.6.0/modules/pango-basic-fc.so' for id 'BasicScriptEngineFc'

(dwarfort.exe:6546): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64

(dwarfort.exe:6546): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64

(dwarfort.exe:6546): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64

(dwarfort.exe:6546): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64

etc. etc.

Seems it just doesn't work with bit 64?

Each of those warnings are pointing to some 32bit library that it cant find. Its telling you that the one it is finding is 64bit so it cant use it. If you are using a multilib setup (I assume you are because of the packages you point to) its possible to add those 32bit libraries, but it may be a manual placement.

Last edited by Kilz (2009-04-16 13:49:22)


I trust Microsoft about as far as I can comfortably spit a dead rat.
Cinnamon is a wonderful desktop
"Faith is the substance of things hoped for, the evidence of things not seen."

Offline

#3 2009-04-16 17:01:28

ignus
Member
Registered: 2009-04-14
Posts: 29

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

Thanks for the reply. Just posting this for people with the same problem: I already had lib32-pango installed, but it turned out I needed to change the env variable to let it point to the pango config file, as it says here; http://wiki.archlinux.org/index.php/Usi … _on_Arch64.

I now get this error though;

GPU unable to accomodate texture catalog. Retry without graphical tiles, update your drivers, or better yet update your GPU.

Offline

#4 2009-05-10 05:01:56

camphor
Member
Registered: 2009-03-01
Posts: 32

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

ignus wrote:

Thanks for the reply. Just posting this for people with the same problem: I already had lib32-pango installed, but it turned out I needed to change the env variable to let it point to the pango config file, as it says here; http://wiki.archlinux.org/index.php/Usi … _on_Arch64.

I now get this error though;

GPU unable to accomodate texture catalog. Retry without graphical tiles, update your drivers, or better yet update your GPU.

Sorry for bumping a pretty old thread, but I've managed to correct the libtiff error (or at least stop it from occuring) by updating the DF's library search path to /usr/lib/. This takes care of that error, but brings up another to deal with. Now SDL is nowhere to be found.

./dwarfort.exe: error while loading shared libraries: libSDL_image-1.2.so.0: wrong ELF class: ELFCLASS64

I may try out the libSDL included with the game-files early in the morning, but I'm exhausted now. Has anyone had any luck with this game?

Offline

#5 2009-05-12 02:14:21

Peterix
Member
Registered: 2008-05-05
Posts: 30

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

Yes. It runs quite well. I had to create some sdl packages for it though. Nothing hard, just messing with PKGBUILDs from similar packages and makepkg.

I think it was lib32-sdl_image or some such thing. Rest is from aur or binary repos (archlinux.fr, etc.)

Last edited by Peterix (2009-05-12 02:17:04)

Offline

#6 2009-06-21 21:03:07

ignus
Member
Registered: 2009-04-14
Posts: 29

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

Could you please be a more specific? I'd really want to get DF running hmm

A shame that the DF Arch package just gives me the same error... hmm

Offline

#7 2009-06-21 23:02:43

Pnevma
Member
Registered: 2008-04-11
Posts: 112

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

Did you try bin32-dwarffortress?

Offline

#8 2009-06-22 18:47:23

ignus
Member
Registered: 2009-04-14
Posts: 29

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

Yes. The same thing happens. I get a load of these errors:

(dwarfort.exe:6284): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64

and when I try to start, it gives me an error, which is unreadable. The game doesn't start. I have lib32-pango installed.

Offline

#9 2009-06-22 23:55:45

Pnevma
Member
Registered: 2008-04-11
Posts: 112

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

You can get rid of the pango related errors and that error box by setting the WINDOWED option to YES or NO in /opt/df_linux/data/init/init.txt - those errors are all related.

I updated the bin32-dwarffortress package a week ago to automatically do that, but only if it's the users first time installing. Try removing it and then installing it again with pacman (or do what I said above).

But either way, the game should still run with the windowed option set to prompt... the box that pops up is just asking you if you want to run in windowed or fullscreen mode.

Let me know what what other errors you get once the WINDOWED option is set to YES/NO.

Last edited by Pnevma (2009-06-22 23:57:41)

Offline

#10 2009-06-23 01:04:13

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

EDIT: Nvm. Post #3 already mentioned this, I just overlooked it wink

I ran into something like those Pango and GTK ELF errors before, and solved them using the advice int he last area of that page of the wiki.. a different way to get rid of them might be to start the game via

GTK_PATH=/opt/lib32/usr/lib/gtk-2.0/ PANGO_RC_FILE="/opt/lib32/config/pango/pangorc" /path/to/the/game

Last edited by FrozenFox (2009-06-23 01:10:35)

Offline

#11 2009-06-23 08:47:26

ignus
Member
Registered: 2009-04-14
Posts: 29

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

Pnevma wrote:

You can get rid of the pango related errors and that error box by setting the WINDOWED option to YES or NO in /opt/df_linux/data/init/init.txt - those errors are all related.

I updated the bin32-dwarffortress package a week ago to automatically do that, but only if it's the users first time installing. Try removing it and then installing it again with pacman (or do what I said above).

But either way, the game should still run with the windowed option set to prompt... the box that pops up is just asking you if you want to run in windowed or fullscreen mode.

Let me know what what other errors you get once the WINDOWED option is set to YES/NO.

I get a "GL error" which is unreadable - all the letters are boxes. The game does not start. Console oputput gives a lot of "PANGO warnings":

(dwarfort.exe:4833): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64

Edit: Okay, fixed:

FrozenFox wrote:

GTK_PATH=/opt/lib32/usr/lib/gtk-2.0/ PANGO_RC_FILE="/opt/lib32/config/pango/pangorc" /path/to/the/game

This helped, but I needed to install lib32-fmodex first. Now I get the following error:

GPU unable to accomodate texture catalog. Retry without graphical tiles, update your drivers, or better yet update your GPU.

Graphical tilesets are of course OFF mad

Last edited by ignus (2009-06-23 08:59:38)

Offline

#12 2009-06-23 11:49:18

Pnevma
Member
Registered: 2008-04-11
Posts: 112

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

Do you have a graphics card? You need to install lib32-nvidia-utils if you have a nvidia card. The post-install message should have said something like that.

Offline

#13 2009-06-23 22:49:38

ignus
Member
Registered: 2009-04-14
Posts: 29

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

I have an integrated Radeon HD 3200. I have tried DF both with the open source and with the Catalyst drivers.

Last edited by ignus (2009-06-23 22:50:00)

Offline

#14 2009-06-23 23:29:20

Pnevma
Member
Registered: 2008-04-11
Posts: 112

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

Well, I think you'll need lib32-catalyst-utils (in the AUR) if you use catalyst. But I've heard that those drivers don't work with the latest kernels (and that they generally suck). I'm not really sure what you'd need for the open source drivers... but from what I can tell, DF can't find your equivalent to lib32-nvidia-utils. That's the same error I would get if I didn't have lib32-nvidia-utils installed. I honestly don't know anything about ATI on linux. sad

I can't really offer much help beyond this.

Last edited by Pnevma (2009-06-27 16:55:58)

Offline

#15 2009-06-24 19:42:37

ignus
Member
Registered: 2009-04-14
Posts: 29

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

Thanks for your help. The catalyst drivers indeed do not work with the kernel, so there is nothing left for me to do but to wait until that gets fixed.

Offline

#16 2009-06-25 08:21:47

TheFlyingPengwyn
Member
Registered: 2009-06-25
Posts: 3

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

I've been able to get df working thanks to the info in this thread.

Ignus, I'm also using an ati card (a Radeon HD 4870) and I had no problems installing lib32-catalyst-utils (apart from the usual dependancy issues). I'm using the vanilla arch kernel package and have never had problems getting the latest catalyst drivers to run (however this might be only because I've only installed Arch in the last couple of months).

What error are you getting with your drivers and the kernel?

If the open source drivers are working fine for you, then maybe you only need to reinstall the lib32-libgl drivers or something similar. In my case, lib32-libgl being installed was actually the problem as they are not compatible with the catalyst drivers (hence requiring lib32-catalyst-utils instead).

Offline

#17 2009-06-27 12:03:30

ignus
Member
Registered: 2009-04-14
Posts: 29

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

Thanks to everyone who helped! I can run DF now!

The Catalyst driver had some issues with the new kernel, and it wouldn't install at all. I tried again today, and suddenly everything works. Also, previously I was not able to start X, not sure what changed but it works now.

Last edited by ignus (2009-06-27 14:48:16)

Offline

#18 2009-07-18 18:30:09

fabioamd87
Member
Registered: 2008-11-22
Posts: 128

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

libfmodex is an audio engine, what does this mean with all?

Offline

#19 2009-09-16 22:16:04

sqwishy
Member
Registered: 2009-02-07
Posts: 3

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

I was getting the following error:
>GPU unable to accomodate texture catalog. Retry without graphical tiles, update your drivers, or better yet update your GPU.

I use an intel 4500 or something. And after removing xf86-video-intel, installing xf86-video-intel-newest, and rebooting I can now play with my dorfs. big_smile

Offline

#20 2009-09-17 20:21:37

ignus
Member
Registered: 2009-04-14
Posts: 29

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

I have taken over the lib32-dwarffortress package in AUR and updated it to d16 big_smile

Offline

#21 2010-02-28 21:54:27

eNTi
Member
Registered: 2006-04-30
Posts: 109

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

sorry for digging in (not so old) graves, but is there a way to compile dwarf fortress against 64bit libs?

./dwarfort.exe: error while loading shared libraries: libpng12.so.0: wronglass: ELFCLASS6
nt@eNTi $ yaourt --aur -Qs png
community/lib32-libpng 1.4.0-2 (lib32)
     A collection of routines used to create PNG format graphics files
extra/libpng 1.4.0-2 
     A collection of routines used to create PNG format graphics files
local/libpng12 1.2.40-1 
     A collection of routines used to create PNG format graphics files

so i guess, i'd need lib32-libpng 1.2 or something? compiling it natively would be so much easier really... i wonder if anyone has ever thought of writing a makefile for that game.

Offline

#22 2010-03-01 01:08:25

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: [SOLVED] Dwarf Fortress on 64 bit Arch

If you have any other issues with the package, please feel free to come to #archlinux-gaming or to http://archlinux-gaming.org. I maintain the package and I'd be glad to try to help.

Offline

Board footer

Powered by FluxBB