[ZSNES 1.50] Configure can't find zlib

Found a bug? Please report it, but remember to follow the bug reporting guidelines.
Missing a sane feature? Let us know!
But please do NOT request ports to other systems.

Moderator: ZSNES Mods

Post Reply
Burbuja

[ZSNES 1.50] Configure can't find zlib

Post by Burbuja »

Hello. I am trying to install Zsnes 1.50 on Mandriva 2007 (kernel 2.6.17) and it won't let me.

Configure says:
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib - version >= 1.2.3... no
configure: error: zlib >= 1.2.3 is required

But zlib *is* installed, according to the Mandriva package manager.

I tried downloading and installing zlib, and installed it under /usr/local, but zsnes' configure still can't find it. The command I am using is:

Code: Select all

./configure --with-zlib-prefix=/usr/local/
Any ideas? Thanks.
CyberBotX
Lurker
Posts: 109
Joined: Sun Jan 30, 2005 10:06 pm
Location: Wouldn't you like to know?
Contact:

Post by CyberBotX »

Just because zlib is installed doesn't mean it's the latest version. Check zlib.h and see if it says "1.2.3" for ZLIB_VERSION. If not, there's your problem.
[url=http://www.cyberbotx.com/]SNES Sprite Animations[/url], made by an Insane Killer Robot.
I'm a computer programmer (in C++) and a future game designer.
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

Ah, I didn't notice that initially. That does sound about right. If your distro doesn't have 1.2.3 or has problems with it, blame your distro and tell them to fix it. Alternatively, you can grab the source from the zlib website and compile it.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

And you need the development headers, not just the library itself.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Burbuja

Post by Burbuja »

I have downloaded and compiled the sources. The lib was installed under /usr/local (/usr/local/libz.a), and the headers are at /usr/local/include/zlib.h.

The version is indeed 1.2.3, both the version installed by Mandriva (I also installed the -dev package) and the version I installed by hand.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

I'd put the proper files in the proper locations.

libz.a and libz.so in /usr/lib and zlib.h in /usr/include.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Post Reply