Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: DWARF FORTRESS 0.31.06+Linux  (Read 7391 times)

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #15 on: June 12, 2010, 03:44:49 pm »

No need to change init.txt, other than the .png to .bmp bit. It reads the mouse cursor image regardless of whether the mouse picture is turned on or not.

I should probably do something about that.
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

george_russian

  • Bay Watcher
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #16 on: June 12, 2010, 03:56:26 pm »

How many times i should say this is NOT ubuntu and aptget do not update my programs:
Code: [Select]
root@bt:~# apt-get update
Hit http://***
Hit http://***
Hit http://***
Hit http://***
Hit http://***
Hit http://***
Hit http://***
Hit http://***
Reading package lists... Done
root@bt:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  openvas-client openvas-libraries openvas-menu ***
  ***-common
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
And this is NOT problem.
What exactly i need to do?
Logged

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #17 on: June 12, 2010, 04:32:32 pm »

Installing a functional libSDL_image would help.
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

mkavanagh

  • Bay Watcher
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #18 on: June 12, 2010, 06:26:27 pm »

How many times i should say this is NOT ubuntu and aptget do not update my programs:
Code: [Select]
root@bt:~# apt-get update
Hit http://***
Hit http://***
Hit http://***
Hit http://***
Hit http://***
Hit http://***
Hit http://***
Hit http://***
Reading package lists... Done
root@bt:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  openvas-client openvas-libraries openvas-menu ***
  ***-common
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
And this is NOT problem.
What exactly i need to do?
Don't be obnoxious - you directly said that you use Ubuntu 8.10, then you said it's not completely ubuntu, then you made a post that barely made sense at all. You are not understood because you are not making yourself understandable - that's your problem, not everyone else's.

You have not clarified whether you use Ubuntu with your own software installed or a derivative (e.g. Kubuntu, although Kubuntu would be equally unlikely to ship an utterly crippled SDL_Image). If you are using Ubuntu with your own installations of software, at some stage you have overwritten your SDL_Image libraries with a version compiled without PNG support. You will need to correct this by reinstalling the original Ubuntu SDL_Image package or compiling a new version that supports PNGs - if you are unwilling to do the former then you should be expected to be capable of the latter. If you are using someone else's derivative of Ubuntu, you should make them aware that they have broken SDL_Image and ask them for a fix.

Dwarf Fortress is working entirely correctly - it is not remotely reasonable or correct for a distribution's SDL_Image to be compiled without PNG support.

edit: twisted wordwrong
« Last Edit: June 12, 2010, 06:28:27 pm by mkavanagh »
Logged

DalGren

  • Bay Watcher
  • Arcade survivor.
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #19 on: June 12, 2010, 07:20:02 pm »

SDL_Image in Ubuntu not supporting PNG? That's stupid, I have been using that library for loading PNG files in my own games since 8.4 and it did support PNG at the time, and probably from even before. Precisely the use of that library is to load PNG files, mostly (yeah BMP too, but it's ancient and few coders use it nowadays).
No update or upgrade needed, the problem is somewhere else, and the error is telling it right away. He is missing files or misplaced them. And he didn't change the files to BMP, he changed the filenames in the init file to .bmp, so maybe he installed over an older DF install and he's actually loading older BMP files in there.
Don't mislead the guy anymore, it's obvious he isn't a native English speaker and you made him do more turns than necessary out of not reading his post (and despite grammar, the copypaste text should tell you enough).
Occam's razor, guys. Linux is a mess but not everything requires compiling a kernel.
Logged
I often play devil's advocate for the sake of debate. Don't take it personally.

macdonellba

  • Bay Watcher
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #20 on: June 12, 2010, 07:28:57 pm »

SDL_Image in Ubuntu not supporting PNG? That's stupid, I have been using that library for loading PNG files in my own games since 8.4 and it did support PNG at the time, and probably from even before. Precisely the use of that library is to load PNG files, mostly (yeah BMP too, but it's ancient and few coders use it nowadays).
No update or upgrade needed, the problem is somewhere else, and the error is telling it right away. He is missing files or misplaced them. And he didn't change the files to BMP, he changed the filenames in the init file to .bmp, so maybe he installed over an older DF install and he's actually loading older BMP files in there.
Don't mislead the guy anymore, it's obvious he isn't a native English speaker and you made him do more turns than necessary out of not reading his post (and despite grammar, the copypaste text should tell you enough).
Occam's razor, guys. Linux is a mess but not everything requires compiling a kernel.
Given Baughn developed the code that's throwing that error, I suspect he know's what he's talking about. Also, since sdl_image loads the tiff, jpeg, and png image loaders via libdl, a missing libpng could be the cause of this problem.
Logged

