libretro / fbalpha2012

Final Burn Alpha 2012. Port of Final Burn Alpha to Libretro (0.2.97.24).
30 stars 49 forks source link

Error building fba-next-slim for libsnes on OS X #11

Closed clobber closed 12 years ago

clobber commented 12 years ago

When running ./compile_libsnes.sh make:


COMPILER SCRIPT FOR libsnes



DOING: make Compile libsnes library


generate_driverlist.sh: Generate all files from scripts directory

1) gamelist.pl Generating gamelist in generated/driverlist.h... Generating gamelist.txt...

2) neo_sprite_func.pl Generating generated/neo_sprite_func.h & generated/neo_sprite_func_table.h...

3) psikyo_tile_func.pl Generating generated/psikyo_tile_func.h & generated/psikyo_tile_func_table.h...

4) cave_sprite_func.pl Generating generated/cave_sprite_func.h & generated/cave_sprite_func_table.h...

5) cave_tile_func.pl Generating generated/cave_tile_func.h & generated/cave_tile_func_table.h...

6) toa_gp9001_func.pl Generating generated/toa_gp9001_func.h & generated/toa_gp9001_func_table.h...

7) pgm_sprite_create.cpp

8) compile m68kmake

9) Create m68kops.h with m68kmake

    Musashi v3.3 68000, 68008, 68010, 68EC020, 68020 emulator
    Copyright 1998-2000 Karl Stenerud (karl@mame.net)

Generated 1962 opcode handlers from 513 primitives

10) compile ctvmake

11) Create ctv.h with ctvmake CC src/burner/ioapi.c src/burner/ioapi.c: In function ‘fopen64_file_func’: src/burner/ioapi.c:115: warning: implicit declaration of function ‘fopen64’ src/burner/ioapi.c:115: warning: assignment makes pointer from integer without a cast src/burner/ioapi.c: In function ‘ftell64_file_func’: src/burner/ioapi.c:145: warning: implicit declaration of function ‘ftello64’ src/burner/ioapi.c: In function ‘fseek64_file_func’: src/burner/ioapi.c:191: warning: implicit declaration of function ‘fseeko64’ CC src/burner/unzip.c CC src/burn/snd/ay8910.c CC src/burn/snd/fm.c CC src/burn/snd/fmopl.c CC src/burn/snd/ym2151.c CC src/burn/snd/ym2413.c CC src/burn/snd/ymdeltat.c CC src/burn/snd/ymf278b.c CC src/cpu/m68k/m68kcpu.c CC src/cpu/m68k/m68kopac.c CC src/cpu/m68k/m68kopdm.c CC src/cpu/m68k/m68kopnz.c CC src/cpu/m68k/m68kops.c CC src/dep/libs/zlib/adler32.c CC src/dep/libs/zlib/compress.c CC src/dep/libs/zlib/crc32.c CC src/dep/libs/zlib/deflate.c CC src/dep/libs/zlib/gzclose.c CC src/dep/libs/zlib/gzlib.c src/dep/libs/zlib/gzlib.c: In function ‘gz_open’: src/dep/libs/zlib/gzlib.c:184: warning: implicit declaration of function ‘lseek’ CC src/dep/libs/zlib/gzread.c src/dep/libs/zlib/gzread.c: In function ‘gz_load’: src/dep/libs/zlib/gzread.c:31: warning: implicit declaration of function ‘read’ src/dep/libs/zlib/gzread.c: In function ‘gzclose_r’: src/dep/libs/zlib/gzread.c:650: warning: implicit declaration of function ‘close’ CC src/dep/libs/zlib/gzwrite.c src/dep/libs/zlib/gzwrite.c: In function ‘gz_comp’: src/dep/libs/zlib/gzwrite.c:79: warning: implicit declaration of function ‘write’ src/dep/libs/zlib/gzwrite.c: In function ‘gzclose_w’: src/dep/libs/zlib/gzwrite.c:528: warning: implicit declaration of function ‘close’ CC src/dep/libs/zlib/infback.c CC src/dep/libs/zlib/inffast.c CC src/dep/libs/zlib/inflate.c CC src/dep/libs/zlib/inftrees.c CC src/dep/libs/zlib/trees.c CC src/dep/libs/zlib/uncompr.c CC src/dep/libs/zlib/zutil.c CXX src/burner/gamc.cpp In file included from src/burner/gamc.cpp:2: src/burner/burner.h:45:17: error: png.h: No such file or directory make: *\ [src/burner/gamc.o] Error 1

inactive123 commented 12 years ago

I believe we have never tried the OSX target for libsnes FBA - it would be nice to be able to get this compiling though - so we can submit the code changes to the mainline FBA repo.

clobber commented 12 years ago

Saw osx target in the makefile here https://github.com/twinaphex/fba-next-slim/blob/master/src-0.2.97.21/makefile.libsnes

What about fceu?

inactive123 commented 12 years ago

Yes, there is an OSX target in the Makefile - however, it's never been tested AFAIK - unless Maister tried it on his outdated 700Mhz PPC Mac.

I think FCEU is more or less in the same boat - it would be nice to be able to support OSX as a first-class citizen though, so perhaps you could collaborate with us on this one - to get it to work on there.

Themaister commented 12 years ago

src/burner/burner.h:45:17: error: png.h: No such file or directory means you need libpng apparently. (Should be ifdeffed out or something, but).