エラーレコード--make:./ libtool:コマンドが見つかりません
Error Record Make
エラーメッセージ:
./libtool –mode = compile arm-linux-gcc -O2-I。 -c ./jcapimin.c
make:./ libtool:コマンドが見つかりません
libtoolがインストールされていないため、jpegソースコードをコンパイルするときにこの問題が発生しました。
libtoolをインストールする手順:
wget http://ftp.gnu.org/gnu/libtool/libtool-2.2.6a.tar.gz tar -zxvf libtool-2.2.6a.tar.gz ./configure --prefix=/usr/local make make install
インストールが完了すると、次のように表示されます。/usr/local/share/
libtoolフォルダーがディレクトリの下に生成され、一部のファイルがjpegソースコードディレクトリにコピーされます。
root@ubuntu:/usr/local/share/libtool/config# cp config.sub config.guess /root/decodeporting/jpeg-6b
次に、必ずjpegソースコードディレクトリにあることを確認してくださいmake clean
変数を再構成しましょう。
make clean ./configure --prefix=/opt/libdecode --exec-prefix=/opt/libdecode --enable-shared --enable-static -build=i386 -host=arm
最後に、インストールコマンドを実行します。
make make install-lib # Place library files and header files in the specified directory
インストールが完了すると、ライブラリ関数とヘッダーファイルが指定されたディレクトリに生成されていることがわかります。
参考記事: