LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2009, 12:34 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908
Blog Entries: 26

Rep: Reputation: 49
error in tuxnes,nes game emulator.


here I did ./configure then no errors reported then make gives error.Can anybody suggest

linux-goap:/home/lxuser/tuxnes-0.75 # ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... missing
checking for working automake... found
checking for working autoheader... missing
checking for working makeinfo... missing
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc -O ) works... yes
checking whether the C compiler (gcc -O ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... yes
checking for features.h... yes
checking for fcntl.h... yes
checking for strings.h... yes
checking for sys/time.h... yes
checking for linux/joystick.h... yes
checking for linux/soundcard.h... yes
checking for sys/soundcard.h... yes
checking for ppm.h... no
checking for snss.h... no
checking for X11/xpm.h... yes
checking for X11/vroot.h... no
checking for sys/ipc.h... yes
checking for sys/shm.h... yes
checking for X11/extensions/XShm.h... yes
checking for X11/extensions/Xext.h... yes
checking for XpmWriteFileFromImage in -lXpm... yes
checking for XMissingExtension in -lXext... yes
checking for gzgetc in -lz... yes
checking for pbm_writepbm in -lpbm... no
checking for pgm_writepgm in -lpgm... no
checking for ppm_writeppm in -lppm... no
checking for sin in -lm... yes
checking for openSnssFile in -lsnss... no
checking for ggi/gii.h... no
checking for ggi/ggi.h... no
checking for ggiInit in -lggi... no
checking for giiInit in -lgii... no
checking for Wlib.h... no
checking for w_init in -lW... no
checking whether byte ordering is bigendian... no
checking for working const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking for size_t... yes
checking for 8-bit clean memcmp... yes
checking for unistd.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for strtod... yes
checking for strtoul... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h

linux-goap:/home/lxuser/tuxnes-0.75 # make
gcc -DHAVE_CONFIG_H -I. -I. -I. -O -pipe -Wall -D__USE_BSD -c x86.S
gcc -DHAVE_CONFIG_H -I. -I. -I. -O -pipe -Wall -D__USE_BSD -c d6502.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -O -pipe -Wall -D__USE_BSD -c dynrec.c
dynrec.c: In function ‘translate’:
dynrec.c:66: warning: pointer targets in assignment differ in signedness
dynrec.c:76: warning: pointer targets in assignment differ in signedness
gcc -DHAVE_CONFIG_H -I. -I. -I. -O -pipe -Wall -D__USE_BSD -c emu.c
emu.c: In function ‘loadpal’:
emu.c:893: error: expected ‘)’ before string constant
emu.c:915: error: expected ‘)’ before string constant
emu.c:927: error: expected ‘)’ before string constant
emu.c: In function ‘main’:
emu.c:1605: error: expected ‘)’ before string constant
make: *** [emu.o] Error 1
linux-goap:/home/lxuser/tuxnes-0.75 #

Has anybody successfully installed tuxnes from source?
 
Old 03-04-2009, 12:56 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,512

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
There are two alternatives : use the binary tuxnes-0.74-i586-pc-linux-gnu
> > tuxnes-0.74-i586-pc-linux-gnu.gz from
http://tuxnes.sourceforge.net/download.php
'gunzip' <package>' , 'chmod +x tuxnes-0.74-i586-pc-linux-gnu'.

Or compile 'tuxnes-0.75/' with gcc-2.95 .:
cpp-2.95-2.95.4-23.i386.rpm, gcc-2.95-2.95.4-23.i386.rpm

# rpm -Uvh <package> <package>

The 2 items are converted "Debian Sarge" packages from
http://ftp.gva.es/mirror/debian2/pool/main/g/gcc-2.95/
cpp-2.95_2.95.4-22_i386.deb, gcc-2.95_2.95.4-22_i386.deb

# 'alien -r <package> <package>' will make the rpm's
'alien-8.72' is the one to be preferred.
.....
'cd tuxnes-0.75/' .. './configure' .. 'make CC=gcc-2.95'
.....

Last edited by knudfl; 03-04-2009 at 01:03 PM.
 
Old 03-04-2009, 10:27 PM   #3
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
I have downloaded the binary of version 0.74 of (160,117 bytes) and will make unzipped file executable then if any problem occurs I will report in this thread.
 
Old 03-06-2009, 12:47 AM   #4
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
I got the binary & in gnome-terminal changed to folder where file was extracted.Then
~>./tuxnes-0.74-i586-pc-linux-gnu <GameFile>
caused that file to be loaded & playing begins
BUT
screen size is small even after resizing window or giving option of -G=800*600 on command line.
 
Old 03-06-2009, 10:53 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,512

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
I think, it should be '-G=800x600'

instead of '-G=800*600'.
 
Old 03-07-2009, 02:36 PM   #6
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Rep: Reputation: 33
Hmmm...

....thanks for the link to the binary. This is frustrating.

The binary does launch, but only from command line and only in a little window. Playing with the various options gives only a big window around the little window. This is true for the G and E options.

Now, I've tried to grab gtuxnes but can't seem to compile...
Attached Thumbnails
Click image for larger version

