Homebrew SNES9x GX and FCEU GX compiling error

Kawaii-Tora

Well-Known Member
OP
Newcomer
Joined
Sep 14, 2009
Messages
95
Trophies
1
XP
783
Country
Germany
I've downloaded the latest source via SVN for SNES9x GX and FCEU GX and have installed the latest devkitpro on a debian System.
when i go to ../fceugc-read-only/ and type "make" I just get errors...

FCE Ultra GX
CODEdevkitpro:~/fceugc-read-only# make
make -f Makefile.wii
make[1]: Entering directory `/root/fceugc-read-only'
fceugx.cpp
In file included from /root/fceugc-read-only/source/gui/gui.h:51,
from /root/fceugc-read-only/source/fceugx.cpp:41:
/root/fceugc-read-only/source/gui/../utils/FreeTypeGX.h:27:22: warning: ft2build .h: No such file or directory
/root/fceugc-read-only/source/gui/../utils/FreeTypeGX.h:28:10: error: #include e xpects "FILENAME" or
/root/fceugc-read-only/source/gui/../utils/FreeTypeGX.h:29:10: error: #include e xpects "FILENAME" or
In file included from /root/fceugc-read-only/source/gui/gui.h:51,
from /root/fceugc-read-only/source/fceugx.cpp:41:
/root/fceugc-read-only/source/gui/../utils/FreeTypeGX.h:109: error: 'FT_Long' ha s not been declared
/root/fceugc-read-only/source/gui/../utils/FreeTypeGX.h:111: error: variable or field 'ChangeFontSize' declared void
/root/fceugc-read-only/source/gui/../utils/FreeTypeGX.h:111: error: 'FT_UInt' wa s not declared in this scope
/root/fceugc-read-only/source/gui/../utils/FreeTypeGX.h:127: error: 'FT_UInt' do es not name a type
/root/fceugc-read-only/source/gui/../utils/FreeTypeGX.h:142: error: 'FT_Bitmap' has not been declared
/root/fceugc-read-only/source/gui/../utils/FreeTypeGX.h:151: error: expected ')' before 'pixelSize'
make[2]: *** [fceugx.o] Fehler 1
make[1]: *** [build_wii] Fehler 2
make[1]: Leaving directory `/root/fceugc-read-only'
make: *** [wii] Fehler 2
devkitpro:~/fceugc-read-only#



SNES9x GX
CODEdevkitpro:~/snes9x-gx-read-only# make
make -f Makefile.wii
make[1]: Entering directory `/root/snes9x-gx-read-only'
audio.cpp
In file included from /root/snes9x-gx-read-only/source/video.h:18,
from /root/snes9x-gx-read-only/source/audio.cpp:20:
/root/snes9x-gx-read-only/source/snes9x/snes9x.h:192:18: warning: zlib.h: No such file or directory
In file included from /root/snes9x-gx-read-only/source/audio.cpp:28:
/root/snes9x-gx-read-only/source/snes9x/display.h:212: error: 'gzFile' has not been declared
/root/snes9x-gx-read-only/source/snes9x/display.h:213: error: variable or field 'S9xCloseSnapshotFile' declared void
/root/snes9x-gx-read-only/source/snes9x/display.h:213: error: 'gzFile' was not declared in this scope
make[2]: *** [audio.o] Fehler 1
make[1]: *** [build_wii] Fehler 2
make[1]: Leaving directory `/root/snes9x-gx-read-only'
make: *** [wii] Fehler 2
devkitpro:~/snes9x-gx-read-only#


what could i have done wrong?

P.S.: I'm working as root because its just a virtual machine only for compiling wii homebrew
 

Kawaii-Tora

Well-Known Member
OP
Newcomer
Joined
Sep 14, 2009
Messages
95
Trophies
1
XP
783
Country
Germany
My fault, i just forgot the portet libraries. put them in /devkitppc/portlibs/ppc
but i still get an error...

