Configure script missing (Linux)

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
wertigon
Rookie
Posts: 46
Joined: Sat Aug 07, 2004 7:20 pm

Configure script missing (Linux)

Post by wertigon »

Hey, I was trying to compile the latest Zsnes (Aug 3 WIP release) but got stuck when I tried to write ./configure - it can't find it.

Running Debian unstable, and I've been able to compile other programs in the past... Someone forgot to put the tar archive together properly or?

And yes, I did go into the zsnes/src/ directory, it still doesn't find it.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

./autogen.sh
make

and optionally
make install
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
wertigon
Rookie
Posts: 46
Joined: Sat Aug 07, 2004 7:20 pm

Post by wertigon »

The autogen script doesn't work as expected, either. :(

When I write the command, it complains about aclocal not existing, then shrugs and makes the configure script anyways, then runs it, like this:

Code: Select all

wertigon@highwind:~/downloads/zsnes/src$ ./autogen.sh 
Generating build information using aclocal and autoconf...
./autogen.sh: line 6: aclocal: command not found
autoconf: Undefined macros:
configure.in:26:AC_MSG_ERROR(You need NASM installed to compile ZSNES)
configure.in:52:                AC_MSG_ERROR(This Target is Not Supported)
configure.in:60:AM_PATH_SDL(1.2.0,,[AC_MSG_ERROR(SDL >= 1.2.0 is required)])
configure.in:61:AM_PATH_ZLIB(1.1.0,,[AC_MSG_ERROR(ZLIB >= 1.1.0 is required)])
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  -pipe -I. -Wall -I/usr/local/include -I/us      
r/include  -L/usr/local/lib -L/usr/lib) works... yes
checking whether the C compiler (gcc  -pipe -I. -Wall -I/usr/local/include -I/us      
r/include  -L/usr/local/lib -L/usr/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for nasm... nasm
checking for a BSD compatible install... /usr/bin/install -c
./configure: line 1053: syntax error near unexpected token `1.2.0,,AC_MSG_ERROR'
./configure: line 1053: `AM_PATH_SDL(1.2.0,,AC_MSG_ERROR(SDL >= 1.2.0 is require      
d))'
If I comment out the offending code in the configure script (that one + two more), it then looks like this:

Code: Select all

wertigon@highwind:~/downloads/zsnes/src$ ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  -pipe -I. -Wall -I/usr/local/include -I/usr/include  -L/usr/local/lib -L/usr/lib) works... yes
checking whether the C compiler (gcc  -pipe -I. -Wall -I/usr/local/include -I/usr/include  -L/usr/local/lib -L/usr/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for nasm... nasm
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for glGetError in -lGL... yes
checking for OpenGL... yes
checking if you want gdb friendly executable... no
checking which processor class to optimize for... 686
checking for ANSI C header files... yes
checking whether sys/types.h defines makedev... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h


ZSNES v1.36

./configure: line 2106: --version: command not found
SDL support                         Version 
NASM support                        NASM version 0.98.38 compiled on Apr  6 2004
ZLib support                        Version 
PNG support                       Disabled, library not found
OpenGL support                      Yes

The binary will be installed in /usr/local/bin

Configure complete, now type 'make' and pray.

wertigon@highwind:~/downloads/zsnes/src$ make
gcc  -pipe -I. -Wall -I/usr/local/include -I/usr/include -D__LINUX__   -DNO_PNG -D__OPENGL__ -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -s -march=pentiumpro -o chips/dsp1emu.o -c chips/dsp1emu.c
I fil inkluderad från chips/dsp1emu.c:21:
gblhdr.h:90:25: SDL.h: No such file or directory
make: *** [chips/dsp1emu.o] Error 1
I think it's because I haven't gotten that aclocal program. However, it seems to have been removed from the debian archive, and a quick search at Google gives nothing substantial. Is there an unofficial Zsnes WIP deb-repository I can use, or do I have to do this the hard way? ;)
parasyte
Rookie
Posts: 15
Joined: Sat Aug 14, 2004 3:46 pm
Location: usa
Contact:

Post by parasyte »

wertigon wrote:The autogen script doesn't work as expected, either. :(

When I write the command, it complains about aclocal not existing, then shrugs and makes the configure script anyways, then runs it, like this:



I think it's because I haven't gotten that aclocal program. However, it seems to have been removed from the debian archive, and a quick search at Google gives nothing substantial. Is there an unofficial Zsnes WIP deb-repository I can use, or do I have to do this the hard way? ;)
It looks like you don't have automake. Since you said you're on Debian, try 'apt-get install automake' and rerun autogen.sh
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

alocal is part of automake or autoconf or one of those families.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
wertigon
Rookie
Posts: 46
Joined: Sat Aug 07, 2004 7:20 pm

Post by wertigon »

Doooooh! I thought I had already installed automake, but it turns out I was wrong. Well, that solved it, compiles fine now. Thanks for the help!

Oh, and you might want to update the installation info to use ./autogen.sh instead... Just a thought. Again, thank you for taking the patience to help a confused debian-guy... ;)
Post Reply