2009年01月13日
2009年01月13日
PS3でSecondlifeのviewerを動かす7
うごいたよ。
とりあえず、スクリーンショット載せます。
いろいろやってみて、また記事書きます。


全部コンパイルは通って、リンクするところになるとなぜかハングアップするので
/var/log/syslogを見てみると
Out of memory: kill process 8178 (collect2) score 94057 or a child
Jan 13 13:17:14 ps3 kernel: [11816.417061] Killed process 8179 (ld)
メモリが足りないらしい。スワップまで食べてるよ。
ということで、スワップ領域の確保します。
何もしていない状態で以下のようにかなり、メモリを食っています。
$ free
total used free shared buffers cached
Mem: 218228 133148 85080 0 7176 59920
-/+ buffers/cache: 66052 152176
Swap: 634528 0 634528
sudo dd if=/dev/zero of=swapfile bs=1024 count=3000000
sudo mkswap -v1 swapfile
sudo swapon /swapfile
$ free
total used free shared buffers cached
Mem: 218228 215540 2688 0 3356 143884
-/+ buffers/cache: 68300 149928
Swap: 3634520 292 3634228
再びリンクします。
すると
Traceback (most recent call last):
File "/home/takeshich/sl/1_22_5/linden/indra/newview/viewer_manifest.py", line 676, in
main()
File "/home/takeshich/sl/1_22_5/linden/indra/newview/../lib/python/indra/util/llmanifest.py", line 232, in main
wm = LLManifest.for_platform(args['platform'], args.get('arch'))(args)
File "/home/takeshich/sl/1_22_5/linden/indra/newview/../lib/python/indra/util/llmanifest.py", line 258, in for_platform
return self.manifests[platform.lower()]
KeyError: 'linux_ppc64'
make[2]: *** [newview/SecondLife-ppc64-1.22.5.0.tar.bz2] Error 1
make[1]: *** [newview/CMakeFiles/package.dir/all] Error 2
make: *** [all] Error 2
なのですが、バイナリはできていることだろう。。。
indraで
cp ../scripts/messages/message_template.msg newview/app_settings/
cp ../etc/message.xml newview/app_settings/
indraで
( cd newview && LD_LIBRARY_PATH="`pwd`"/../../libraries/powerpc_64-linux/lib_release_client:${LD_LIBRARY_PATH}:/usr/lib:/usr/local/lib ./secondlife-bin )
立ち上がりました。
とりあえず、スクリーンショット載せます。
いろいろやってみて、また記事書きます。


