Just commited some changes that enable compilation with gcc-4.5.3 and that should fix the above mentioned compilation problems.
Rev. 1112 just contains changes needed to compile with gcc-4.5.3 for 32-bit, i.e. use:
For this to work I needed these 32-bit-library packages under Gentoo:
export CFLAGS="-m32 -L/usr/lib32/ -L/opt/ctp2_lib32/"; export CC="gcc $CFLAGS"; export CXX="g++ $CFLAGS" && ./configure --prefix=/vfat/ctp2-m32 --bindir=/vfat/ctp2-m32/ctp2_program/ctp && make
and additionally my old libttf.so.2 (freetype below version 2 as a 32-bit library) from my LFS (in /opt/ctp2_lib32/), because Gentoo does not ship this in an emul-package. (Perhaps freetype-1.4 could be included in the ctp2 repository and compiled before ctp2.)
Starting the game with:
then works (SDL_ffmpeg is not needed).
LD_LIBRARY_PATH=/usr/lib32/:/opt/ctp2_lib32/ ./ctp2 nointromovie
Rev. 1113 contains changes needed to compile with gcc-4.5.3 for 64-bit, i.e. use:
It compiles fine but starting the game with:
export CFLAGS="-m64 "; export CC="gcc $CFLAGS"; export CXX="g++ $CFLAGS" && ./configure --prefix=/vfat/ctp2-m64/ --bindir=/vfat/ctp2-m64/ctp2_program/ctp && make
yields a segmentation fault:
At the moment I can't say how much effort it will be to debug this and figure out the necessary changes to make it work with -m64, since 32-bit was hardcoded at many, many places...
Messagebox(Targa Load Error): Unable to find the file 'uptg20e.rim'
So far, have fun with -m32 ;-)