CODEdevkitpro:~/snes9x-gx-read-only# make
make -f Makefile.wii
make[1]: Entering directory `/root/snes9x-gx-read-only'
networkop.cpp
/root/snes9x-gx-read-only/source/networkop.cpp: In function 'void* netcb(void*)':
/root/snes9x-gx-read-only/source/networkop.cpp:199: error: 'net_init_async' was not declared in this scope
/root/snes9x-gx-read-only/source/networkop.cpp:204: error: 'net_get_status' was not declared in this scope
make[2]: *** [networkop.o] Fehler 1
make[1]: *** [build_wii] Fehler 2
make[1]: Leaving directory `/root/snes9x-gx-read-only'
make: *** [wii] Fehler 2
devkitpro:~/snes9x-gx-read-only#
 

FIX94

Former Staff
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,238
Country
Germany
You can get the latest libogc source from here:
Code:
https://devkitpro.svn.sourceforge.net/svnroot/devkitpro/trunk/libogc/
 

Kawaii-Tora

Well-Known Member
OP
Newcomer
Joined
Sep 14, 2009
Messages
95
Trophies
1
XP
783
Country
Germany
when i try to compile and install libogc i get this error

CODEmake[1]: Leaving directory `/opt/devkitpro/libogc/nds'
make: *** [nds-release] Fehler 2
when compiling libogc i get this error

can i just comment out all lines including nds and gba?
or do i have to install all NDS and GBA stuff too?
 

FIX94

Former Staff
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,238
Country
Germany
Kawaii-Tora said:
when i try to compile and install libogc i get this error

CODEmake[1]: Leaving directory `/opt/devkitpro/libogc/nds'
make: *** [nds-release] Fehler 2
when compiling libogc i get this error

can i just comment out all lines including nds and gba?
or do i have to install all NDS and GBA stuff too?
Which libogc source you used? Have you tried my link?
 

Jacobeian

Well-Known Member
Member
Joined
May 15, 2008
Messages
1,893
Trophies
0
XP
387
Country
Cuba
There is nothing related to nds and no /nds directory in the source, you must have done something wrong.

1/ Get the libogc source from the link specified above, using a SVN client and save it in an EMPTY directory

2/ Go in to the libogc directory and type 'make' then 'make install'


I think the /nds directory is a left over from the libfat source.
To compil libfat for Wii, go into the libfat SVN directory then type 'make ogc-install'
 

Kawaii-Tora

Well-Known Member
OP
Newcomer
Joined
Sep 14, 2009
Messages
95
Trophies
1
XP
783
Country
Germany
CODEdevkitpro:/opt/devkitpro/libogc# make install
cp: „include“ und „/opt/devkitpro/libogc/include“ sind die gleiche Datei
make: *** [install] Fehler 1


new error trýing make install
/libogc make worked withouch any errors
 

FIX94

Former Staff
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,238
Country
Germany
Same file? You must download the libogc source in an empty directory like opt/libogc! Then compile it using make and make install.
 

Jacobeian

Well-Known Member
Member
Joined
May 15, 2008
Messages
1,893
Trophies
0
XP
387
Country
Cuba
You are trying to compile the libogc sources into the same libogc directory where the library files (.a and .h) are installed (the one used to compile other applications)

That's why we told you to download the libogc from SVN into an EMPTY directory. If you were already compiling applications, you should have a /libogc directory with /lib and /include subdirs, don't use that one ! For example, use /opt/devkitpro/libogc-src
 

Kawaii-Tora

Well-Known Member
OP
Newcomer
Joined
Sep 14, 2009
Messages
95
Trophies
1
XP
783
Country
Germany
Well I'm almost done but now i get an error while linking boot.elf/boot.dol
CODElinking ... snes9xgx-wii.elf
/opt/devkitpro/portlibs/ppc/lib/libfreetype.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
make[2]: *** [/root/snes9x-gx-read-only/executables/snes9xgx-wii.elf] Error 1
make[1]: *** [build_wii] Error 2
make[1]: Leaving directory `/root/snes9x-gx-read-only'
make: *** [wii] Error 2
WiiHomeBrew:~/snes9x-gx-read-only#


if i try to run ranlib on libfreetype.a i get this message
CODEranlib: libfreetype.a: Malformed archive
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BakerMan @ BakerMan: fellow EST resident here, it's noon for me too