全部コンパイルは通って、リンクするところになるとなぜかハングアップするので
/var/log/syslogを見てみると
Out of memory: kill process 8178 (collect2) score 94057 or a child
Jan 13 13:17:14 ps3 kernel: [11816.417061] Killed process 8179 (ld)
メモリが足りないらしい。スワップまで食べてるよ。
ということで、スワップ領域の確保します。
何もしていない状態で以下のようにかなり、メモリを食っています。
$ free
total used free shared buffers cached
Mem: 218228 133148 85080 0 7176 59920
-/+ buffers/cache: 66052 152176
Swap: 634528 0 634528
sudo dd if=/dev/zero of=swapfile bs=1024 count=3000000
sudo mkswap -v1 swapfile
sudo swapon /swapfile
$ free
total used free shared buffers cached
Mem: 218228 215540 2688 0 3356 143884
-/+ buffers/cache: 68300 149928
Swap: 3634520 292 3634228
再びリンクします。
すると
Traceback (most recent call last):
File "/home/takeshich/sl/1_22_5/linden/indra/newview/viewer_manifest.py", line 676, in
main()
File "/home/takeshich/sl/1_22_5/linden/indra/newview/../lib/python/indra/util/llmanifest.py", line 232, in main
wm = LLManifest.for_platform(args['platform'], args.get('arch'))(args)
File "/home/takeshich/sl/1_22_5/linden/indra/newview/../lib/python/indra/util/llmanifest.py", line 258, in for_platform
return self.manifests[platform.lower()]
KeyError: 'linux_ppc64'
make[2]: *** [newview/SecondLife-ppc64-1.22.5.0.tar.bz2] Error 1
make[1]: *** [newview/CMakeFiles/package.dir/all] Error 2
make: *** [all] Error 2
なのですが、バイナリはできていることだろう。。。
indraで
cp ../scripts/messages/message_template.msg newview/app_settings/
cp ../etc/message.xml newview/app_settings/
indraで
( cd newview && LD_LIBRARY_PATH="`pwd`"/../../libraries/powerpc_64-linux/lib_release_client:${LD_LIBRARY_PATH}:/usr/lib:/usr/local/lib ./secondlife-bin )
立ち上がりました。
2009年01月13日
PS3でSecondlifeのviewerを動かす6
前回、GCCのコンパイルやり直すべきか・・・。と悩んでいましたが、
GCCのコンパイルやり直すことにしました。。
デフォルトのGCCのconfigureをみて、再度コンパイルしてみました。
./configure -v --enable-languages=c,c++,fortran,objc,obj-c++ --exec-prefix=/usr --prefix=/usr/local/n --enable-shared --with-system-zlib --libexecdir=/usr/local/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/local/include/c++/4.4.0 --program-suffix=-4.4 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --disable-softfloat --enable-secureplt --enable-targets=powerpc-linux,powerpc64-linux --with-cpu=default32 --with-long-double-128 --enable-checking=release powerpc-linux-gnu
make CFLAGS="-O2 -g"
4時間ぐらいまって、成功しました。
/usr/bin/gccのシンボリックリンクを変更します。
/usr/bin/g++のシンボリックリンクを変更します。
そして、コンパイラの指定を変更します。
/usr/local/bin/gcc → /usr/bin/gcc
/usr/local/bin/g++ → /usr/bin/g++
いま、makeさせています。
/usr/local/bin/ld: skipping incompatible /usr/lib/libcairo.so when searching for -lcairo
/usr/local/bin/ld: skipping incompatible /usr/lib/libcairo.a when searching for -lcairo
/usr/local/bin/ld: cannot find -lcairo
collect2: ld はステータス 1 で終了しました
make[2]: *** [linux_crash_logger/linux-crash-logger] Error 1
make[1]: *** [linux_crash_logger/CMakeFiles/linux-crash-logger.dir/all] Error 2
make: *** [all] Error 2
のエラーは出ず、順調なようです。
つづきは、また後日!
GCCのコンパイルやり直すことにしました。。
デフォルトのGCCのconfigureをみて、再度コンパイルしてみました。
./configure -v --enable-languages=c,c++,fortran,objc,obj-c++ --exec-prefix=/usr --prefix=/usr/local/n --enable-shared --with-system-zlib --libexecdir=/usr/local/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/local/include/c++/4.4.0 --program-suffix=-4.4 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --disable-softfloat --enable-secureplt --enable-targets=powerpc-linux,powerpc64-linux --with-cpu=default32 --with-long-double-128 --enable-checking=release powerpc-linux-gnu
make CFLAGS="-O2 -g"
4時間ぐらいまって、成功しました。
/usr/bin/gccのシンボリックリンクを変更します。
/usr/bin/g++のシンボリックリンクを変更します。
そして、コンパイラの指定を変更します。
/usr/local/bin/gcc → /usr/bin/gcc
/usr/local/bin/g++ → /usr/bin/g++
いま、makeさせています。
/usr/local/bin/ld: skipping incompatible /usr/lib/libcairo.so when searching for -lcairo
/usr/local/bin/ld: skipping incompatible /usr/lib/libcairo.a when searching for -lcairo
/usr/local/bin/ld: cannot find -lcairo
collect2: ld はステータス 1 で終了しました
make[2]: *** [linux_crash_logger/linux-crash-logger] Error 1
make[1]: *** [linux_crash_logger/CMakeFiles/linux-crash-logger.dir/all] Error 2
make: *** [all] Error 2
のエラーは出ず、順調なようです。
つづきは、また後日!
2009年01月12日
PS3でSecondlifeのviewerを動かす5
気を取り直して、コンパイルです。
@ps3:~/sl/1_22_5/linden/indra$ make
[ 0%] Built target llaudio
[ 3%] Built target llcharacter
[ 11%] Built target llcommon
[ 12%] Built target llimage
[ 13%] Built target llimagej2coj
[ 14%] Built target llinventory
[ 17%] Built target llmath
[ 19%] Built target llmedia
[ 29%] Built target llmessage
[ 30%] Built target llprimitive
[ 32%] Built target llrender
[ 33%] Built target llvfs
[ 34%] Built target llwindow
[ 35%] Built target llxml
[ 36%] Built target lscript_compile
[ 37%] Built target lscript_execute
[ 37%] Built target lscript_library
[ 37%] Built target llcrashlogger
[ 44%] Built target llui
Linking CXX executable linux-crash-logger
/usr/local/bin/ld: skipping incompatible /usr/lib/libcairo.so when searching for -lcairo
/usr/local/bin/ld: skipping incompatible /usr/lib/libcairo.a when searching for -lcairo
/usr/local/bin/ld: cannot find -lcairo
collect2: ld はステータス 1 で終了しました
make[2]: *** [linux_crash_logger/linux-crash-logger] Error 1
make[1]: *** [linux_crash_logger/CMakeFiles/linux-crash-logger.dir/all] Error 2
make: *** [all] Error 2
コンパイラ変えたから、ライブラリが使えなくなってしまったようです。
m64入れたのがいけなかったのかな?
気合で、コンパイルを続けるためにソースから入れていくことにします。
libcairoをインストールします。
http://cairographics.org/releases/cairo-1.8.6.tar.gz
./configure
すると、
http://cairographics.org/releases/pixman-0.13.2.tar.gz
が必要だといってきます。
./configure
make
していると、GTK+のライブラリが必要になります。
GTK+をインストールする必要があり、以下のファイルをインストールしていきます。
http://ftp.gnome.org/pub/gnome/sources/glib/2.18/glib-2.18.4.tar.bz2
http://ftp.gnome.org/pub/gnome/sources/atk/1.25/atk-1.25.2.tar.bz2
http://downloads.sourceforge.net/freetype/freetype-2.3.7.tar.bz2?modtime=1214734118&big_mirror=0
http://archive.ubuntu.com/ubuntu/pool/main/libp/libpthread-stubs/libpthread-stubs_0.1.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/libx/libxau/libxau_1.0.4.orig.tar.gz
http://xcb.freedesktop.org/dist/libxcb-1.1.tar.bz2
http://archive.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11_1.1.5.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/z/zlib/zlib_1.2.3.3.dfsg.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/libx/libxml2/libxml2_2.6.32.dfsg.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/f/fontconfig/fontconfig_2.6.0.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/libx/libxrender/libxrender_0.9.4.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/x/xft/xft_2.1.13.orig.tar.gz
http://www.ijg.org/files/jpegsrc.v6b.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/t/tiff/tiff_3.8.2.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/libx/libxext/libxext_1.0.4.orig.tar.gz
http://ftp.gnome.org/pub/gnome/sources/pango/1.22/pango-1.22.4.tar.bz2
最後にGTKをインストールしようとすると
http://ftp.acc.umu.se/pub/gnome/sources/gtk+/2.12/gtk+-2.12.12.tar.bz2
cairoが必要だといってきます。
無限ループに陥りました。。。どう回避すべきなのでしょうか?
んー。GCCのコンパイルやり直すべきか・・・。だれか教えて!
@ps3:~/sl/1_22_5/linden/indra$ make
[ 0%] Built target llaudio
[ 3%] Built target llcharacter
[ 11%] Built target llcommon
[ 12%] Built target llimage
[ 13%] Built target llimagej2coj
[ 14%] Built target llinventory
[ 17%] Built target llmath
[ 19%] Built target llmedia
[ 29%] Built target llmessage
[ 30%] Built target llprimitive
[ 32%] Built target llrender
[ 33%] Built target llvfs
[ 34%] Built target llwindow
[ 35%] Built target llxml
[ 36%] Built target lscript_compile
[ 37%] Built target lscript_execute
[ 37%] Built target lscript_library
[ 37%] Built target llcrashlogger
[ 44%] Built target llui
Linking CXX executable linux-crash-logger
/usr/local/bin/ld: skipping incompatible /usr/lib/libcairo.so when searching for -lcairo
/usr/local/bin/ld: skipping incompatible /usr/lib/libcairo.a when searching for -lcairo
/usr/local/bin/ld: cannot find -lcairo
collect2: ld はステータス 1 で終了しました
make[2]: *** [linux_crash_logger/linux-crash-logger] Error 1
make[1]: *** [linux_crash_logger/CMakeFiles/linux-crash-logger.dir/all] Error 2
make: *** [all] Error 2
コンパイラ変えたから、ライブラリが使えなくなってしまったようです。
m64入れたのがいけなかったのかな?
気合で、コンパイルを続けるためにソースから入れていくことにします。
libcairoをインストールします。
http://cairographics.org/releases/cairo-1.8.6.tar.gz
./configure
すると、
http://cairographics.org/releases/pixman-0.13.2.tar.gz
が必要だといってきます。
./configure
make
していると、GTK+のライブラリが必要になります。
GTK+をインストールする必要があり、以下のファイルをインストールしていきます。
http://ftp.gnome.org/pub/gnome/sources/glib/2.18/glib-2.18.4.tar.bz2
http://ftp.gnome.org/pub/gnome/sources/atk/1.25/atk-1.25.2.tar.bz2
http://downloads.sourceforge.net/freetype/freetype-2.3.7.tar.bz2?modtime=1214734118&big_mirror=0
http://archive.ubuntu.com/ubuntu/pool/main/libp/libpthread-stubs/libpthread-stubs_0.1.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/libx/libxau/libxau_1.0.4.orig.tar.gz
http://xcb.freedesktop.org/dist/libxcb-1.1.tar.bz2
http://archive.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11_1.1.5.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/z/zlib/zlib_1.2.3.3.dfsg.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/libx/libxml2/libxml2_2.6.32.dfsg.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/f/fontconfig/fontconfig_2.6.0.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/libx/libxrender/libxrender_0.9.4.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/x/xft/xft_2.1.13.orig.tar.gz
http://www.ijg.org/files/jpegsrc.v6b.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/t/tiff/tiff_3.8.2.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/libx/libxext/libxext_1.0.4.orig.tar.gz
http://ftp.gnome.org/pub/gnome/sources/pango/1.22/pango-1.22.4.tar.bz2
最後にGTKをインストールしようとすると
http://ftp.acc.umu.se/pub/gnome/sources/gtk+/2.12/gtk+-2.12.12.tar.bz2
cairoが必要だといってきます。
無限ループに陥りました。。。どう回避すべきなのでしょうか?
んー。GCCのコンパイルやり直すべきか・・・。だれか教えて!
2009年01月12日
PS3でSecondlifeのviewerを動かす4
GCCのバージョンアップに成功したため、SLのコンパイルに戻ります。
まず、コンパイラの指定を変更します。
/usr/bin/gcc → /usr/local/bin/gcc
/usr/bin/g++ → /usr/local/bin/g++
ためしにコンパイルしてみます。すると以下のエラーでとまってしまいます。
error: 'end' is used uninitialized in this function
make[2]: *** [llcharacter/CMakeFiles/llcharacter.dir/llcharacter.o] Error 1
make[1]: *** [llcharacter/CMakeFiles/llcharacter.dir/all] Error 2
make: *** [all] Error 2
ですので、フラグの変更をします。
vi 00-Common.cmake
4.3を4.4に変更
-Werrorを削除
します。
もう一回コンパイルします。違うエラーが出ました。
@ps3:~/sl/1_22_5/linden/indra$ make
Scanning dependencies of target llaudio
[ 0%] Building CXX object llaudio/CMakeFiles/llaudio.dir/audioengine.o
[ 0%] Building CXX object llaudio/CMakeFiles/llaudio.dir/listener.o
[ 0%] Building CXX object llaudio/CMakeFiles/llaudio.dir/llaudiodecodemgr.o
[ 0%] Building CXX object llaudio/CMakeFiles/llaudio.dir/vorbisdecode.o
[ 0%] Building CXX object llaudio/CMakeFiles/llaudio.dir/vorbisencode.o
Linking CXX static library libllaudio.a
[ 0%] Built target llaudio
Scanning dependencies of target llcharacter
[ 0%] Building CXX object llcharacter/CMakeFiles/llcharacter.dir/llanimationstates.o
[ 1%] Building CXX object llcharacter/CMakeFiles/llcharacter.dir/llbvhloader.o
In file included from /usr/include/boost/mpl/apply.hpp:23,
from /usr/include/boost/iterator/iterator_facade.hpp:34,
from /usr/include/boost/iterator/iterator_adaptor.hpp:15,
from /usr/include/boost/token_iterator.hpp:22,
from /usr/include/boost/tokenizer.hpp:20,
from /home/takeshich/sl/1_22_5/linden/indra/llcharacter/llbvhloader.cpp:36:
/usr/include/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before token "("
/usr/include/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before token "("
In file included from /usr/include/boost/mpl/bind.hpp:27,
from /usr/include/boost/mpl/lambda.hpp:18,
from /usr/include/boost/mpl/apply.hpp:25,
from /usr/include/boost/iterator/iterator_facade.hpp:34,
from /usr/include/boost/iterator/iterator_adaptor.hpp:15,
from /usr/include/boost/token_iterator.hpp:22,
from /usr/include/boost/tokenizer.hpp:20,
from /home/takeshich/sl/1_22_5/linden/indra/llcharacter/llbvhloader.cpp:36:
/usr/include/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before token "("
/usr/include/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before token "("
In file included from /usr/include/boost/mpl/lambda.hpp:18,
from /usr/include/boost/mpl/apply.hpp:25,
from /usr/include/boost/iterator/iterator_facade.hpp:34,
from /usr/include/boost/iterator/iterator_adaptor.hpp:15,
from /usr/include/boost/token_iterator.hpp:22,
from /usr/include/boost/tokenizer.hpp:20,
from /home/takeshich/sl/1_22_5/linden/indra/llcharacter/llbvhloader.cpp:36:
/usr/include/boost/mpl/bind.hpp:364:31: error: missing binary operator before token "("
/usr/include/boost/mpl/bind.hpp:531:31: error: missing binary operator before token "("
In file included from /usr/include/boost/mpl/lambda.hpp:22,
from /usr/include/boost/mpl/apply.hpp:25,
from /usr/include/boost/iterator/iterator_facade.hpp:34,
from /usr/include/boost/iterator/iterator_adaptor.hpp:15,
from /usr/include/boost/token_iterator.hpp:22,
from /usr/include/boost/tokenizer.hpp:20,
from /home/takeshich/sl/1_22_5/linden/indra/llcharacter/llbvhloader.cpp:36:
/usr/include/boost/mpl/aux_/full_lambda.hpp:230:31: error: missing binary operator before token "("
In file included from /usr/include/boost/iterator/iterator_facade.hpp:34,
from /usr/include/boost/iterator/iterator_adaptor.hpp:15,
from /usr/include/boost/token_iterator.hpp:22,
from /usr/include/boost/tokenizer.hpp:20,
from /home/takeshich/sl/1_22_5/linden/indra/llcharacter/llbvhloader.cpp:36:
/usr/include/boost/mpl/apply.hpp:138:31: error: missing binary operator before token "("
make[2]: *** [llcharacter/CMakeFiles/llcharacter.dir/llbvhloader.o] Error 1
make[1]: *** [llcharacter/CMakeFiles/llcharacter.dir/all] Error 2
検索してみるとboostのバグのようで、以下のパッチを適用することで直りました。
https://svn.boost.org/trac/boost/raw-attachment/ticket/2069/boost_mpl_gcc-4_4.patch
まず、コンパイラの指定を変更します。
/usr/bin/gcc → /usr/local/bin/gcc
/usr/bin/g++ → /usr/local/bin/g++
ためしにコンパイルしてみます。すると以下のエラーでとまってしまいます。
error: 'end' is used uninitialized in this function
make[2]: *** [llcharacter/CMakeFiles/llcharacter.dir/llcharacter.o] Error 1
make[1]: *** [llcharacter/CMakeFiles/llcharacter.dir/all] Error 2
make: *** [all] Error 2
ですので、フラグの変更をします。
vi 00-Common.cmake
4.3を4.4に変更
-Werrorを削除
します。
もう一回コンパイルします。違うエラーが出ました。
@ps3:~/sl/1_22_5/linden/indra$ make
Scanning dependencies of target llaudio
[ 0%] Building CXX object llaudio/CMakeFiles/llaudio.dir/audioengine.o
[ 0%] Building CXX object llaudio/CMakeFiles/llaudio.dir/listener.o
[ 0%] Building CXX object llaudio/CMakeFiles/llaudio.dir/llaudiodecodemgr.o
[ 0%] Building CXX object llaudio/CMakeFiles/llaudio.dir/vorbisdecode.o
[ 0%] Building CXX object llaudio/CMakeFiles/llaudio.dir/vorbisencode.o
Linking CXX static library libllaudio.a
[ 0%] Built target llaudio
Scanning dependencies of target llcharacter
[ 0%] Building CXX object llcharacter/CMakeFiles/llcharacter.dir/llanimationstates.o
[ 1%] Building CXX object llcharacter/CMakeFiles/llcharacter.dir/llbvhloader.o
In file included from /usr/include/boost/mpl/apply.hpp:23,
from /usr/include/boost/iterator/iterator_facade.hpp:34,
from /usr/include/boost/iterator/iterator_adaptor.hpp:15,
from /usr/include/boost/token_iterator.hpp:22,
from /usr/include/boost/tokenizer.hpp:20,
from /home/takeshich/sl/1_22_5/linden/indra/llcharacter/llbvhloader.cpp:36:
/usr/include/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before token "("
/usr/include/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before token "("
In file included from /usr/include/boost/mpl/bind.hpp:27,
from /usr/include/boost/mpl/lambda.hpp:18,
from /usr/include/boost/mpl/apply.hpp:25,
from /usr/include/boost/iterator/iterator_facade.hpp:34,
from /usr/include/boost/iterator/iterator_adaptor.hpp:15,
from /usr/include/boost/token_iterator.hpp:22,
from /usr/include/boost/tokenizer.hpp:20,
from /home/takeshich/sl/1_22_5/linden/indra/llcharacter/llbvhloader.cpp:36:
/usr/include/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before token "("
/usr/include/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before token "("
In file included from /usr/include/boost/mpl/lambda.hpp:18,
from /usr/include/boost/mpl/apply.hpp:25,
from /usr/include/boost/iterator/iterator_facade.hpp:34,
from /usr/include/boost/iterator/iterator_adaptor.hpp:15,
from /usr/include/boost/token_iterator.hpp:22,
from /usr/include/boost/tokenizer.hpp:20,
from /home/takeshich/sl/1_22_5/linden/indra/llcharacter/llbvhloader.cpp:36:
/usr/include/boost/mpl/bind.hpp:364:31: error: missing binary operator before token "("
/usr/include/boost/mpl/bind.hpp:531:31: error: missing binary operator before token "("
In file included from /usr/include/boost/mpl/lambda.hpp:22,
from /usr/include/boost/mpl/apply.hpp:25,
from /usr/include/boost/iterator/iterator_facade.hpp:34,
from /usr/include/boost/iterator/iterator_adaptor.hpp:15,
from /usr/include/boost/token_iterator.hpp:22,
from /usr/include/boost/tokenizer.hpp:20,
from /home/takeshich/sl/1_22_5/linden/indra/llcharacter/llbvhloader.cpp:36:
/usr/include/boost/mpl/aux_/full_lambda.hpp:230:31: error: missing binary operator before token "("
In file included from /usr/include/boost/iterator/iterator_facade.hpp:34,
from /usr/include/boost/iterator/iterator_adaptor.hpp:15,
from /usr/include/boost/token_iterator.hpp:22,
from /usr/include/boost/tokenizer.hpp:20,
from /home/takeshich/sl/1_22_5/linden/indra/llcharacter/llbvhloader.cpp:36:
/usr/include/boost/mpl/apply.hpp:138:31: error: missing binary operator before token "("
make[2]: *** [llcharacter/CMakeFiles/llcharacter.dir/llbvhloader.o] Error 1
make[1]: *** [llcharacter/CMakeFiles/llcharacter.dir/all] Error 2
検索してみるとboostのバグのようで、以下のパッチを適用することで直りました。
https://svn.boost.org/trac/boost/raw-attachment/ticket/2069/boost_mpl_gcc-4_4.patch
2009年01月11日
PS3でSecondlifeのviewerを動かす3
gccのバグにぶち当たりました。まじでー。gcc4.4.0で試してみます。
今回は、SLのソースをコンパイルすることなく、横道にそれます。
ソースからGCCコンパイル、インストールです。
とりあえず、リンカを新しくします。
http://ftp.gnu.org/gnu/binutils/binutils-2.19.tar.gz
./configure
make
sudo make install
以下二つですが、あとでapt-get installしているのでいらないかも。
ftp://ftp.gnu.org/gnu/gmp/gmp-4.2.4.tar.gz
./configure
make
sudo make install
http://www.mpfr.org/mpfr-current/mpfr-2.3.2.tar.gz
./configure
make
sudo make install
ソースを取ってきて、
http://gcc.cybermirror.org/snapshots/4.4-20090102/gcc-4.4-20090102.tar.bz2
mkdir 4_4_0
cd 4_4_0
../gcc-4.4-20090102/configure --enable-languages=c,c++
export LD_LIBRARY_PATH=/usr/lib64
sudo apt-get install libc6-dev-ppc64
sudo apt-get install lib64mpfr1
sudo apt-get install lib64mpfr-dev
sudo apt-get install lib64gmp3 lib64gmp3-dev lib64gmpxx4
make CFLAGS="-m64 -O2 -g"
4時間ぐらいずっと待つ。
sudo make install
/usr/local/bin/gcc -v
Using built-in specs.
Target: powerpc64-unknown-linux-gnu
コンフィグオプション: ../gcc-4.4-20090102/configure --enable-languages=c,c++
スレッドモデル: posix
gcc version 4.4.0 20090102 (experimental) (GCC)
install成功!
今回は、SLのソースをコンパイルすることなく、横道にそれます。
ソースからGCCコンパイル、インストールです。
とりあえず、リンカを新しくします。
http://ftp.gnu.org/gnu/binutils/binutils-2.19.tar.gz
./configure
make
sudo make install
以下二つですが、あとでapt-get installしているのでいらないかも。
ftp://ftp.gnu.org/gnu/gmp/gmp-4.2.4.tar.gz
./configure
make
sudo make install
http://www.mpfr.org/mpfr-current/mpfr-2.3.2.tar.gz
./configure
make
sudo make install
ソースを取ってきて、
http://gcc.cybermirror.org/snapshots/4.4-20090102/gcc-4.4-20090102.tar.bz2
mkdir 4_4_0
cd 4_4_0
../gcc-4.4-20090102/configure --enable-languages=c,c++
export LD_LIBRARY_PATH=/usr/lib64
sudo apt-get install libc6-dev-ppc64
sudo apt-get install lib64mpfr1
sudo apt-get install lib64mpfr-dev
sudo apt-get install lib64gmp3 lib64gmp3-dev lib64gmpxx4
make CFLAGS="-m64 -O2 -g"
4時間ぐらいずっと待つ。
sudo make install
/usr/local/bin/gcc -v
Using built-in specs.
Target: powerpc64-unknown-linux-gnu
コンフィグオプション: ../gcc-4.4-20090102/configure --enable-languages=c,c++
スレッドモデル: posix
gcc version 4.4.0 20090102 (experimental) (GCC)
install成功!
2009年01月11日
PS3でSecondlifeのviewerを動かす2
1.22.5でコンパイルすることにしました。
で、いろいろ試行錯誤して
@ps3:~/sl/1_22_5/linden/indra$ make
[ 0%] Built target llaudio
[ 3%] Built target llcharacter
[ 11%] Built target llcommon
[ 12%] Built target llimage
[ 13%] Built target llimagej2coj
[ 14%] Built target llinventory
[ 17%] Built target llmath
[ 19%] Built target llmedia
[ 29%] Built target llmessage
[ 30%] Built target llprimitive
[ 32%] Built target llrender
[ 33%] Built target llvfs
[ 34%] Built target llwindow
[ 35%] Built target llxml
[ 36%] Built target lscript_compile
[ 37%] Built target lscript_execute
[ 37%] Built target lscript_library
[ 37%] Built target llcrashlogger
[ 44%] Built target llui
[ 44%] Built target linux-crash-logger
[ 44%] Built target linux-crash-logger-strip-target
Linking CXX executable secondlife-bin
master: http://secondlife.com/app/message_template/master_message_template.msg
current: /home/takeshich/sl/1_22_5/linden/scripts/messages/message_template.msg
Refreshing master cache from http://secondlife.com/app/message_template/master_message_template.msg
--- PASS ---
Newer
in message TeleportFinish: is more deprecated: UDPBlackListed vs. NotDeprecated in base
in message EnableSimulator: is more deprecated: UDPBlackListed vs. NotDeprecated in base
in message CrossedRegion: is more deprecated: UDPBlackListed vs. NotDeprecated in base
/usr/lib/gcc/powerpc-linux-gnu/4.1.3/../../../../lib/crt1.o: In function `_start':
(.text+0x20): relocation truncated to fit: R_PPC_REL24 against symbol `__libc_start_main@@GLIBC_2.0' defined in .glink section in /usr/lib/gcc/powerpc-linux-gnu/4.1.3/../../../../lib/crt1.o
/usr/lib/gcc/powerpc-linux-gnu/4.1.3/crtbegin.o:(.fini+0x0): relocation truncated to fit: R_PPC_REL24 against `.text'
/usr/lib/gcc/powerpc-linux-gnu/4.1.3/crtend.o:(.init+0x0): relocation truncated to fit: R_PPC_REL24 against `.text'
CMakeFiles/secondlife-bin.dir/llagent.o: In function `LLAgent::getVelocity() const':
/home/hiruta/sl/1_22_5/linden/indra/newview/llagent.cpp:1014: relocation truncated to fit: R_PPC_REL24 against symbol `memmove@@GLIBC_2.0' defined in .glink section in /usr/lib/gcc/powerpc-linux-gnu/4.1.3/../../../../lib/crt1.o
CMakeFiles/secondlife-bin.dir/llagent.o: In function `__tcf_44':
/home/hiruta/sl/1_22_5/linden/indra/llcommon/lldate.h:127: relocation truncated to fit: R_PPC_REL24 against symbol `std::basic_string, std::allocator >::~basic_string()@@GLIBCXX_3.4' defined in .glink section in /usr/lib/gcc/powerpc-linux-gnu/4.1.3/../../../../lib/crt1.o
CMakeFiles/secondlife-bin.dir/llagent.o: In function `__tcf_45':
/home/hiruta/sl/1_22_5/linden/indra/llcommon/lldate.h:129: relocation truncated to fit: R_PPC_REL24 against symbol `std::basic_string, std::allocator >::~basic_string()@@GLIBCXX_3.4' defined in .glink section in /usr/lib/gcc/powerpc-linux-gnu/4.1.3/../../../../lib/crt1.o
CMakeFiles/secondlife-bin.dir/llagent.o: In function `__tcf_426':
/home/hiruta/sl/1_22_5/linden/indra/llcommon/llstring.h:288: relocation truncated to fit: R_PPC_REL24 against symbol `std::basic_string, std::allocator >::~basic_string()@@GLIBCXX_3.4' defined in .glink section in /usr/lib/gcc/powerpc-linux-gnu/4.1.3/../../../../lib/crt1.o
CMakeFiles/secondlife-bin.dir/llagent.o: In function `__tcf_427':
/home/hiruta/sl/1_22_5/linden/indra/llui/lluixmltags.h:35: relocation truncated to fit: R_PPC_REL24 against symbol `std::basic_string, std::allocator >::~basic_string()@@GLIBCXX_3.4' defined in .glink section in /usr/lib/gcc/powerpc-linux-gnu/4.1.3/../../../../lib/crt1.o
CMakeFiles/secondlife-bin.dir/llagent.o: In function `__tcf_428':
/home/hiruta/sl/1_22_5/linden/indra/llui/lluixmltags.h:36: relocation truncated to fit: R_PPC_REL24 against symbol `std::basic_string, std::allocator >::~basic_string()@@GLIBCXX_3.4' defined in .glink section in /usr/lib/gcc/powerpc-linux-gnu/4.1.3/../../../../lib/crt1.o
CMakeFiles/secondlife-bin.dir/llagent.o: In function `__tcf_429':
/home/hiruta/sl/1_22_5/linden/indra/llui/lluixmltags.h:37: relocation truncated to fit: R_PPC_REL24 against symbol `std::basic_string, std::allocator >::~basic_string()@@GLIBCXX_3.4' defined in .glink section in /usr/lib/gcc/powerpc-linux-gnu/4.1.3/../../../../lib/crt1.o
CMakeFiles/secondlife-bin.dir/llagent.o: In function `__tcf_430':
/home/takeshich/sl/1_22_5/linden/indra/llui/lluixmltags.h:38: additional relocation overflows omitted from the output
collect2: ld returned 1 exit status
make[2]: *** [newview/secondlife-bin] Error 1
make[1]: *** [newview/CMakeFiles/secondlife-bin.dir/all] Error 2
make: *** [all] Error 2
gccのバグにぶち当たりました。まじでー。
http://gcc.gnu.org/ml/gcc-bugs/2008-10/msg00361.html
gcc4.4.0で試してみます。
で、いろいろ試行錯誤して
@ps3:~/sl/1_22_5/linden/indra$ make
[ 0%] Built target llaudio
[ 3%] Built target llcharacter
[ 11%] Built target llcommon
[ 12%] Built target llimage
[ 13%] Built target llimagej2coj
[ 14%] Built target llinventory
[ 17%] Built target llmath
[ 19%] Built target llmedia
[ 29%] Built target llmessage
[ 30%] Built target llprimitive
[ 32%] Built target llrender
[ 33%] Built target llvfs
[ 34%] Built target llwindow
[ 35%] Built target llxml
[ 36%] Built target lscript_compile
[ 37%] Built target lscript_execute
[ 37%] Built target lscript_library
[ 37%] Built target llcrashlogger
[ 44%] Built target llui
[ 44%] Built target linux-crash-logger
[ 44%] Built target linux-crash-logger-strip-target
Linking CXX executable secondlife-bin
master: http://secondlife.com/app/message_template/master_message_template.msg
current: /home/takeshich/sl/1_22_5/linden/scripts/messages/message_template.msg
Refreshing master cache from http://secondlife.com/app/message_template/master_message_template.msg
--- PASS ---
Newer
in message TeleportFinish: is more deprecated: UDPBlackListed vs. NotDeprecated in base
in message EnableSimulator: is more deprecated: UDPBlackListed vs. NotDeprecated in base
in message CrossedRegion: is more deprecated: UDPBlackListed vs. NotDeprecated in base
/usr/lib/gcc/powerpc-linux-gnu/4.1.3/../../../../lib/crt1.o: In function `_start':
(.text+0x20): relocation truncated to fit: R_PPC_REL24 against symbol `__libc_start_main@@GLIBC_2.0' defined in .glink section in /usr/lib/gcc/powerpc-linux-gnu/4.1.3/../../../../lib/crt1.o
/usr/lib/gcc/powerpc-linux-gnu/4.1.3/crtbegin.o:(.fini+0x0): relocation truncated to fit: R_PPC_REL24 against `.text'
/usr/lib/gcc/powerpc-linux-gnu/4.1.3/crtend.o:(.init+0x0): relocation truncated to fit: R_PPC_REL24 against `.text'
CMakeFiles/secondlife-bin.dir/llagent.o: In function `LLAgent::getVelocity() const':
/home/hiruta/sl/1_22_5/linden/indra/newview/llagent.cpp:1014: relocation truncated to fit: R_PPC_REL24 against symbol `memmove@@GLIBC_2.0' defined in .glink section in /usr/lib/gcc/powerpc-linux-gnu/4.1.3/../../../../lib/crt1.o
CMakeFiles/secondlife-bin.dir/llagent.o: In function `__tcf_44':
/home/hiruta/sl/1_22_5/linden/indra/llcommon/lldate.h:127: relocation truncated to fit: R_PPC_REL24 against symbol `std::basic_string
CMakeFiles/secondlife-bin.dir/llagent.o: In function `__tcf_45':
/home/hiruta/sl/1_22_5/linden/indra/llcommon/lldate.h:129: relocation truncated to fit: R_PPC_REL24 against symbol `std::basic_string
CMakeFiles/secondlife-bin.dir/llagent.o: In function `__tcf_426':
/home/hiruta/sl/1_22_5/linden/indra/llcommon/llstring.h:288: relocation truncated to fit: R_PPC_REL24 against symbol `std::basic_string
CMakeFiles/secondlife-bin.dir/llagent.o: In function `__tcf_427':
/home/hiruta/sl/1_22_5/linden/indra/llui/lluixmltags.h:35: relocation truncated to fit: R_PPC_REL24 against symbol `std::basic_string
CMakeFiles/secondlife-bin.dir/llagent.o: In function `__tcf_428':
/home/hiruta/sl/1_22_5/linden/indra/llui/lluixmltags.h:36: relocation truncated to fit: R_PPC_REL24 against symbol `std::basic_string
CMakeFiles/secondlife-bin.dir/llagent.o: In function `__tcf_429':
/home/hiruta/sl/1_22_5/linden/indra/llui/lluixmltags.h:37: relocation truncated to fit: R_PPC_REL24 against symbol `std::basic_string
CMakeFiles/secondlife-bin.dir/llagent.o: In function `__tcf_430':
/home/takeshich/sl/1_22_5/linden/indra/llui/lluixmltags.h:38: additional relocation overflows omitted from the output
collect2: ld returned 1 exit status
make[2]: *** [newview/secondlife-bin] Error 1
make[1]: *** [newview/CMakeFiles/secondlife-bin.dir/all] Error 2
make: *** [all] Error 2
gccのバグにぶち当たりました。まじでー。
http://gcc.gnu.org/ml/gcc-bugs/2008-10/msg00361.html
gcc4.4.0で試してみます。
2009年01月11日
PS3でSecondlifeのviewerを動かす大作戦1
2008年6月で、1.19.1では、ログイン画面の表示に成功しましたが、テクスチャがロードされないよう。

ログインしようとすると以下のようなエラーになって

というところで、止めていました。
なんだかやる気が出てきたので最新版で再び挑戦です。

ログインしようとすると以下のようなエラーになって

というところで、止めていました。
なんだかやる気が出てきたので最新版で再び挑戦です。
2008年12月13日
route7は未完成だった
Posted by Takeshich Nakamura at
20:40
│Comments(0)
2008年12月13日
SL route7制覇
SL route7を常に走るで走ってみた。

いきどまりまで行ってみて

http://slurl.com/secondlife/Phasic%20Foo/6/4/23
ひきかえして、さらに行き止まりまで行ってみた。

http://slurl.com/secondlife/Maclane/4/198/23
route7A,route7Bにも枝分かれしていた。

いきどまりまで行ってみて

http://slurl.com/secondlife/Phasic%20Foo/6/4/23
ひきかえして、さらに行き止まりまで行ってみた。

http://slurl.com/secondlife/Maclane/4/198/23
route7A,route7Bにも枝分かれしていた。
Posted by Takeshich Nakamura at
17:33
│Comments(0)
2008年10月07日
2008年09月28日
割烹かれら

割烹かれらがプレオープンということで行ってみました。
奥にはなぜか布団が敷いてある。

面白い雰囲気のお店です。
http://slurl.com/secondlife/Ueno/39/151/23
タグ :割烹かれら
2008年09月28日
フォンタナオケ

