[Linux] Help in Tsukihime English Installation

Caution: Flying pans at low altitude.

Moderator: Staffers

User avatar
Into 17 Pieces
Posts: 17
Joined: March 7th, 2007, 9:09 am
Location: Tokyo

[Linux] Help in Tsukihime English Installation

Unread post by darckense » March 7th, 2007, 10:00 am

Hello !

I've recently seen that Mirrormoon has finished the translation of Tsukihime. Thank you very much for the work !! My level in Japanese is not good enought to play the game, so now, I can enjoy it.
It's working perfectly under Win XP, but I would like to have it working under Linux, so I tried to compile onscripter, according to the guideline found on Mirrormoon website.

My system is Mandriva 2007 Official, with a 2.6.17 kernel (2.6.17-5mdv).
I think that I've installed all the dependencies for SDL (but maybe I'm wrong on this point, I'm not very used to compile program).
I applied the mirrormoon patch to 20060724 version of onscripter source code.
However, I failed to compile properly onscripter.

I know that mirrormoon does'nt provide support for onscripter compilation, but I wonder if a Linux user who has already solved this problem may help me.

Below, I reproduced output of compilation, as well as the content of my makefile (Makefile.Linux.insani).

Thank you in advance for any help you could give me, and I wish good luck for all the guy currently working on the Fate/Stay Night translation (Ganbatte !!).


Code: Select all

*/Applying patch to onscripter source code */
[darckense@arcadia onscripter]$ patch -p1<onscripter-20060724-insani-zalas.patch2
patching file NsaReader.cpp
patching file NsaReader.h

*/Compilation */
[darckense@arcadia onscripter]$ make -f Makefile.Linux.insani
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI onscripter.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI DirectReader.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI SarReader.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI NsaReader.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI ScriptHandler.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI ScriptParser.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI ScriptParser_command.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI ONScripterLabel.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI ONScripterLabel_command.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI ONScripterLabel_text.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI ONScripterLabel_effect.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI ONScripterLabel_event.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI ONScripterLabel_rmenu.cpp
ONScripterLabel_rmenu.cpp: In member function ?void ONScripterLabel::executeSystemLoad()?:
ONScripterLabel_rmenu.cpp:303: warning: unused variable ?color?
ONScripterLabel_rmenu.cpp: In member function ?void ONScripterLabel::executeSystemSave()?:
ONScripterLabel_rmenu.cpp:385: warning: unused variable ?color?
ONScripterLabel_rmenu.cpp: In member function ?void ONScripterLabel::executeSystemYesNo()?:
ONScripterLabel_rmenu.cpp:528: warning: unused variable ?color?
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI ONScripterLabel_animation.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI ONScripterLabel_sound.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI ONScripterLabel_file.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI ONScripterLabel_file2.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI ONScripterLabel_image.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI AnimationInfo.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI FontInfo.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI DirtyRect.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI resize_image.cpp
g++  -O3 -Wall -fomit-frame-pointer -pipe -c `sdl-config --cflags` `smpeg-config --cflags` -DLINUX -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR -DINSANI sjis2utf16.cpp
g++ -o onscripter onscripter.o DirectReader.o SarReader.o NsaReader.o ScriptHandler.o ScriptParser.o ScriptParser_command.o ONScripterLabel.o ONScripterLabel_command.o ONScripterLabel_text.o ONScripterLabel_effect.o ONScripterLabel_event.o ONScripterLabel_rmenu.o ONScripterLabel_animation.o ONScripterLabel_sound.o ONScripterLabel_file.o ONScripterLabel_file2.o ONScripterLabel_image.o AnimationInfo.o FontInfo.o DirtyRect.o resize_image.o sjis2utf16.o  -static -z muldefs -Wl,--start-group `sdl-config --static-libs` `smpeg-config --libs` -lSDL_ttf -lfreetype -lSDL_image -ltiff -lpng -lSDL_mixer -lbz2 -lz -ljpeg -lm -lvorbis -lvorbisenc -lvorbisfile -logg -lgpm -lncurses -lslang -ldirectfb -lfusion -ldirect -lvga -ldl -lesd -lartsc -lasound -lX11 -laa -Wl,--end-group
/usr/bin/ld: cannot find -lpthread
collect2: ld returned 1 exit status
make: *** [onscripter] Erreur 1

/* Content of Makefile.Linux.insani */
[darckense@arcadia onscripter]$ cat Makefile.Linux.insani
# -*- Makefile -*-
# Makefile.Linux - Makefile rules for linux

# without OggVorbis and AVI
#INCS = `sdl-config --cflags` `smpeg-config --cflags`
#LIBS = `sdl-config --libs` `smpeg-config --libs` -lSDL_ttf -lSDL_image -lSDL_mixer -lbz2 -ljpeg -lm

INCS = `sdl-config --cflags` `smpeg-config --cflags`
#INCS = `sdl-config --cflags` `smpeg-config --cflags` `avifile-config --cflags`
# with OggVorbis and AVI
#LIBS = `sdl-config --libs` `smpeg-config --libs` `avifile-config --libs` -lSDL_ttf -lSDL_image -lSDL_mixer -lbz2 -ljpeg -lm -lvorbis

# with Integer OggVorbis and AVI in PDA size
#LIBS = `sdl-config --libs` `smpeg-config --libs` `avifile-config --libs` -lSDL_ttf -lSDL_image -lSDL_mixer -lbz2 -ljpeg -lm -lvorbisidec

# with OggVorbis and AVI and English mode
#LIBS = `sdl-config --libs` `smpeg-config --libs` `avifile-config --libs` -lSDL_ttf -lSDL_image -lSDL_mixer -lbz2 -ljpeg -lm -lvorbis

# with OggVorbis and English mode and insani
LIBS = -static -z muldefs -Wl,--start-group `sdl-config --static-libs` `smpeg-config --libs` -lSDL_ttf -lfreetype -lSDL_image -ltiff -lpng -lSDL_mixer -lbz2 -lz -ljpeg -lm -lvorbis -lvorbisenc -lvorbisfile -logg -lgpm -lncurses -lslang -ldirectfb -lfusion -ldirect -lvga -ldl -lesd -lartsc -lasound -lX11 -laa -Wl,--end-group



# for GNU g++
CC = g++
LD = g++ -o

#CFLAGS = -g -Wall -Wpointer-arith -pipe -c $(INCS) $(DEFS)
CFLAGS = -O3 -Wall -fomit-frame-pointer -pipe -c $(INCS) $(DEFS)

# for GCC on PowerPC specfied
#CC = powerpc-unknown-linux-gnu-g++
#LD = powerpc-unknown-linux-gnu-g++ -o

#CFLAGS = -O3 -mtune=G4 -maltivec -mabi=altivec -mpowerpc-gfxopt -mmultiple -mstring -Wall -fomit-frame-pointer -pipe -c $(INCS) $(DEFS)

# for Intel compiler
#CC = icc
#LD = icc -o

#CFLAGS = -O3 -tpp6 -xK -c $(INCS) $(DEFS)

RM = rm -f

TARGET = onscripter$(EXESUFFIX) sardec$(EXESUFFIX) nsadec$(EXESUFFIX) sarconv$(EXESUFFIX) nsaconv$(EXESUFFIX)
#TARGET = onscripter$(EXESUFFIX) sardec$(EXESUFFIX) nsadec$(EXESUFFIX) sarconv$(EXESUFFIX) nsaconv$(EXESUFFIX) simple_aviplay$(EXESUFFIX)

include Makefile.onscripter

Post Reply