
Ubuntu日本語フォーラム

ログインしていません。
はじめまして。
家で持て余しているPS3でLinuxが動くということで、
いろいろなサイトを参考にしてUbuntu9.04(AlternateCD)をインストールし、
難なく起動できました。
しかし、ソフトのインストールができず何か初歩的なミスがないかと思い、
こちらに相談させていただく事にしました。
お手数おかけしますが、ご指導のほどお願いします。
目的:HandBrakeというソフトを使えるようにしたい。
■以下独学での理解で経緯を説明します。
1、HandBrakeのLinux版(Ubuntu対応)インストーラはアーキテクチャが異なるため使えず、CLIソースコードをコンパイルする事に。
2、ここを参考に(http://trac.handbrake.fr/wiki/CompileGuide)して「gcc」「g++」をインストール
3、makeコマンドを実行すると次のようなエラーで中断?する(必要そうな部分だけ抽出しました)
−−−−−−−−−−−−−−−−−−
(前略)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/powerpc-linux-gnu/4.3.3/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [libmp4v2.la] エラー 1
cd `dirname contrib/libmp4v2.tar.gz` && CONTRIB=`pwd` &&
rm -rf libmp4v2 && (gzip -dc libmp4v2.tar.gz | tar xf - ) &&
cd libmp4v2 && ./configure --prefix=$CONTRIB &&
make && make install &&
strip -S $CONTRIB/lib/libmp4v2.a
...failed LibMp4v2 contrib/lib/libmp4v2.a ...
Cc libhb/muxmp4.o
libhb/muxmp4.c:7:25: error: mp4v2/mp4v2.h: No such file or directory
In file included from libhb/muxmp4.c:8:
./contrib/include/a52dec/a52.h:55: error: expected ‘)’ before ‘mm_accel’
./contrib/include/a52dec/a52.h:57: error: expected ‘)’ before ‘*’ token
./contrib/include/a52dec/a52.h:59: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
libhb/muxmp4.c:12: 警告: 関数宣言中に(型の無い)仮引数名があります
libhb/muxmp4.c:21: error: expected specifier-qualifier-list before ‘MP4FileHandle’
libhb/muxmp4.c:43: error: expected specifier-qualifier-list before ‘MP4TrackId’
libhb/muxmp4.c:50: error: expected specifier-qualifier-list before ‘MP4Duration’
libhb/muxmp4.c: In function ‘MP4CreateTextSample’:
libhb/muxmp4.c:70: error: ‘struct hb_text_sample_s’ has no member named ‘duration’
libhb/muxmp4.c:70: error: ‘MP4Duration’ undeclared (first use in this function)
・
・(中略)
・
libhb/muxmp4.c:653: 警告: implicit declaration of function ‘MP4Close’
libhb/muxmp4.c:653: error: ‘hb_mux_object_t’ has no member named ‘file’
libhb/muxmp4.c:660: 警告: implicit declaration of function ‘MP4Optimize’
libhb/muxmp4.c:660: error: ‘MP4_DETAILS_ERROR’ undeclared (first use in this function)
gcc -c -o libhb/muxmp4.o -Wall -g -O3 -funroll-loops -I./contrib/include -DSYS_LINUX -DUSE_PTHREAD -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DWORDS_BIGENDIAN -DHB_VERSION=\"svnエクスポートされたものです\" -DHB_BUILD=2009061501 -D__LIBHB__ -Ilibhb libhb/muxmp4.c
...failed Cc libhb/muxmp4.o ...
...skipped libhb.a for lack of libhb.a(muxmp4.o)...
...skipped HandBrakeCLI for lack of libhb.a...
...failed updating 2 target(s)...
...skipped 2 target(s)...
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
インターネットで調べてみたのですが、この先に進めず困ってしまいました。
やはりPS3のCPUがPPCなのが良くないのでしょうか。
それとも、もっと単純な事なのでしょうか・・
それすら解らない初心者ですがよろしくお願いします。
オフライン
For Ubuntu 8.10 you need:
* build-essential
* autoconf (gui)
* intltool (gui)
* libtool (gui)
* zlib1g-dev (gui)
* libbz2-dev
* libglib2.0-dev (gui)
* libdbus-glib-1-dev (gui)
* libgtk2.0-dev (gui)
* libhal-dev (gui)
* libhal-storage-dev (gui)
* libgtkhtml3.14-dev (gui)
* libnotify-dev (gui)
* libgstreamer0.10-dev (gui)
* libgstreamer-plugins-base0.10-dev (gui)
To install these packages:
$ sudo apt-get install -s subversion yasm build-essential autoconf intltool libtool zlib1g-dev libbz2-dev libglib2.0-dev libdbus-glib-1-dev libgtk2.0-dev libhal-dev libhal-storage-dev libgtkhtml3.14-dev libnotify-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
↑↑↑が必要だそうですがOKでしょうか。
あと依存関係でmonoが必要とインストーラーに言われましたが9.04では存在せず、8.04ではリポジトリから削除されていました。
参考URLにはmonoに付いては書かれていないみたいですが、
CPUの違いに付いては分かりません。問題が出るかも
オフライン
すいません。
sudo apt-get -s install
オプションの s を削除して実行してください。(あっ、しかもinstallの後に付けてる。でもオプションは機能するんだ)
オフライン
$ svn checkout svn://svn.handbrake.fr/HandBrake/trunk hb-trunk
$ cd hb-trunk
$ ./configure
Build is configured!
You may now cd into ./build and run make (/usr/bin/make).
↑準備OK
$ ./configure --launch
かなり長い、45分
-----------------------------------------------------
time end: Mon Jun 15 21:44:01 2009
duration: 42 minutes, 39 seconds (2559.71s)
result: SUCCESS
-----------------------------------------------------------
Build is finished!
You may now cd into ./build and examine the output.
オフライン
まとめます。
Ubuntu 9.04 (intel_processor)
・必要なパッケージ
$ sudo apt-get install -s subversion yasm build-essential autoconf intltool libtool zlib1g-dev libbz2-dev libglib2.0-dev libdbus-glib-1-dev libgtk2.0-dev libhal-dev libhal-storage-dev libgtkhtml3.14-dev libnotify-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
・ダウンロード
$ svn checkout svn://svn.handbrake.fr/HandBrake/trunk hb-trunk
・作業領域の移動
$ cd hb-trunk
・必要なシステム状況かの確認
$ ./configure
・問題ない場合の結果例
Build is configured! You may now cd into ./build and run make (/usr/bin/make).
・コンパイル
$ ./configure --launch
・完了通知
----------------------------------------------------- time end: Mon Jun 15 21:44:01 2009 duration: 42 minutes, 39 seconds (2559.71s) result: SUCCESS ----------------------------------------------------------- Build is finished! You may now cd into ./build and examine the output.
・作業領域を移動
$ cd build
・インストール
$ sudo make install
「メモ」
make uninstall
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
アプリケーション -> サウンドとビデオに登録されます。
@PS3でもエラーが出なければいいですね。
オフライン
あーーーーっコピペで -s オプションがぁっっっ。
#3と同じです、取ってください..orz
オフライン
お返事ありがとうございます!
しかもこんなに丁寧にプロセスを説明して頂いて><
ご自分のPCにもインストールしてみて頂いたようで感謝です。
早速試してみたのですがコンパイルの項目で次のようなエラーに終わります。
----------------
*******@*******:~/hb-trunk$ ./configure --launch
probe: host tuple...(pass) powerpc64-unknown-linux-gnu
compute: available architectures...(pass) powerpc64
find: ar...(pass) /usr/bin/ar
find: cp...(pass) /bin/cp
find: curl...(fail) not found
find: gcc...(pass) /usr/bin/gcc
find: gmake...(pass) /usr/bin/make
find: m4...(pass) /usr/bin/m4
find: mkdir...(pass) /bin/mkdir
find: gpatch...(pass) /usr/bin/patch
find: rm...(pass) /bin/rm
find: ranlib...(pass) /usr/bin/ranlib
find: strip...(pass) /usr/bin/strip
find: gtar...(pass) /bin/tar
find: wget...(pass) /usr/bin/wget
find: yasm...(pass) /usr/bin/yasm
find: xcodebuild...(fail) not found
find: lipo...(fail) not found
select: fetch...(pass) wget (/usr/bin/wget)
compute: build tuple...(pass) powerpc64-unknown-linux-gnu
probe: number of CPU cores...(pass) 2
probe: svn info...(pass) svn://svn.handbrake.fr/HandBrake/trunk
compute: project data...(pass) HandBrake (unofficial)
compute: makevar SRC/ = ..
compute: makevar BUILD/ = .
compute: makevar PREFIX/ = /usr/local
ERROR: build directory already exists: ./build (use --force to overwrite); configure stop.
----------------------------------------
ちなみに私が余計な事をしていてはいけないと思ったので
OSを再インストールしてチャレンジしました。が、同じ結果で終わりました。
確認なのですが、これはGUIバージョンのインストールをしているのですよね?
GUIがダメなのであきらめてコマンドラインで動かそうと思っていたのですが、、
これが出来れば言うこと無しです!
ご検討お願いします。
オフライン
と言うことは違いはCPU?
http://handbrake.fr/?article=download
スミマセン再インストール後に違いが出たとなると状況の再現が難しく検討困難です。
上記URLの物を試されるか、バーチャルPC環境を構築するのはどうでしょうか。
~/hb-trunk/doc/BUILD-Linuxが説明書になっています。
オフライン
bunpei による投稿:
早速試してみたのですがコンパイルの項目で次のようなエラーに終わります。
probe: host tuple...(pass) powerpc64-unknown-linux-gnu
compute: available architectures...(pass) powerpc64
find: curl...(fail) not found
find: xcodebuild...(fail) not found
find: lipo...(fail) not found
ERROR: build directory already exists: ./build (use --force to overwrite); configure stop.
必要なものが入っていない。
オフライン
お返事遅くなってすみません。
あれから時間がなくて試せませんでしたが、
昨夜もう一度チャレンジしてみました。
すると、なぜかできました!
なぜ急にインストール出来たのか原因はわかりませんが・・。
現在はlibdvd~~系のところでつまずいておりますが、もう少し自力でチャレンジしてみます。
いろいろとご指導いただきありがとうございました。
またよろしくお願いします!
オフライン