Automated Script to Install LastWave version 3.1
# install wx-wiggets and wxGTK apt-get install wxwidgets2.8 apt-get install libwxgtk2.8-0 apt-get install libwxgtk2.8-dev # download source code cd /tmp http://www.cmap.polytechnique.fr/~bacry/LastWave/LastWave_3_1.unix.zip cd /usr/local sudo unzip /tmp/LastWave_3_1.unix.zip sudo rm -rf /usr/local/__MACOSX # wxsystem.cc cat /usr/local/LastWave_3_1/LastWave/wxsystem/src/wxsystem.cc | sed "s/wxString str = SOFTVERSION/ wxString str( (const wxChar *)SOFTVERSION, strlen(SOFTVERSION)); wxString str2( (const wxChar *)".", strlen("."))/g" | sed "s/wxString str1 = wxStandardPaths::Get().GetUserDataDir()+\".\"+str/wxString str1 = wxStandardPaths::Get().GetUserDataDir() + str2 + str/g" > /tmp/wxsystem.cc.$$ cp /tmp/wxsystem.cc.$$ /usr/local/LastWave_3_1/LastWave/wxsystem/src/wxsystem.cc # image_file.cc cat /usr/local/LastWave_3_1/LastWave/package_image/src/image_file.cc | sed "s/elif/else/g" > /tmp/image_file.cc.$$ /tmp/image_file.cc.$$ /usr/local/LastWave_3_1/LastWave/package_image/src/image_file.cc # export ARCH=linux export LWPATH=/usr/local/LastWave_3_1/LastWave cd /usr/local/LastWave_3_1/LastWave/Makefiles make dirs make makes make
メモ
/usr/local/LastWave_3_1/LastWave/wxsystem/src/wxsystem.cc の書きかえについて
書き換え前
wxString str = SOFTVERSION wxString str1 = wxStandardPaths::Get().GetUserDataDir()+"."+str;
書き換え後
wxString str( (const wxChar *)SOFTVERSION, strlen(SOFTVERSION)); wxString str2( (const wxChar *)".", strlen(".")); wxString str1 = wxStandardPaths::Get().GetUserDataDir() + str2 + str;