Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not found: data/art/curses_square_16x16.png #36

Open
mattias opened this issue Oct 31, 2013 · 9 comments
Open

Not found: data/art/curses_square_16x16.png #36

mattias opened this issue Oct 31, 2013 · 9 comments

Comments

@mattias
Copy link

mattias commented Oct 31, 2013

Running Arch Linux and just found this script. it installs everything fine but when I try to run df I get the error in the title, and in terminal I also see: "libpng error: bad parameters to zlib"

If I install dwarffortress-phoebus or dwarffortress-ironhand from AUR I don't have this issue, df starts fine.

If I switch graphics set the error just changes to something like "Not found: data/art/Phoebus_16x16.png" instead...

I have no idea what's causing this. The png is there...

I can't be the first to get this? I see other people have something similar with "mouse.png", but this seems to be slightly different.

@ytterbium
Copy link
Contributor

I have had this problem.
To solve this, I think you can have 2 solutions :

  • compile the libgraphics.so from here, and remplace the old libgraphics.so by the new
  • or (copy of the installation page of the DF wiki) "edit the /data/init/init.txt file and set the game to use the BMP variants of the art files, instead of the default PNG"

@mattias
Copy link
Author

mattias commented Nov 1, 2013

Awesome, got it solved. After I compiled that and replaced the old libgraphics.so, I got this:
./libs/Dwarf_Fortress: /home/mattias/Games/df/df_linux/libs/libstdc++.so.6: version GLIBCXX_3.4.18' not found (required by /home/mattias/Games/df/df_linux/libs/libgraphics.so) ./libs/Dwarf_Fortress: /home/mattias/Games/df/df_linux/libs/libstdc++.so.6: versionCXXABI_1.3.5' not found (required by /home/mattias/Games/df/df_linux/libs/libgraphics.so)
./libs/Dwarf_Fortress: /home/mattias/Games/df/df_linux/libs/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/mattias/Games/df/df_linux/libs/libgraphics.so)

What I did to solve this was simply to delete df_linux/libs/libstdc++.so.6 so it would use system default instead. Dwarf Fortress is probably shipped with ancient libs. Now it runs!

@fhaust
Copy link

fhaust commented Dec 24, 2013

This should get linked somewhere in the "common issuses" section in the wiki ... took me ages to find.

@andrewd18
Copy link
Owner

There are two issues here. The first, being the BMP vs PNG issue. I'm having a hard time reproducing it on both of my Debian 64-bit boxes. I'll see what I can do.

The ancient libstdc++ issue should be resolved as of 0.5.4 where I rename the ancient lib during install and force the system lib. I didn't bother including it in the dependency check because the gcc check should pull it in.

@ytterbium
Copy link
Contributor

If you want to reproduce easily the bug, without installing arch, you can use manjaro : it share the same problem.

@Ramblurr
Copy link
Contributor

Experiencing this bug on Fedora 20 as well

Ramblurr added a commit to Ramblurr/df-lnp-installer that referenced this issue Apr 28, 2014
This makes ytterbium's unfunck additions work on Fedora (and presumably other
distros). Refs issue andrewd18#52 and andrewd18#36
@minexew
Copy link

minexew commented Apr 27, 2016

Still relevant on Fedora 23.

Underlying error seems to be as follows:

** (Dwarf_Fortress:11327): WARNING **: Pixbuf theme: Cannot load pixmap file /usr/share/themes/Adwaita/gtk-2.0/Buttons/button-default.png: Failed to load image '/usr/share/themes/Adwaita/gtk-2.0/Buttons/button-default.png': Fatal error in PNG image file: bad parameters to zlib

@andrewd18
Copy link
Owner

As per the big announcement on the front page, this repository is
unmaintained. I will not be fixing this bug.

I recommend you check out the pack being maintained at
http://lazynewbpack.com/linux

On Wed, Apr 27, 2016 at 4:24 PM, Minexew notifications@github.com wrote:

Still relevant on Fedora 23.

Underlying error seems to be as follows:

** (Dwarf_Fortress:11327): WARNING **: Pixbuf theme: Cannot load pixmap file /usr/share/themes/Adwaita/gtk-2.0/Buttons/button-default.png: Failed to load image '/usr/share/themes/Adwaita/gtk-2.0/Buttons/button-default.png': Fatal error in PNG image file: bad parameters to zlib


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#36 (comment)

@minexew
Copy link

minexew commented Apr 28, 2016

Sorry, I didn't realize this wasn't an official repository for DF.
This issue is still one of the top results when googling the error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants