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 > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 12-09-2006, 05:14 AM   #1
drfre
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
ZSNES compilation problem with g++


Hello everyone,

I'm trying to install ZSNES on my fedore core 6 machine (x86_64). The manual suggests running "sh ./autogen && gmake && gmake install". I installed all the required packages (sdl, nasm, zlib and libpng). When my terminal reaches the gmake command, I get the following error:

Quote:
g++: argument van '-L' ontbreekt
(which translates to "g++: argument to '-L' missing")

I searched with Google and in these fora, but I'm yet to find an answer. It is suggested that it has something to do with another package interfering with the g++-one (I'm thinking g++ comes with gcc). The person in question had to reinstall Linux in order to remove this error...

I'm hoping I won't have to do that just yet (again)

Here is the output of the "sh ./autogen && gmake && gmake install"-command

Quote:
Generating build information using aclocal and autoconf...
./autogen.sh: line 6: aclocal: command not found
./autogen.sh: line 7: autoconf: command not found
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-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
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib - version >= 1.1.0... yes
checking for libpng - version >= 1.2.0... yes
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers in standard search path
checking for glGetError in -lGL... no
checking for OpenGL... no
checking if you want gdb friendly executable... no
checking which processor class to optimize for... 386
configure: WARNING: *** This is probably not what you want use --target
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether sys/types.h defines makedev... no
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged


ZSNES v1.41

SDL support Version 1.2.10
NASM support NASM version 0.98.39 compiled on Jul 12 2006
ZLib support Version 1.2.3
PNG support (png screenshots) Yes, version 1.2.10
OpenGL support Disabled, library not found

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

Configure complete, now type 'make' and pray.

g++ -o zsnes chips/sfxproc.o chips/fxemu2.o chips/dsp1proc.o chips/fxemu2b.o chips/fxemu2c.o chips/fxtable.o chips/sa1proc.o chips/sa1regs.o chips/dsp1emu.o chips/st10proc.o chips/seta10.o chips/dsp2proc.o chips/sdd1emu.o cpu/addrni.o cpu/dma.o cpu/dsp.o cpu/dspproc.o cpu/execute.o cpu/executec.o cpu/irq.o cpu/memory.o cpu/spc700.o cpu/stable.o cpu/table.o cpu/tableb.o cpu/tablec.o linux/copyvwin.o linux/sdlintrf.o linux/sdllink.o linux/sw_draw.o linux/zloaderw.o linux/ztcp.o linux/zipxw.o linux/zfilew.o dos/debug.o dos/joy.o dos/modemrtn.o dos/vesa2.o dos/initvid.o dos/sw.o dos/gppro.o dos/vesa12.o gui/gui.o gui/menu.o video/makev16b.o video/makev16t.o video/makevid.o video/mode716.o video/mode716b.o video/mode716d.o video/mode716e.o video/mode716t.o video/mode7.o video/mode7ext.o video/mv16tms.o video/newg162.o video/newgfx16.o video/newgfx2.o video/newgfx.o video/m716text.o video/2xsaiw.o video/procvid.o video/sw_draw.o video/hq2x16.o video/hq2x32.o video/hq3x16.o video/hq3x32.o video/hq4x16.o video/hq4x32.o cfgload.o endmem.o init.o initc.o uic.o patch.o ui.o vcache.o version.o zip/unzip.o zip/zpng.o effects/burn.o effects/water.o effects/smoke.o jma/7zlzma.o jma/crc32.o jma/iiostrm.o jma/inbyte.o jma/jma.o jma/lzma.o jma/lzmadec.o jma/winout.o jma/zsnesjma.o -pipe -I. -Wall -I/usr/local/include -I/usr/include -D__LINUX__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -s -L/usr/local/lib -L/usr/lib -lz -L/usr/lib64 -lSDL -lpthread -lpng -lm -L
g++: argument van '-L' ontbreekt

gmake: *** [zsnes] Fout 1
 
Old 12-09-2006, 05:31 AM   #2
drfre
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
mh

well, I found that I had to add the aclocal and the autoconf packages to make the error go away. Pretty stupid of me
I got it to compile with warnings:
Quote:
*snip*
/usr/bin/ld: skipping incompatible /usr/lib/libSDL.so when searching for -lSDL
/usr/bin/ld: skipping incompatible /usr/lib/libSDL.a when searching for -lSDL
/usr/bin/ld: warning: i386 architecture of input file `chips/sfxproc.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `chips/fxemu2.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `chips/dsp1proc.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `chips/fxemu2b.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `chips/fxemu2c.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `chips/fxtable.o' is incompatible with i386:x86-64 output
*snip*
and so on
*snip*
rm -f version.o
/usr/bin/install -c -d -m 0755 //usr/local/bin
/usr/bin/install -c -m 0755 zsnes //usr/local/bin
/usr/bin/install -c -d -m 0755 //usr/local/man/man1
/usr/bin/install -c -m 0644 linux/zsnes.1 //usr/local/man/man1
It has to do with the install files provided by ZSNES. I'm thinking it's out of my hands and it won't work until they create some x86-64 compatible files...

I guess I screwed up for my first post. thanks anyway...
 
  


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
problem installing zsnes tehnick Linux - Software 0 08-06-2004 11:43 PM
Wierd Problem With ZSNES jlacroix Fedora 0 06-01-2004 10:05 PM
Installing ZSNES and a libSDL problem.! HELP! toolfan Linux - Software 2 05-24-2004 05:03 AM
Yet another zsnes make problem...in slack 9.1...redefinition probs cbreeze34 Linux - Software 0 11-29-2003 09:07 PM
problem installing ZSNES GT_Onizuka Linux - Software 10 09-29-2003 03:47 AM

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

All times are GMT -5. The time now is 03:13 PM.

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