UbuntuへのOpenVRMLのインストールについて
-
こめかみ
UbuntuへのOpenVRMLのインストールについて
OpemGLプログラムにVRML2.0による3Dモデルを読み込ませるライブラリについて
http://dixq.net/forum/viewtopic.php?f=3&t=9541
こちらのトピックの続きです。
VirtualBoxへのubuntuのインストール後ネットワークのプロキシの設定やら既存のOpenGLプログラムが動くかやら最低限の設定を調査していたらだいぶ時間がかかってしまいました。
不具合はまだ何点かあるのですが、たぶん後回しにできるものなので、一番重要な問題であるOpenVRMLのインストールについて質問させていただきたいと思います。
現在こちらでお伺いする前に自力でできる範囲でubuntuへのOpenVRMLのインストールを試みました。
細かいパッケージのインストールなどは後回しにして、まずはCygwinにインストールしようとしたの時のようにエラーメッセージのでてくる段階まで独力で持っていこうとしたのですが、usrディレクトリにファイルを配置できないことが解決できなかったりと本質でなさそうなことばかりに時間を取られてしまいなかなか万全な現状報告ができませんでした。
beatleさん方の御指導を受けられるのなら闇雲に何度も環境を整えては破壊の繰り返しをするより確実だと思い質問させていただきたいと思います。
UbuntuにおけるOpenVRMLのインストールを始める手順として、まず何から取り組むべきでしょうか。
現在までのOpenVRMLのインストールの試行錯誤を要約します。
http://openvrml.org/download
こちらのページの説明がunix上でOpenVRMLをダウンロード(インストール?)する手段として一番ストレートなものなのかなと推測して、ubuntuのCUI上で
svn co http://svn.openvrml.org/svnroot/openvrml/trunk openvrml
と打ち込んでみましたところ、最終的に
******ubuntu00@******ubuntu00-VirtualBox:/$ svn co http://svn.openvrml.org/svnroot/openvrml/trunk openvrml
svn: OPTIONS (URL: 'http://svn.openvrml.org/svnroot/openvrml/trunk'): サーバに接続できませんでした (http://svn.openvrml.org)
というメッセージがでて、取得できませんでした。
コマンドでファイルを持ってこれなかったのでFirefoxからGUI操作でopenvrml-0.18.8.tar.gzをダウンロードしたのですが、アクセス権限を自己解決できずusrディレクトリ内にopenvrml-0.18.8を配置することができなかったというのが現状です。
このまま解決方法を闇雲に調べることもできるのですが、なにか致命的に遠回りしてるような気もするので、あまりにもひどいようでしたら正していただけたらなと、現状報告させていただきました。
御指導よろしくお願いいたします。
http://dixq.net/forum/viewtopic.php?f=3&t=9541
こちらのトピックの続きです。
VirtualBoxへのubuntuのインストール後ネットワークのプロキシの設定やら既存のOpenGLプログラムが動くかやら最低限の設定を調査していたらだいぶ時間がかかってしまいました。
不具合はまだ何点かあるのですが、たぶん後回しにできるものなので、一番重要な問題であるOpenVRMLのインストールについて質問させていただきたいと思います。
現在こちらでお伺いする前に自力でできる範囲でubuntuへのOpenVRMLのインストールを試みました。
細かいパッケージのインストールなどは後回しにして、まずはCygwinにインストールしようとしたの時のようにエラーメッセージのでてくる段階まで独力で持っていこうとしたのですが、usrディレクトリにファイルを配置できないことが解決できなかったりと本質でなさそうなことばかりに時間を取られてしまいなかなか万全な現状報告ができませんでした。
beatleさん方の御指導を受けられるのなら闇雲に何度も環境を整えては破壊の繰り返しをするより確実だと思い質問させていただきたいと思います。
UbuntuにおけるOpenVRMLのインストールを始める手順として、まず何から取り組むべきでしょうか。
現在までのOpenVRMLのインストールの試行錯誤を要約します。
http://openvrml.org/download
こちらのページの説明がunix上でOpenVRMLをダウンロード(インストール?)する手段として一番ストレートなものなのかなと推測して、ubuntuのCUI上で
svn co http://svn.openvrml.org/svnroot/openvrml/trunk openvrml
と打ち込んでみましたところ、最終的に
******ubuntu00@******ubuntu00-VirtualBox:/$ svn co http://svn.openvrml.org/svnroot/openvrml/trunk openvrml
svn: OPTIONS (URL: 'http://svn.openvrml.org/svnroot/openvrml/trunk'): サーバに接続できませんでした (http://svn.openvrml.org)
というメッセージがでて、取得できませんでした。
コマンドでファイルを持ってこれなかったのでFirefoxからGUI操作でopenvrml-0.18.8.tar.gzをダウンロードしたのですが、アクセス権限を自己解決できずusrディレクトリ内にopenvrml-0.18.8を配置することができなかったというのが現状です。
このまま解決方法を闇雲に調べることもできるのですが、なにか致命的に遠回りしてるような気もするので、あまりにもひどいようでしたら正していただけたらなと、現状報告させていただきました。
御指導よろしくお願いいたします。
Re: UbuntuへのOpenVRMLのインストールについて
ええと、Linux環境では普通、作業は常に/home/username以下で行います
/home/komekami/srcというディレクトリでも作って、そこへ.tar.gzをダウンロードしましょう。
/home/komekami/srcというディレクトリでも作って、そこへ.tar.gzをダウンロードしましょう。
Re: UbuntuへのOpenVRMLのインストールについて
subversionなどのリポジトリから最新版を持ってくるやり方は、開発者の方ならともかく、普通のユーザーはやらないほうがいいです。
開発用リポジトリにはコンパイルが通るってだけのエラーがたくさんあるコードが置いてある場合があるからです。
tar.gzなどが公開されている場合はそれを使うのが基本です。
開発用リポジトリにはコンパイルが通るってだけのエラーがたくさんあるコードが置いてある場合があるからです。
tar.gzなどが公開されている場合はそれを使うのが基本です。
-
こめかみ
Re: UbuntuへのOpenVRMLのインストールについて
ありがとうございます。
現在以下の三つのパッケージ?を手探りでapt-getし、
>Boost (at least 1.37) <http://boost.org>
>libltdl (non-Windows only) <http://www.gnu.org/software/libtool/>
>libxml (non-Windows only) <http://xmlsoft.org>
/home/******-ubuntu00/src/openvrml-0.18.8という場所で
./configureしたところ以下のようなエラーがでました。
configure: error: in `/home/******-ubuntu00/src/openvrml-0.18.8':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
機械翻訳すると
構成:エラー:C++プリプロセッサ"/ lib / cppが"健全性チェックに失敗
どう対処したものかわからず、boost辺りでインストールミスでもしてるいないかとあたりをつけているのですが、どうすればいいでしょうか。
以下はでてきたメッセージのーの全体です。
******-ubuntu00@******ubuntu00-VirtualBox:~/src/openvrml-0.18.8$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/home/******-ubuntu00/src/openvrml-0.18.8':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
現在以下の三つのパッケージ?を手探りでapt-getし、
>Boost (at least 1.37) <http://boost.org>
>libltdl (non-Windows only) <http://www.gnu.org/software/libtool/>
>libxml (non-Windows only) <http://xmlsoft.org>
/home/******-ubuntu00/src/openvrml-0.18.8という場所で
./configureしたところ以下のようなエラーがでました。
configure: error: in `/home/******-ubuntu00/src/openvrml-0.18.8':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
機械翻訳すると
構成:エラー:C++プリプロセッサ"/ lib / cppが"健全性チェックに失敗
どう対処したものかわからず、boost辺りでインストールミスでもしてるいないかとあたりをつけているのですが、どうすればいいでしょうか。
以下はでてきたメッセージのーの全体です。
******-ubuntu00@******ubuntu00-VirtualBox:~/src/openvrml-0.18.8$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/home/******-ubuntu00/src/openvrml-0.18.8':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
Re: UbuntuへのOpenVRMLのインストールについて
g++コンパイラはインストールしましたか?
configureのログで
g++ no
となっていますが。
$ sudo apt-get install g++
configureのログで
g++ no
となっていますが。
$ sudo apt-get install g++
Re: UbuntuへのOpenVRMLのインストールについて
ちなみに、原因が分からないエラーが出た時、とりあえずエラー文をグーグル先生に聞いてみると幸せになれることがあります。
例えば今回のエラーだったら
「configure: error: C++ preprocessor "/lib/cpp" fails sanity check」
を検索すると検索結果でまさに「[Linux]confgureでC++ preprocessor “/lib/cpp” fails sanity check」というページが見つかります。
OpenVRMLについての記事ではないですが、エラーメッセージが同じときは原因が同じであることが多いですから参考になります。
例えば今回のエラーだったら
「configure: error: C++ preprocessor "/lib/cpp" fails sanity check」
を検索すると検索結果でまさに「[Linux]confgureでC++ preprocessor “/lib/cpp” fails sanity check」というページが見つかります。
OpenVRMLについての記事ではないですが、エラーメッセージが同じときは原因が同じであることが多いですから参考になります。
-
こめかみ
Re: UbuntuへのOpenVRMLのインストールについて
なるほど…ありがとうございます。
sudo apt-get install g++
で一歩前に進めました。
メッセージ上で
checking for g++... no
のようにnoと表示されているものは全部必要なものなのでしょうか。
結構数あって大変そうですね…
sudo apt-get install g++
で一歩前に進めました。
メッセージ上で
checking for g++... no
のようにnoと表示されているものは全部必要なものなのでしょうか。
結構数あって大変そうですね…
Re: UbuntuへのOpenVRMLのインストールについて
全部必要なわけではありません。なくてもいい場合もあります。
configureが成功すればそれでいいです。
configureが成功すればそれでいいです。
-
こめかみ
Re: UbuntuへのOpenVRMLのインストールについて
ありがとうございます。
エラーメッセージで検索しても英語が読みとけないために幸せになれなずに詰まっています…
configure: error: libboost_thread-mt not found
というエラーメッセージがでて調べています。
boostのマルチスレッド?がみつからないということなので日本語でも
boost マルチスレッド
といった検索ワードで調べてみているのですが、マルチスレッドプログラムの作り方みたいな記事ばかりがヒットします…
何度もお伺いしてしまいもうかなり気が引けているのですが、余裕がありましたら助けていただけると嬉しいです。
http://groups.google.com/group/boost-li ... bdbedd409f
英語の記事も自分なりにいろいろ読んでみてはいるのですが、自分の読解が正しいのかを確信できないでいます。
g++にlibboost_thread-mt.soのリンクができていないといった理解はあっているでしょうか。
それに対する対処はg++をインストールした後、boostをインストールしなおせば解消できるでしょうか。
それともなにかよりシンプルな解消方法があるのでしょうか。
よろしくお願いいたします。。。
エラーメッセージで検索しても英語が読みとけないために幸せになれなずに詰まっています…
configure: error: libboost_thread-mt not found
というエラーメッセージがでて調べています。
boostのマルチスレッド?がみつからないということなので日本語でも
boost マルチスレッド
といった検索ワードで調べてみているのですが、マルチスレッドプログラムの作り方みたいな記事ばかりがヒットします…
何度もお伺いしてしまいもうかなり気が引けているのですが、余裕がありましたら助けていただけると嬉しいです。
http://groups.google.com/group/boost-li ... bdbedd409f
英語の記事も自分なりにいろいろ読んでみてはいるのですが、自分の読解が正しいのかを確信できないでいます。
g++にlibboost_thread-mt.soのリンクができていないといった理解はあっているでしょうか。
それに対する対処はg++をインストールした後、boostをインストールしなおせば解消できるでしょうか。
それともなにかよりシンプルな解消方法があるのでしょうか。
よろしくお願いいたします。。。
Re: UbuntuへのOpenVRMLのインストールについて
恐らくapt-getで入れたboostでは足りないパッケージがあるんです。
うろ覚えですが、boost-all-devみたいなパッケージがあるのでそれを入れてください。
うろ覚えですが、boost-all-devみたいなパッケージがあるのでそれを入れてください。
-
こめかみ
Re: UbuntuへのOpenVRMLのインストールについて
ここまでご指導いただいて、大変心苦しいのですがいつ来るかわからなかったタイムリミットが来てしまいOpenVRMLのインストールを含めたOpenGLプログラムにVRML2.0による3Dモデルを読み込ませるライブラリの調査は断念することになりました。
このままでは教えていただいた皆さんにも失礼なのでインストール作業自体は折を見て個人的に取り組んでみたいと思いますが、現状では作業の続行をできなくなってしまったのでこのトピックは打ち切らせていただきたいと思います。
もう少しでインストールできそうな手ごたえだったので無念です。
お付き合いいただき本当にありがとうございました。
このままでは教えていただいた皆さんにも失礼なのでインストール作業自体は折を見て個人的に取り組んでみたいと思いますが、現状では作業の続行をできなくなってしまったのでこのトピックは打ち切らせていただきたいと思います。
もう少しでインストールできそうな手ごたえだったので無念です。
お付き合いいただき本当にありがとうございました。