LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-14-2005, 08:39 AM   #1
ZakuSage
Member
 
Registered: Apr 2005
Location: Nova Scotia, Canada
Distribution: Vector Linux
Posts: 43

Rep: Reputation: 15
ZSNES compiling error


I downloaded ZSNES via apt a little while ago after being dissatisfied with the Linux port of SNES9x (mostly due to the inability to map your own keyboard settings). When I ran ZSNES, it was so ridiculously slow compared to it's Windows version and especially so considering it's written in assembly. I figured it might just be the debian compiling of it or something, so I downloaded the source code to try to compile it myself. The install.txt file that comes with it says I need and need to do the following:

Code:
Linux/SDL/POSIX port:
I assume the standard development tools are installed (gcc, make, ...)
You'll also need : 
- SDL (Simple DirectMedia Layer) : check www.libsdl.org to grab SDL 1.2.0 or
                                   later. If you are using rpm packages, don't
                                   forget the -devel package.
- NASM v0.98.39 : http://nasm.sf.net/
- zlib : http://www.info-zip.org/pub/infozip/zlib/
                                   it is probably already installed on your 
                                   system, maybe you are just missing the 
                                   development headers. Check in the 
                                   packages available with your distribution 
                                   or go to the page above
- libpng : http://www.libpng.org/
                    You might also need libpng, ZSNES will compile without
                    PNG support but I have found doing so to make ZSNES
                    unstable for some weird reason.  If you don't have
                    libpng, either get it and install it or pass the
                    --without-png option to the 'configure' script.

Then to build the executable, go to the src directory and type:
sh ./autogen.sh && gmake && gmake install

Note: you require root to install zsnes to the the default (/usr/local/*) 
directory

Also Note: libpng (optional) needs to be recent, or zsnes will not use it
I have all these and I did the instructions, but no dice it stops on configuring. Here's the output:

Code:
Generating build information using aclocal and autoconf...
./autogen.sh: line 6: sdl-config: command not found
aclocal: couldn't open directory `/share/aclocal': No such file or directory
configure.in:27: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:61: error: possibly undefined macro: AM_PATH_SDL
configure.in:62: error: possibly undefined macro: AM_PATH_ZLIB
configure.in:65: error: possibly undefined macro: AM_PATH_LIBPNG
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for nasm... nasm
checking for a BSD-compatible install... /usr/bin/install -c
./configure: line 2919: syntax error near unexpected token `1.2.0,,AC_MSG_ERROR'
./configure: line 2919: `AM_PATH_SDL(1.2.0,,AC_MSG_ERROR(SDL >= 1.2.0 is required))'
I'm not quite sure what it's saying is wrong. Any ideas?
 
Old 08-14-2005, 08:14 PM   #2
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
The second line of the error message says sdl-config was not found. Are you sure you have the sdl-devel package installed? And if so, is sdl-config in your PATH?
 
Old 08-15-2005, 10:10 AM   #3
ZakuSage
Member
 
Registered: Apr 2005
Location: Nova Scotia, Canada
Distribution: Vector Linux
Posts: 43

Original Poster
Rep: Reputation: 15
Surprisingly, I didn't have it. Thanks for the help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Zsnes dudeman41465 Linux - Software 3 09-30-2005 02:13 AM
zsnes windowsrefugeeX Linux - Software 8 01-14-2005 12:37 AM
ZSNES error when switching to Open GL mode kaega2 Linux - Software 0 09-01-2004 09:36 PM
Segmentation Fault when compiling ZSNES downinthemine Linux - Software 27 07-19-2004 03:47 AM
Zsnes Ashandarel Linux - Software 4 04-27-2003 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration