海思openssl等常用库编译记录

2,208次阅读
没有评论

openssl

参数:./config no-asm shared --prefix=/home/justchen/sourcecode/openssl --ross-compile-prefix=arm-hisiv300-linux-
生成Makefile后。需要修改makefile,找到有m64的地方,并删除。然后make&&make install

libnl

直接./configure ARCH=arm --prefix=/home/justchen/nfsdir/library/hisiv300/libnl CC=arm-hisiv300-linux-gcc --host=arm-linux LD=arm-hisiv300-linux-ld

zlib

export CC=arm-hisiv300-linux-gcc
./configure --prefix=/home/justchen/nfsdir/library/hisiv300/zlib
make
make install

freetype2

freetype2默认需要以来zlib,可以在configure时使用--without-zlib屏蔽(2.4.10版本,测试2.9.x版本无法跳过zlib)
./configure --prefix=/home/justchen/nfsdir/library/hisiv300/freetype CC=arm-hisiv300-linux-gcc --host=arm-linux --without-zlib

SDL2.0.7 1.2.15

./configure ARCH=arm --prefix=/home/justchen/nfsdir/library/hisiv300/sdl CC=arm-hisiv300-linux-gcc --host=arm-linux LD=arm-hisiv300-linux-ld --disable-alsa --disable-pulseaudio --enable-esd=no

SDL_TTF 2.0.14

目前海思这款CPU没显卡,不支持-lGl 编译略显折腾.
./configure ARCH=arm --prefix=/home/justchen/nfsdir/library/hisiv300/sdl_ttf CC=arm-hisiv300-linux-gcc --host=arm-linux --with-sdl-prefix=/home/justchen/nfsdir/library/hisiv300/sdl --with-freetype-prefix=/home/justchen/nfsdir/library/hisiv300/freetype --enable-shared --enable-static --disable-sdltest
手工修改Makefile,去掉OpenGL相关处理
找到有-DHAVE_OPENGL的地方然后删除
找到这个编译选项有-lGl 的地方把-lGl删除
手工修改 glfont.c.全部清空,写入如下int main(int argc ,char **argv) { return 0;}
参考http://blog.csdn.net/sukhoi27smk/article/details/22200709

SDL_TTF 2.0.11

在SDL TTF2.0.14版本需要SDL版本大于2.0, 使用2.0.11则不要求,并且configure后不需要修改makefile也可以

20191220 更新SDL各版本

./configure ARCH=arm --prefix=/work/armRunlibrary/hisiv500_A9/sdl2.0.10 CC=arm-hisiv500-linux-gcc --host=arm-linux LD=arm-hisiv500-linux-ld --disable-alsa --disable-pulseaudio --enable-esd=no CFLAGS="-mcpu=cortex-a9 -mfloat-abi=softfp -mfpu=neon -mno-unaligned-access -fno-aggressive-loop-optimizations"

./configure ARCH=arm --prefix=/work/armRunlibrary/hisiv500_A9/sdl_ttf2.0.15 CC=arm-hisiv500-linux-gcc --host=arm-linux  --with-ft-prefix=/work/armRunlibrary/hisiv500_A9/freetype2.6.5 --with-sdl-prefix=/work/armRunlibrary/hisiv500_A9/sdl2.0.10 --enable-shared --enable-static --disable-sdltest CFLAGS="-mcpu=cortex-a9 -mfloat-abi=softfp -mfpu=neon -mno-unaligned-access -fno-aggressive-loop-optimizations"

./configure --prefix=/work/armRunlibrary/hisiv500_A9/freetype2.6.5 CC=arm-hisiv500-linux-gcc LD=arm-hisiv500-linux-ld --host=arm-hisiv500-linux --without-zlib --with-bzip2=no --with-png=no
正文完
 0
评论(没有评论)