Name:	20090307_tuxnes_800x600.jpg
Views:	12
Size:	25.0 KB
ID:	274  
 
Old 03-08-2009, 04:02 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,512

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
PerfectReign : Compiling the very old ( year 2001 )
file 'gtuxnes-0.75' :

Try the method mentioned in post # 2 :

'make CC=gcc-2.95'
.....
 
Old 03-08-2009, 03:57 PM   #8
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Rep: Reputation: 33
Thanks, that was a trick for compiling tuxnes. However, I do have the .74 version running. It is just very small. I am trying to compile the gtuxnes .75 version and get an error message. (Oh, I have GCC 4.2-24 installed.)

I was then trying to install the gtuxnes version. I got an error message there and realized I didn't have teh GTK libaries installed. I did have GTK2 libraries.

I then ran make again and get a bunch of error messages, but do get a working gtuxnes binary.

Code:
kai@xwing:~/downloads/gtuxnes-0.75/gtuxnes-0.75> make
gcc `gtk-config --cflags` -c gtuxnes.c -o gtuxnes.o
gtuxnes.c: In function ‘run_tuxnes’:
gtuxnes.c:150: warning: incompatible implicit declaration of built-in function ‘strlen’
gtuxnes.c:157: warning: incompatible implicit declaration of built-in function ‘strcpy’
gtuxnes.c:158: warning: incompatible implicit declaration of built-in function ‘strcat’
gtuxnes.c: In function ‘main’:
gtuxnes.c:585: warning: incompatible implicit declaration of built-in function ‘strcpy’
gtuxnes.c:586: warning: incompatible implicit declaration of built-in function ‘strcat’
gcc `gtk-config --cflags` -c general.c -o general.o
gcc `gtk-config --cflags` -c sound.c -o sound.o
sound.c: In function ‘translate_sound_combo’:
sound.c:43: warning: incompatible implicit declaration of built-in function ‘strlen’
gcc `gtk-config --cflags` -c files.c -o files.o
gcc `gtk-config --cflags` -c video.c -o video.o
gcc `gtk-config --cflags` -c input.c -o input.o
gcc `gtk-config --cflags` -c panels.c -o panels.o
gcc `gtk-config --cflags` -c debug.c -o debug.o
gcc `gtk-config --cflags` -c config.c -o config.o
config.c: In function ‘read_config_file’:
config.c:60: warning: incompatible implicit declaration of built-in function ‘strlen’
config.c:62: warning: incompatible implicit declaration of built-in function ‘strncpy’
gcc -o gtuxnes gtuxnes.o general.o sound.o files.o video.o input.o\
                panels.o debug.o config.o `gtk-config --cflags --libs`
kai@xwing:~/downloads/gtuxnes-0.75/gtuxnes-0.75>

Thinking that - since I've had NESTicle working on my wife's Win2K system for some years I tried running that in both Crossover Office - killed the X session - and VMWare.

Neither worked.
Attached Thumbnails
Click image for larger version

Name:	20090308_nesticle.jpg
Views:	10
Size:	52.5 KB
ID:	277  
 
Old 03-08-2009, 04:10 PM   #9
millgates
Member
 
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 852

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
yeah... i remember having similar problems with tuxNES... now i use nestopia instead and it's running just fine
 
Old 03-09-2009, 11:29 AM   #10
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Rep: Reputation: 33
I found the answer. I had also tried nestopia but never could get it to build. However, someone on the openSUSE mailing list suggested I use the one-click-install service - http://software.opensuse.org/search?...p=1&q=nestopia - which did the trick.

I now have nestopia running with all the time-wasters - erm, games - that I need.

Thanks for everyone's help!!
 
Old 03-16-2009, 02:34 AM   #11
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
TO ALL READERS
Here is what I have learnt from this thread
Code:
(1)'./configure' followed by 'make CC=gcc-2.95' even 4.2(which is my gcc version) instead of 2.95 does not help.
Go for the compiled binary at http://tuxnes.sourceforge.net/packag...c-linux-gnu.gz.
(2)try option --enlarge=2 to get good view of game window.
(3)here is list of keyboard controls
Arrows  				Move (P1)
A,C or Space		     		A button (P1)
Z, X or D          		 	B button (P1)
Add              			Select button (P1)
Enter            			Start button (P1)
BackSpace   				Reset game
H, J, K, L  				Move (P2)
B           				A button (P2)
V           				B button (P2)
F           				Select button (P2)
G           				Start button (P2)
[/{         				Insert Coin (Left)
]/}         				Insert Coin (Right)
If this helps you than thank me by pressing thumbs up button(in the same way i have thanked posts found useful).Thank You.

Last edited by sumeet inani; 11-10-2009 at 02:08 AM.
 
  


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
NES Emulator little_penguin Linux - Software 2 03-10-2006 05:01 AM
Game Genie codes on FCE Ultra NES Emulator DaneM Linux - Games 4 03-09-2006 12:46 PM
NES emulator? little_penguin Linux - Software 2 06-28-2005 11:41 AM
Trying to create a startup script for tuxnes emulator Kilahchris Linux - Software 1 10-28-2004 05:27 AM
Looking for a NES emulator digitalboi Linux - Software 1 08-22-2003 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:38 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