開いている VMWare ツールをクロス コンパイルしています。私はglibをプリコンパイルし、PKG_CONFIG_PATH
変数を設定してそれらをリンクしています。リンク段階で次のエラーが発生します。
libtool: link: warning: library `/u/git/extlib_vmtools/usr/local/lib/libgthread-2.0.la' was moved.
/bin/grep: /usr/local/lib/libglib-2.0.la: No such file or directory
/bin/sed: can't read /usr/local/lib/libglib-2.0.la: No such file or directory
libtool: link: `/usr/local/lib/libglib-2.0.la' is not a valid libtool archive
make[2]: *** [libhgfs.la] Error 1
make[2]: Leaving directory `/u/git/extlib_vmtools/src/open-vm-tools-11.0.0-14549434/libhgfs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/u/git/extlib_vmtools/src/open-vm-tools-11.0.0-14549434'
この役立つ投稿 ( make の DESTDIR と PREFIX ) に従いましたが、何かが足りないと思います。--prefix
デプロイ時にデフォルトのディレクトリ構造を使用したいので、どのモジュールにも設定しませんでした。
glib コンパイル (下位モジュール):
./configure --host=${CROSS_COMPILE_HOST}
make
make install DESTDIR=/home/xport/
open-vmware-tools のコンパイル (上位モジュール):
export PKG_CONFIG_SYSROOT_DIR="/home/xport/"
export PKG_CONFIG_PATH="/home/xport/usr/local/lib/pkgconfig"
autoreconf -i
./configure --host=${CROSS_COMPILE_HOST} --enable-lib64=no --without-kernel-modules --without-pam --disable-vgauth --without-x --without-gtk3 --without-gtk2 --without-gtkmm3 --without-gtkmm --enable-resolutionkms=no --enable-deploypkg=no
make
make install DESTDIR=/home/xport # <-- I don't even get here
変数を設定する前にPKG_CONFIG_PATH
、.h ファイルが見つからないために 2 回目の make が失敗しました.pc
。何が欠けていますか?ありがとう !