初めてオーケストラのライブを見に行きました。
ピッチカートを再現していたのにはびっくり。
でも、トロンボーンとかアニメーションひとつなのは残念。
ショスタコービチの5番ということで、聴いたことがあった。
音源もそれなりのもので、よかったです。
タグ :オーケストラ
2008年09月22日
エリスの部屋

エリスさんとshuさんのフリートークってたのしい。
関西のノリなんだけど、エリスさんの無茶振りに答えるshuさん素敵です。
話題は飛びまくるけどたのしい。
RADIO SLM /Music store Surreali
http://slurl.com/secondlife/Banneker/151/144/23
2008年09月21日
Little Tiara

料理中継ラジオだった。最後のほうはグダグダだったけど。
楽しいラジオでした。
RADIO SLM /Music store Surreali
http://slurl.com/secondlife/Banneker/151/144/23
タグ :ラジオ
2008年09月20日
Turu kameライブ
急にNOTICEがきたんだけど暇なので、TURU KAME LIVEにいってみた。

うみちゃんいいね。

いたっちさんもよかった。
もう一方いたんだけど、服が読み込まれなかったのでSSはなし。
トークとライブという形で楽しい時間をすごせました。
◎Turu kame
http://slurl.com/secondlife/Gorgonzola/67/178/22

