Hello everybody!
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:
Code:
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
For this to work I needed these 32-bit-library packages under Gentoo:
app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-gtklibs
app-emulation/emul-linux-x86-medialibs
app-emulation/emul-linux-x86-opengl
app-emulation/emul-linux-x86-sdl
app-emulation/emul-linux-x86-soundlibs
app-emulation/emul-linux-x86-xlibs
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:
Code:
LD_LIBRARY_PATH=/usr/lib32/:/opt/ctp2_lib32/ ./ctp2 nointromovie
then works (SDL_ffmpeg is not needed).
Rev. 1113 contains changes needed to compile with gcc-4.5.3 for 64-bit, i.e. use:
Code:
export CFLAGS="-m64 "; export CC="gcc $CFLAGS"; export CXX="g++ $CFLAGS" && ./configure --prefix=/vfat/ctp2-m64/ --bindir=/vfat/ctp2-m64/ctp2_program/ctp && make
It compiles fine but starting the game with:
Code:
./ctp2 nointromovie
yields a segmentation fault:
Code:
Messagebox(Targa Load Error): Unable to find the file 'uptg20e.rim'
Continue?
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...
So far, have fun with -m32 ;-)
Lynx
Bookmarks