DalGren

  • Bay Watcher
  • Arcade survivor.
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #21 on: June 12, 2010, 08:41:09 pm »

Given Baughn developed the code that's throwing that error, I suspect he know's what he's talking about. Also, since sdl_image loads the tiff, jpeg, and png image loaders via libdl, a missing libpng could be the cause of this problem.

But such an environment cannot exist within that release of Ubuntu, unless he's writing his posts from Lynx, he must have PNG libraries in the system. If he uninstalled it accidentally, things would break too much and he wouldn't be posting here...that library is a dependency of GTK, so no Firefox or Chrome...or Gnome. And I think QT too, so no KDE either...and I am fairly positive most WMs like fluxbox or so also depend on libpng loading png files. It's too extreme of a case, and I am confident sdl_image hasn't modified anything enough to break things from 1.2 to 1.2.10.
(Note the adjective "stupid" is about SDL_Image in Ubuntu not supporting PNG, not about Baughn being stupid)
Although then again I just realized... "not completely ubuntu" *runs and hides*
Logged
I often play devil's advocate for the sake of debate. Don't take it personally.

mkavanagh

  • Bay Watcher
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #22 on: June 12, 2010, 08:49:29 pm »

SDL_Image in Ubuntu not supporting PNG? That's stupid, I have been using that library for loading PNG files in my own games since 8.4 and it did support PNG at the time, and probably from even before. Precisely the use of that library is to load PNG files, mostly (yeah BMP too, but it's ancient and few coders use it nowadays).
No update or upgrade needed, the problem is somewhere else, and the error is telling it right away. He is missing files or misplaced them. And he didn't change the files to BMP, he changed the filenames in the init file to .bmp, so maybe he installed over an older DF install and he's actually loading older BMP files in there.
Don't mislead the guy anymore, it's obvious he isn't a native English speaker and you made him do more turns than necessary out of not reading his post (and despite grammar, the copypaste text should tell you enough).
Occam's razor, guys. Linux is a mess but not everything requires compiling a kernel.

Not sure what you're chatting about! What files do you think are missing? It's not the PNG files since his first post shows the PNG that raised the error is actually there, but failing to load: ergo, SDL_Image is not capable of loading PNG files.

It would be helpful for the original poster to actually tell us what system he is using. Judging from the censorship of the apt-get update output it may be that the OP actually wishes to conceal the distribution he is using - that's fine, except when you want people to support your software configuration.
Logged

DalGren

  • Bay Watcher
  • Arcade survivor.
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #23 on: June 13, 2010, 12:48:50 am »

Never mind, I misread something earlier and got the wrong context, my bad entirely.
Although his distro must be custom if SDL_image fails, anyway. It shouldn't happen.
Logged
I often play devil's advocate for the sake of debate. Don't take it personally.

george_russian

  • Bay Watcher
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #24 on: June 13, 2010, 04:01:22 am »

I has install sdl-image_1.2.10-2 but df still not working...
Logged

Thief^

  • Bay Watcher
  • Official crazy person
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #25 on: June 13, 2010, 05:32:00 am »

Maybe macdonellba is right and you need to install libpng.
Logged
Dwarven blood types are not A, B, AB, O but Ale, Wine, Beer, Rum, Whisky and so forth.
It's not an embark so much as seven dwarves having a simultaneous strange mood and going off to build an artifact fortress that menaces with spikes of awesome and hanging rings of death.

Baughn

  • Noble Phantasm
  • The Haruhiist
  • Hiss
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #26 on: June 13, 2010, 08:40:08 am »

The DF code that produces the "file not found" dialog only checks whether IMG_Load returned NULL, not whether the file is actually accessible or not.

So yes, if you get that error and the file is there, it's because your SDL_image is unable to read PNGs.

Do keep in mind that you need the 32-bit versions of SDL_image and libpng, if you're on a 64-bit system.
Logged
C++ makes baby Cthulhu weep. Why settle for the lesser horror?

george_russian

  • Bay Watcher
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #27 on: June 13, 2010, 01:06:32 pm »

Thank you all for you advises.I have install libpng3 and df works good!  :D
And sorry for my cripple english.
Logged

shvedsky

  • Escaped Lunatic
    • View Profile
Re: DWARF FORTRESS 0.31.06+Linux
« Reply #28 on: September 19, 2010, 08:23:42 am »

I had the same problem on my 64-bit Gentoo Linux system.
Dwarf Fortress seems to need 32-bit libraries.  I installed and upgraded 32-bit SDL libraries, and it solved the problem.
Logged
Pages: 1 [2]