Can't install fakenes

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
phantrongnghia
Posts: 205
Joined: Mon 24 Apr 2006, 14:11
Location: Hanoi,Vietnam
Contact:

Can't install fakenes

#1 Post by phantrongnghia »

I downloaded fake nes from
http://emuxhaven.net/emuxhaven/nes/extr ... 3.0.tar.gz

Code: Select all

./configure
No problem

Code: Select all

make install
Problem here
cd src && /usr/bin/make all
make[1]: Entering directory `/root/hacaoshare/fakenes/fakenes-0.3.0/src'
Please wait while FakeNES builds...
gcc -c apu.c -o apu.o `allegro-config --cflags` -Iinclude/ -Isupport/ -g -O2 -DUSE_ZLIB -DUSE_HAWKNL -DLSB_FIRST -DPOSIX -DNO_C_CORE
/bin/sh: allegro-config: command not found
apu.c:45:21: allegro.h: No such file or directory
In file included from apu.c:50:
include/cpu.h:25:21: allegro.h: No such file or directory
In file included from include/cpu.h:28,
from apu.c:50:
include/core.h:167: error: syntax error before "void"
In file included from include/rom.h:31,
from include/cpu.h:30,
from apu.c:50:
include/mmc.h:25:21: allegro.h: No such file or directory
In file included from include/rom.h:31,
from include/cpu.h:30,
from apu.c:50:
include/mmc.h:47: error: parse error before '*' token
include/mmc.h:49: error: parse error before '*' token
include/mmc.h:77: error: parse error before '*' token
include/mmc.h:79: error: parse error before '*' token
apu.c:85: error: syntax error before "UINT8"
apu.c:106: error: syntax error before "int"
apu.c:112: error: syntax error before "int"
apu.c:119: error: syntax error before "int"
apu.c:126: error: syntax error before "int"
In file included from include/apu_ex.h:91,
from apu.c:148:
include/apu/vrc7.h:76: error: syntax error before "static"
include/apu/vrc7.h:94: error: syntax error before "static"
include/apu/vrc7.h:107: error: syntax error before "static"
include/apu/vrc7.h:176: error: syntax error before "static"
include/apu/vrc7.h:196: error: syntax error before "static"
include/apu/vrc7.h:203: error: syntax error before "static"
include/apu/vrc7.h:236: error: syntax error before "static"
include/apu/vrc7.h:245: error: syntax error before "static"
include/apu/vrc7.h:308: error: syntax error before "static"
include/apu/vrc7.h: In function `OPLLSoundRender':
include/apu/vrc7.h:328: error: `AL_CONST' undeclared (first use in this function )
include/apu/vrc7.h:328: error: (Each undeclared identifier is reported only once
include/apu/vrc7.h:328: error: for each function it appears in.)
include/apu/vrc7.h:328: error: parse error before "UINT8"
include/apu/vrc7.h:331: error: `chmax' undeclared (first use in this function)
In file included from include/apu_ex.h:94,
from apu.c:148:
include/apu/mmc5.h: At top level:
include/apu/mmc5.h:18: error: syntax error before "UINT32"
In file included from include/apu_ex.h:95,
from apu.c:148:
include/apu/n106.h:7: error: syntax error before "static"
apu.c:213: error: syntax error before "INT8"
apu.c:690: error: syntax error before "void"
apu.c: In function `apu_process':
apu.c:1459: warning: use of cast expressions as lvalues is deprecated
apu.c:1469: warning: use of cast expressions as lvalues is deprecated
apu.c: In function `apu_process_stereo':
apu.c:1800: warning: use of cast expressions as lvalues is deprecated
apu.c:1801: warning: use of cast expressions as lvalues is deprecated
apu.c:1808: warning: use of cast expressions as lvalues is deprecated
apu.c:1809: warning: use of cast expressions as lvalues is deprecated
make[1]: *** [apu.o] Error 1
make[1]: Leaving directory `/root/hacaoshare/fakenes/fakenes-0.3.0/src'
make: *** [all] Error 2
How to fix this problem, i do not known programming !
:shock:
Thanks

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

it seems you need allegro:
http://alleg.sourceforge.net/

Mark

User avatar
phantrongnghia
Posts: 205
Joined: Mon 24 Apr 2006, 14:11
Location: Hanoi,Vietnam
Contact:

#3 Post by phantrongnghia »

Can it fix this problem ?
Thanks

User avatar
phantrongnghia
Posts: 205
Joined: Mon 24 Apr 2006, 14:11
Location: Hanoi,Vietnam
Contact:

#4 Post by phantrongnghia »

Some problem in fakenes
type 'make install' to build and install FakeNES
sh-3.00# make install
cd src && /usr/bin/make install
make[1]: Entering directory `/root/hacaoshare/fakenes/fakenes-0.3.0/src'
gcc -c apu.c -o apu.o `allegro-config --cflags` -Iinclude/ -Isupport/ -g -O2 -DU SE_ZLIB -DUSE_HAWKNL -DLSB_FIRST -DPOSIX -DNO_C_CORE
apu.c: In function `apu_process':
apu.c:1459: warning: use of cast expressions as lvalues is deprecated
apu.c:1469: warning: use of cast expressions as lvalues is deprecated
apu.c: In function `apu_process_stereo':
apu.c:1800: warning: use of cast expressions as lvalues is deprecated
apu.c:1801: warning: use of cast expressions as lvalues is deprecated
apu.c:1808: warning: use of cast expressions as lvalues is deprecated
apu.c:1809: warning: use of cast expressions as lvalues is deprecated
gcc -c audio.c -o audio.o `allegro-config --cflags` -Iinclude/ -Isupport/ -g -O2 -DUSE_ZLIB -DUSE_HAWKNL -DLSB_FIRST -DPOSIX -DNO_C_CORE
gcc -c core.c -o core.o `allegro-config --cflags` -Iinclude/ -Isupport/ -g -O2 - DUSE_ZLIB -DUSE_HAWKNL -DLSB_FIRST -DPOSIX -DNO_C_CORE
gcc -c cpu.c -o cpu.o `allegro-config --cflags` -Iinclude/ -Isupport/ -g -O2 -DU SE_ZLIB -DUSE_HAWKNL -DLSB_FIRST -DPOSIX -DNO_C_CORE
gcc -c data.c -o data.o `allegro-config --cflags` -Iinclude/ -Isupport/ -g -O2 - DUSE_ZLIB -DUSE_HAWKNL -DLSB_FIRST -DPOSIX -DNO_C_CORE
gcc -c gui.c -o gui.o `allegro-config --cflags` -Iinclude/ -Isupport/ -g -O2 -DU SE_ZLIB -DUSE_HAWKNL -DLSB_FIRST -DPOSIX -DNO_C_CORE
gcc -c input.c -o input.o `allegro-config --cflags` -Iinclude/ -Isupport/ -g -O2 -DUSE_ZLIB -DUSE_HAWKNL -DLSB_FIRST -DPOSIX -DNO_C_CORE
gcc -c papu.c -o papu.o `allegro-config --cflags` -Iinclude/ -Isupport/ -g -O2 - DUSE_ZLIB -DUSE_HAWKNL -DLSB_FIRST -DPOSIX -DNO_C_CORE
gcc -c ppu.c -o ppu.o `allegro-config --cflags` -Iinclude/ -Isupport/ -g -O2 -DU SE_ZLIB -DUSE_HAWKNL -DLSB_FIRST -DPOSIX -DNO_C_CORE
gcc -c rom.c -o rom.o `allegro-config --cflags` -Iinclude/ -Isupport/ -g -O2 -DU SE_ZLIB -DUSE_HAWKNL -DLSB_FIRST -DPOSIX -DNO_C_CORE
gcc -c main.c -o main.o `allegro-config --cflags` -Iinclude/ -Isupport/ -g -O2 - DUSE_ZLIB -DUSE_HAWKNL -DLSB_FIRST -DPOSIX -DNO_C_CORE
main.c: In function `main':
main.c:781: warning: `yield_timeslice' is deprecated (declared at /usr/local/inc lude/allegro/alcompat.h:209)
gcc -c mmc.c -o mmc.o `allegro-config --cflags` -Iinclude/ -Isupport/ -g -O2 -DU SE_ZLIB -DUSE_HAWKNL -DLSB_FIRST -DPOSIX -DNO_C_CORE
gcc -c netplay.c -o netplay.o `allegro-config --cflags` -Iinclude/ -Isupport/ -g -O2 -DUSE_ZLIB -DUSE_HAWKNL -DLSB_FIRST -DPOSIX -DNO_C_CORE
netplay.c:71:16: nl.h: No such file or directory
netplay.c:74: error: parse error before "current_socket"
netplay.c:74: error: `NL_INVALID' undeclared here (not in a function)
netplay.c:74: warning: data definition has no type or storage class
netplay.c: In function `net_open':
netplay.c:82: error: `NL_BLOCKING_IO' undeclared (first use in this function)
netplay.c:82: error: (Each undeclared identifier is reported only once
netplay.c:82: error: for each function it appears in.)
netplay.c:87: error: `NL_LITTLE_ENDIAN_DATA' undeclared (first use in this funct ion)
netplay.c:94: error: `NL_IP' undeclared (first use in this function)
netplay.c:97: error: `NL_REUSE_ADDRESS' undeclared (first use in this function)
netplay.c:97: error: `NL_TRUE' undeclared (first use in this function)
netplay.c:105: error: `NL_IPX' undeclared (first use in this function)
netplay.c:126: error: `NL_RELIABLE_PACKETS' undeclared (first use in this functi on)
netplay.c:128: error: `NL_INVALID' undeclared (first use in this function)
netplay.c: In function `net_close':
netplay.c:143: error: `NL_INVALID' undeclared (first use in this function)
netplay.c: In function `netplay_open_server':
netplay.c:166: error: `NL_TRUE' undeclared (first use in this function)
netplay.c: In function `netplay_poll_server':
netplay.c:196: error: `NLsocket' undeclared (first use in this function)
netplay.c:196: error: parse error before "new_socket"
netplay.c:199: error: `new_socket' undeclared (first use in this function)
netplay.c:201: error: `NL_INVALID' undeclared (first use in this function)
netplay.c: In function `netplay_open_client':
netplay.c:219: error: `NLaddress' undeclared (first use in this function)
netplay.c:219: error: parse error before "nl_address"
netplay.c:233: error: `nl_address' undeclared (first use in this function)
netplay.c:239: error: `NL_TRUE' undeclared (first use in this function)
make[1]: *** [netplay.o] Error 1
make[1]: Leaving directory `/root/hacaoshare/fakenes/fakenes-0.3.0/src'
make: *** [install] Error 2
And can't run fakenes

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

do you have the link to the homepage from fake nes?
It should list all programs needed.
You need nl.h , but I don't know to which program it belongs.

Maybe the textfiles README or INSTALL tell you that?
Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#6 Post by MU »

you can compile it without network-support:

./configure --prefix=/usr --without-hawknl
make install

Mark

User avatar
phantrongnghia
Posts: 205
Joined: Mon 24 Apr 2006, 14:11
Location: Hanoi,Vietnam
Contact:

#7 Post by phantrongnghia »

Home:fakenes.sf.net
I shall try !
Thanks

Post Reply