Homebrew Compiling Genplus-Gx

  • Thread starter Thread starter Sheimi
  • Start date Start date
  • Views Views 2,332
  • Replies Replies 8

Sheimi

A cute Vixen!
Member
Joined
Oct 22, 2009
Messages
2,172
Reaction score
1,036
Trophies
2
XP
2,639
Country
United States
Everytime when I go to compile the current rev of GenPlus-GX Wii, I get a bunch of errors. I made sure all the ppc are there. Source has not been modified.

Errors


C:\devkitPro\emulators\genplus-gx>make -f Makefile.wii
gx_video.c
In file included from c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:46:
0:
Errors are the same as GC

C:\devkitPro\emulators\genplus-gx>make -f Makefile.gc
gx_video.c
In file included from c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:46: 0:
c:/devkitPro/portlibs/ppc/include/png.h:1:9: error: expected '=', ',', ';', 'asm ' or '__attribute__' before '/' token
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:60:3: warning: data defin
ition has no type or storage class [enabled by default]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:60:3: warning: type defaults to 'int' in declaration of 'png_image' [-Wimplicit-int]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1010:32: error: unknown type name 'png_structp'
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1010:53: error: unknown type name 'png_bytep'
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1010:69: error: unknown type name 'png_size_t'
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c: In function 'gxTextureOpenPNG':
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1027:3: error: unknown type name 'png_structp'
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1027:3: warning: implicit declaration of function 'png_create_read_struct' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1027:48: error: 'PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1027:48: note: each undeclared identifier is reported only once for each function it appears in
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1031:3: error: unknown type name 'png_infop'
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1031:3: warning: implicit declaration of function 'png_create_info_struct' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1034:5: warning: implicit declaration of function 'png_destroy_read_struct' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1041:5: warning: statement with no effect [-Wunused-value]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1041:15: error: expected ';' before 'image'
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1042:5: error: 'image' undeclared (first use in this function)
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1046:5: warning: implicit declaration of function 'png_set_read_fn' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1046:30: error: 'png_voidp' undeclared (first use in this function)
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1046:41: error: expected expression before ')' token
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1046:51: error: 'png_read_from_mem' undeclared (first use in this function)
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1051:5: error: unknown type name 'png_byte'
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1058:5: warning: implicit declaration of function 'png_sig_cmp' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1065:5: warning: implicit declaration of function 'png_init_io' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1066:5: warning: implicit declaration of function 'png_set_sig_bytes' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1075:3: warning: implicit declaration of function 'png_read_info' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1078:3: warning: implicit declaration of function 'png_get_image_width' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1079:3: warning: implicit declaration of function 'png_get_image_height' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1080:3: warning: implicit declaration of function 'png_get_bit_depth' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1081:3: warning: implicit declaration of function 'png_get_color_type' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1087:24: error: 'PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use in this function)
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1111:3: error: unknown type name 'png_bytep'
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1111:30: error: 'png_bytep' undeclared (first use in this function)
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1111:41: error: expected expression before ')' token
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1122:21: warning: assignment makes integer from pointer without a cast [enabled by default]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1126:3: warning: implicit declaration of function 'png_read_image' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1129:3: warning: implicit declaration of function 'png_read_end' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c: In function 'gxTextureWritePNG':
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1290:3: error: unknown type name 'png_structp'
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1290:3: warning: implicit declaration of function 'png_create_write_struct' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1290:49: error: 'PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1298:3: error: unknown type name 'png_infop'
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1302:5: warning: implicit declaration of function 'png_destroy_write_struct' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1310:3: warning: implicit declaration of function 'png_set_IHDR' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1310:71: error: 'PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use in this function)
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1311:16: error: 'PNG_INTERLACE_NONE' undeclared (first use in this function)
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1311:36: error: 'PNG_COMPRESSION_TYPE_DEFAULT' undeclared (first use in this function)
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1311:66: error: 'PNG_FILTER_TYPE_DEFAULT' undeclared (first use in this function)
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1314:3: error: unknown type name 'png_bytep'
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1314:30: error: 'png_byte p' undeclared (first use in this function)
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1314:41: error: expected expression before ')' token
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1325:21: warning: assignment makes integer from pointer without a cast [enabled by default]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1329:3: warning: implicit declaration of function 'png_set_rows' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1332:3: warning: implicit declaration of function 'png_write_png' [-Wimplicit-function-declaration]
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1332:34: error: 'PNG_TRANSFORM_IDENTITY' undeclared (first use in this function)
c:/devkitPro/emulators/genplus-gx/source/gx/gx_video.c:1335:3: warning: implicit declaration of function 'png_write_end' [-Wimplicit-function-declaration]
make[1]: *** [gx_video.o] Error 1
make: *** [build_cube] Error 2

C:\devkitPro\emulators\genplus-gx>rm *.elf
rm: cannot lstat `*.elf': No such file or directory

C:\devkitPro\emulators\genplus-gx>cp genplus_wii.dol boot.dol
cp: cannot stat `genplus_wii.dol': No such file or directory

C:\devkitPro\emulators\genplus-gx>pause
Press any key to continue . . .
 
You need to install the libogc portlibs for compilation of genplus(and a lot of other homebrews) to work. More specifically, libpng.

They go in your devkitpro folder, then in libogc, and include/lib.
 
You're using Makefile.wii now, right? I don't think the portlibs come compiled for gamecube. I could be wrong, though. :|
 
That's not the problem. The problem is that the .h files that comes in the include directory of the last ppc build of libpng are symbolic links, i.e empty files. You must copy the files that are in the /include/libpng15 directory directory to /include. Same goes for libpng.a in /lib directory, you must rename libpng15.a to libpng.a.

Without doing that, no apps relying on libpng will compile.
 
Well, using compile_all.bat to compile everything. It does use make -f makefile.wii. Not sure why it won't let me compile.
 
Do what i told you and it will compile. It's not a problem with a makefile or with compilation of this specific program, it's a problem of incorrect installation of libpng.
 
Do what i told you and it will compile. It's not a problem with a makefile or with compilation of this specific program, it's a problem of incorrect installation of libpng.
Tried what you told me to do and it worked. Thank you for helping
 

Site & Scene News

New Hot Discussed User Submitted