ps3dev / ps3libraries

A script to automatically build various open source libraries for use on the PS3.
86 stars 74 forks source link

sdl_psl1ght_libs does not build/install properly #13

Closed CrashSerious closed 13 years ago

CrashSerious commented 13 years ago

When installing ps3toolchain from a completely clean installation, sdl_psl1ght_libs fails on script 003_SDL_mixer-1.2.11.sh. the following is a snippet from the end of the run of just this script:

checking for pkg-config... /usr/bin/pkg-config configure: WARNING: using cross tools not prefixed with host triplet checking pkg-config is at least version 0.9.0... yes checking for sdl-config... /usr/local/ps3dev/portlibs/ppu/bin/sdl-config checking for SDL - version >= 1.2.10... yes checking for pow in -lm... yes checking for libmikmod-config... /usr/local/ps3dev/portlibs/ppu/bin/libmikmod-config checking for libmikmod - version >= 3.1.10... cross compiling; assumed OK... checking vorbis/vorbisfile.h usability... yes checking vorbis/vorbisfile.h presence... no configure: WARNING: vorbis/vorbisfile.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: vorbis/vorbisfile.h: proceeding with the compiler's result checking for vorbis/vorbisfile.h... yes checking for ov_open_callbacks in -lvorbisfile... no configure: WARNING: *\ Unable to find Ogg Vorbis library (http://www.xiph.org/) configure: WARNING: Ogg Vorbis support disabled checking FLAC/export.h usability... yes checking FLAC/export.h presence... no configure: WARNING: FLAC/export.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: FLAC/export.h: proceeding with the compiler's result checking for FLAC/export.h... yes checking for libflac so-name version >= 8... configure: error: in /home/CrashSerious/githubs/ps3toolchain/build/ps3libraries/build/sdl_psl1ght_libs/scripts/SDL_mixer-1.2.11': configure: error: cannot run test program while cross compiling Seeconfig.log' for more details.

All the links I can find on this error point to a version of make that are newer than make-3.81-19, however I have downgraded make and it still occurs. I have the following installed: @ps3dev scripts]$ rpm -q -a | grep make automake15-1.5-29.fc13.1.noarch make-3.81-19.fc13.x86_64 cmake-2.8.4-1.fc14.x86_64 automake14-1.4p6-20.fc13.noarch automake-1.11.1-5.fc14.noarch automake16-1.6.3-18.fc13.1.noarch automake17-1.7.9-13.fc13.1.noarch

CrashSerious commented 13 years ago

I'm not convined this is the actual error, but the script does NOT work properly.

If the commands are run from the command line one by one, they work. I.E.:

./configure --prefix="$PS3DEV/portlibs/ppu" --host=powerpc64-ps3-elf \ --disable-sdltest \ --with-sdl-exec-prefix="$PS3DEV/portlibs/ppu" \ --disable-shared \ --disable-music-cmd \ --disable-music-ogg-shared \ --disable-music-mp3

make && make install

zeldin commented 13 years ago

The problem seems to be that someone added FLAC to ps3libraries. Try adding --disable-music-flac to the configure options in scripts/003_SDL_mixer-1.2.11.sh and see if that helps.

CrashSerious commented 13 years ago

004_SDL_net.sh also failes, with a different error...

SDLnet.c:27:27: fatal error: SDL_byteorder.h: No such file or directory compilation terminated. make: *\ [SDLnet.lo] Error 1

zeldin commented 13 years ago

In the SDLnet case, the patch hasn't been applied correctly. Did you really use the script?

CrashSerious commented 13 years ago

That fixes it, however, until I can test bgk's keyboard code... I can not submit a pull request. here is the configure as you suggested that works:

./configure --prefix="$PS3DEV/portlibs/ppu" --host=powerpc64-ps3-elf \ --disable-sdltest \ --with-sdl-exec-prefix="$PS3DEV/portlibs/ppu" \ --disable-shared \ --disable-music-cmd \ --disable-music-ogg-shared \ --disable-music-mp3 \ --disable-music-flac \ || { exit 1; }

zeldin commented 13 years ago

Ok, fix pushed.