tslibをクロスコンパイルしてインストールします

説明する

クロスコンパイル環境を最初にインストールする必要があります。

以下の画像は、私のクロスコンパイル環境のバージョンです。
ここに画像の説明を挿入

1.tslibをダウンロードします

githubダウンロードアドレス:https://github.com/libts/tslib/releases/tag/1.22

tslib公式ウェブサイト:http://www.tslib.org/

解凍:

tar xvf tslib-1.22.tar.gz
cd tslib-1.22

順番に実行します。

# step 1
./autogen.sh
# step 2
echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
# step 3
./configure --host=arm-linux-gnueabi --prefix=$(pwd)/_install --cache-file=arm-linux.cache
# step 4
make -j8 && make install

あなたはそれをチェックすることができます:

zh@zh-pc:~/桌面/soft/tslib-1.22$ cd _install/
zh@zh-pc:~/桌面/soft/tslib-1.22/_install$ 
zh@zh-pc:~/桌面/soft/tslib-1.22/_install$ tree
.
├── etc
│   └── ts.conf
├── include
│   └── tslib.h
└── lib
    ├── libts.la
    ├── libts.so -> libts.so.0.10.4
    ├── libts.so.0 -> libts.so.0.10.4
    ├── libts.so.0.10.4
    └── ts

4 directories, 6 files
zh@zh-pc:~/桌面/soft/tslib-1.22/_install$

ツリーコマンドがない場合は、次のコマンドをインストールできます。

sudo apt install tree

次に、これらのライブラリファイルと構成ファイルを対応するrootfsにコピーできます。

おすすめ

転載: blog.csdn.net/qq_17623363/article/details/120600695