Linux compilation issue...

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
jaq
Rookie
Posts: 11
Joined: Sun Nov 14, 2004 6:13 am

Linux compilation issue...

Post by jaq »

I just downloaded the lastest WIP (Oct 24th) for linux and i'm trying to compile it but I'm having a few issues.

1. The instructions that came with the source don't mention the fact (or I might have overlooked it somewhere. Sorry if i did.) that you have to run ./autogen.sh or sh autogen.sh in my case. I had to sift through the forum a bit and finally found the answer here. Don't know if that has already been reported or not. If so, then feel free to ignore.

2. I run autogen.sh and it goes through its motions but gives me the following:

jaq@jaq:~/src/zsnes/src$ sh autogen.sh
Generating build information using aclocal and autoconf...
autogen.sh: line 1: sdl-config: command not found
autogen.sh: line 6: aclocal: command not found
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 nasm... nasm
checking for a BSD-compatible install... /usr/bin/install -c
./configure: line 2558: syntax error near unexpected token `1.2.0,,AC_MSG_ERROR'./configure: line 2558: `AM_PATH_SDL(1.2.0,,AC_MSG_ERROR(SDL >= 1.2.0 is required))'

It complains of needing a version of SDL greater than 1.2.0 and I have that (1.2.7-10 actually).I'm not sure if there's a variable missing or if a path isn't set right or what. I also see that at first it says it can't find sdl-config or aclocal. I'm not sure if they come as part of a different package or what. I'm not an expert with linux by any means but i would think that if those were required packages then the configure script would have stopped right there and let me know. I may also just be completely wrong about that. Let me know if I am. Oh and I'm running Debian Sarge on a Toshiba Satellite 2805-S402. Specs are as follows:

850MHz Pentium 3
384 MB RAM
Geforce 2 Go Video
20GB HD
Intel Sound Chip (dont remember the exact name off the top of my head...)

Hopefully I explained myself clearly enough. Thanks in advance for any help.
daPope
New Member
Posts: 3
Joined: Wed Oct 13, 2004 1:22 pm
Location: Germany/Netherlands
Contact:

Post by daPope »

Just have a look into the install.txt that comes along with zsnes.

check www.libsdl.org to grab SDL 1.2.0 or later. If you are using rpm packages, don't forget the -devel package.

I've had the same problem as you described. Installed the SDL-devel package and everything went fine.

Hope this helps.
...what? The land of the free? Whoever told you that is your enemy!
jaq
Rookie
Posts: 11
Joined: Sun Nov 14, 2004 6:13 am

Post by jaq »

Well I went and installed the sdl dev packages and tried again and got this:

jaq@jaq:~/src/zsnes/src$ sh autogen.sh
Generating build information using aclocal and autoconf...
autogen.sh: line 6: aclocal: command not found
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 nasm... nasm
checking for a BSD-compatible install... /usr/bin/install -c
./configure: line 2558: syntax error near unexpected token `1.2.0,,AC_MSG_ERROR'
./configure: line 2558: `AM_PATH_SDL(1.2.0,,AC_MSG_ERROR(SDL >= 1.2.0 is required))'

Basically the same as above minus the sdl-config error. My main issue is that I just wanted to try the latest WIP cause 1.36 wasn't seeing my USB to PSX adapter. It used to work when I had Suse 9.0 installed but now im using Debian and it doesn't. :(
daPope
New Member
Posts: 3
Joined: Wed Oct 13, 2004 1:22 pm
Location: Germany/Netherlands
Contact:

Post by daPope »

Do you have "automake" installed? It includes the missing aclocal-"stuff".
Just tried to upgrade from zsnes 1.36 to the newest WIP version and the first thing I experienced was that I ran into that same trouble as you did.
Then I installed "autoconf" and "automake". It doenst really work now but at least I get a different error msg :)

edit: *BINGO* Got it workin' now.

Refer to this posting and you should be fine.
...what? The land of the free? Whoever told you that is your enemy!
jaq
Rookie
Posts: 11
Joined: Sun Nov 14, 2004 6:13 am

Post by jaq »

I had autoconf installed but not automake. Its starts making the configure file and gives me a slew of warnings but those aren't neccessarily bad. But it worked! :D Pope, thanks for the help! You're the MAN!
Bahamut_ZERO_Clue

Post by Bahamut_ZERO_Clue »

You should have installed the SDL development and binary package from your Linux distributor. Usually CVS packages install differently and everything doesn't get placed correctly.
jaq
Rookie
Posts: 11
Joined: Sun Nov 14, 2004 6:13 am

Post by jaq »

All the packages I needed were gotten from kernel.org which mirrors the official debian repository. Heck even zsnes was a part of the repository but it had 1.36 whereas I was trying the newest WIP.
Post Reply