Get the App
SLTechnology News&Howtos  ›  Servers  › 

Take you to explore the mysteries of cross-compiling zlib based on SAIL-AM335

Shulou Source: shulou.com Published: 2022-06-03 03:10:47 09月22日 Update

Although the method of cross-compiling zlib is simple, it can be a bit confusing for beginners. Let's master this little knowledge together.

Cross-compile zlib

Tar xvf zlib-1.2.3.tar.gz-C.. / source

Cd.. / source/zlib-1.2.3

. / configure--prefix=/EmbSSH/install/zlib-1.2.3

Modify the following information in Makefile

CC=arm-none-linux-gnueabi-gcc

AR= arm-none-linux-gnueabi-ar rc

CPP = arm-none-linux-gnueabi-gcc-E

LDSHARED= arm-none-linux-gnueabi-gcc

Execution

Make

Make install

Tags: Crossover compilation confusion information beginners methods knowledge points mysteries Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia macOS Xiaomi Linux OPPO Reno