うみちゃんいいね。

いたっちさんもよかった。
もう一方いたんだけど、服が読み込まれなかったのでSSはなし。
トークとライブという形で楽しい時間をすごせました。
◎Turu kame
http://slurl.com/secondlife/Gorgonzola/67/178/22
タグ :ライブ
2008年09月19日
クラシック音楽を聴きながら、キャンプするとき
クラシック音楽を聴きながら、キャンプするとき
http://takeshich.slmame.com/e364937.html
で紹介したところが、改装されていました。
新しくキャンプピアノが2台。

ラッキーチェアが3台。

オーケストラキャンプもできていました。

びっくり、レート時には1L$/10min max30L$
時間があるときで音楽を楽しみたいときにはぴったりかも。
http://slurl.com/secondlife/Minatomirai/229/102/23
http://takeshich.slmame.com/e364937.html
で紹介したところが、改装されていました。
新しくキャンプピアノが2台。

ラッキーチェアが3台。

オーケストラキャンプもできていました。

びっくり、レート時には1L$/10min max30L$
時間があるときで音楽を楽しみたいときにはぴったりかも。
http://slurl.com/secondlife/Minatomirai/229/102/23
2008年09月19日
おいらの持っている楽器-5-

ドラムだ。
これは、着るタイプ(Wearable)なので、プリム数を気にすることなく扱えます。

アニメーションが入っているときはかっこいいのですが、いかんせん着るタイプなので
手足にくっついています。

で、靴が脱げる



6つのアニメーションと8つのサウンドがついていて、セッションができます。

価格は2500L$と高めですけど、クオリティの高さでとんとんかなと思っています。
購入は、
Music store Surreality
http://slurl.com/secondlife/Banneker/64/58/25
2008年09月19日
Pretty Place

昨日、tammyさんのラジオ「Pretty Place」を聴いた。
少しだけ前に進もうと思った。
ゆるゆるな中に垣間見れたちょっとまえへという気持ち。
大切にしようと思う。
RADIO SLM /Music store Surreali
http://slurl.com/secondlife/Banneker/151/144/23
タグ :ラジオ