cad机械制图软件下载-电脑桌面图标蓝色底怎么取消

curses h
2023年4月1日发(作者:黑莓桌面管理器下载)

交叉编译那些事

那些年,交叉编译那些事

编译python2.7.11arm64

复制代码

1先编译个x86版本。

4../configure--disable-ipv6--enable-shared

5make

6

7编译arm64版本之前,先在configure⽂件前⾯添加

8ac_cv_file__dev_ptmx=yes

9ac_cv_file__dev_ptc=no

10

64

64

13../configure--host=aarch64-linux-gnu--prefix=/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu--disable-ipv6--

enable-shared--build=aarch64

14

15遇到错误1:

16Parser/pgen../Grammar/GrammarInclude/n/graminit.c

17Parser/pgen:Parser/pgen:cannotexecutebinaryfile

18make:***[Include/graminit.h]Error126

19拷贝的pgen即可解决。

20cp/home/trait/v8le/Python-2.7.11//Parser/pgen./Parser/

21

22make&&makeinstall

23在makeinstall的需要修改Makefile⾥PYTHONPATH,添加x86的lib⽬录,如:PYTHONPATH=/home/trait/v8le/Python-

2.7.11//build/-i686-2.7:(shell..)

复制代码

编译libffi-3.2.1arm64

64

64

3../configure--host=aarch64-linux-gnu--prefix=/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu--enable-shared

4make&&makeinstall

编译zlib-1.2.8arm64

1./configure--prefix=/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu

2修改Makefile

3修改gcc为aarch64-linux-gnu-gcc

4修改ar为aarch64-linux-gnu-ar

5修改ranlib为aarch64-linux-gnu-ranlib

6make&&makeinstall

编译glib-2.46.2arm64

复制代码

64

64

3

4echoac_cv_type_long_long=yes>

5echoglib_cv_stack_grows=no>>

6echoglib_cv_uscore=no>>

7echoac_cv_func_posix_getpwuid_r=yes>>

8echoac_cv_func_posix_getgrgid_r=yes>>

9

10../configure--host=aarch64-linux-gnu--prefix=/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu--cache-

10../configure--host=aarch64-linux-gnu--prefix=/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu--cache-

file=IBFFI_CFLAGS=-I/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu/include

LIBFFI_LIBS=/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu/lib64/

11

12遇到错误1:

13../../gobject/gclosure.c:28:17:fatalerror:ffi.h:Nosuchfileordirectory

14#include

15这是libffi安装的时候将它的头⽂件安装在lib⽬录下,如下解决:

16cd/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu/include

17ln-s../lib/libffi-3.2.1/include/.h

18ln-s../lib/libffi-3.2.1/include/rget.h

19

20遇到错误2:

21./.libs/:undefinedreferenceto`ffi_type_void'

22./.libs/:undefinedreferenceto`ffi_type_double'

23./.libs/:undefinedreferenceto`ffi_prep_cif'

24./.libs/:undefinedreferenceto`ffi_type_sint32'

25./.libs/:undefinedreferenceto`ffi_type_float'

26./.libs/:undefinedreferenceto`ffi_type_uint64'

27./.libs/:undefinedreferenceto`ffi_type_sint64'

28./.libs/:undefinedreferenceto`ffi_type_pointer'

29./.libs/:undefinedreferenceto`ffi_type_uint32'

30./.libs/:undefinedreferenceto`ffi_call'

31同样是libffi的安装问题,如下解决:

32cd/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu

33cp./lib64/*./lib

复制代码

编译libaio-0.3.110arm64

1makeprefix=/home/trait/v8le/linaro-aarch64/aarch64-linux-gnuCC=aarch64-linux-gnu-gcc

2makeprefix=/home/trait/v8le/linaro-aarch64/aarch64-linux-gnuCC=aarch64-linux-gnu-gccinstall

编译openssl-1.0.1sarm4

1CC=aarch64-linux-gnu-gcc./configno-asmshared--prefix=/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu

2make&&makeinstall

编译ncurses-6.0arm64&&编译libuuidarm64

64

64

3../configure--host=aarch64-linux-gnu--prefix=/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu--enable-shared

4make&&makeinstall

编译libfdt(device-tree-compiler_1.4.0)

1makeCC=aarch64-linux-gnu-gccAR=aarch64-linux-gnu-arRANLIB=aarch64-linux-gnu-ranlib

PREFIX=/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu

2makeCC=aarch64-linux-gnu-gccAR=aarch64-linux-gnu-arRANLIB=aarch64-linux-gnu-ranlib

PREFIX=/home/trait/v8le/linaro-aarch64/aarch64-linux-gnuinstall

编译yajl_1.0.12arm64

复制代码

1需先安装cmake

2第⼀步,修改CMakelistSET(YAJL_MAJOR12)后⾯添加:

3SET(CMAKE_C_COMPILER"aarch64-linux-gnu-gcc")

4第⼆步,注释掉下⾯3⾏:

5#ADD_CUSTOM_TARGET(test

6#./run_${CMAKE_CURRENT_BINARY_DIR}/test/yajl_test

7#WORKING_DIRECTORY${CMAKE_CURRENT_SOURCE_DIR}/test)

8

9./configure--prefix=/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu

10make&&makeinstall

复制代码

复制代码

编译xen4.4.1arm64

复制代码

1makedist-xenXEN_TARGET_ARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-CONFIG_EARLY_PRINTK=fastmodel

2makedist-xenXEN_TARGET_ARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-CONFIG_EARLY_PRINTK=xgene-storm

debug=y

3makedist-xenXEN_TARGET_ARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-CONFIG_EARLY_PRINTK=xgene-storm

debug=yMAX_PHYS_CPUS=8

4makedist-xenXEN_TARGET_ARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-CONFIG_EARLY_PRINTK=xgene-storm

debug=yHAS_GICV3=y

5makedist-xenXEN_TARGET_ARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-CONFIG_EARLY_PRINTK=vexpress

debug=yHAS_GICV3=y

6

7带dtb编译:

8makedist-xenXEN_TARGET_ARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-CONFIG_EARLY_PRINT=fastmodel

CONFIG_DTB_FILE=/home/trait/workspace/linux-3.14.65/arch/arm64/boot/dts/

复制代码

编译xentoolsarm64

复制代码

1./configure--host=aarch64-linux-gnu--build=aarch64glib_CFLAGS=-I/home/trait/v8le/linaro-aarch64/aarch64-linux-

gnu/include/glib-2.0glib_LIBS=/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu/lib/

2

3遇到错误1:

4configure:error:./configurefailedfortools

5这是ncurses的⽬录问题,如下解决:

6cd/home/trait/v8le/linaro-aarch64/aarch64-linux-gnu/include

7ln-s./ncurses/es.h

8

9makeXEN_TARGET_ARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-CONFIG_EARLY_PRINT=fastmodel

复制代码

编译linux-3.14+xen⽀持的

复制代码

1makeARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-defconfig

2sed-e's/.*CONFIG_XENisnotset/CONFIG_XEN=y/g'-

3sed-e's/.*CONFIG_BLK_DEV_LOOPisnotset/CONFIG_BLK_DEV_LOOP=y/g'-

4makeARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-oldconfig

5makeARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-Image

6makeARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-dtbs

7makeARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-modules

8makeARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-modules_install

INSTALL_MOD_PATH=/home/trait/modules_install

9

10makeARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-menuconfig

11makeARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-Image

12makeARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-arm64_fr_defconfig

13-------------------------------------------------------------------------------------------------------------------------

14

:

16

17#mkimage-Aarm-Tkernel-a0x80200000-e0x80200000-Cnone-d/home/trait/workspace/xen/xen/xenxen-

uImage

18

19mkimage-Aarm64-Tkernel-a0x80800000-e0x80800000-Cnone-dxenuXen

20mkimage-Aarm64-Tkernel-a0x80200000-e0x80200000-Cnone-dxenuXen

21--------------------------------------------------------------------------------------------------------------------------

22makeARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-xgene_xen_defconfig

22makeARCH=arm64CROSS_COMPILE=aarch64-linux-gnu-xgene_xen_defconfig

23makeCROSS_COMPILE=arm-linux-gnueabihf-ARCH=armvexpress_defconfig

24makeCROSS_COMPILE=arm-linux-gnueabihf-ARCH=armzImage

25qemu-system-arm-Mvexpress-a9-m512M-kernel/home/trait/qemu-linux/linux-3.14.65/arch/arm/boot/zImage-

nographic-append"root=/dev/mmcblk0console=ttyAMA0"-3

复制代码

编译uboot2013-10

1先安装arm-linux-gnu-gcc,⽹上下载

2

3#makeARCH=armCROSS_COMPILE=arm-linux-gnu-smdk2410_config与下⾯的效果相同

4makesmdk2410_config

5makeall

xenu-boot

复制代码

1setenvipaddr10.60.15.53;setenvserverip10.60.40.11;setenvxen_addr_r0x90000000;setenvnetmask

255.255.0.0;setenvkern_addr_r0x98000000;setenvfdt_addr_r0x99000000

2setenvxen_load'tftp${xen_addr_r}uXen';setenvxen_dtb'tftp${fdt_addr_r};fdtaddr${fdt_addr_r};fdtresize;'

3setenvxen_boot'setenvbootargs${bootargs_xen};bootm${xen_addr_r}-${fdt_addr_r}'

4setenvdom0_node'fdtset/chosen/module@0compatiblexen,linux-zimagexen,multiboot-module'

5setenvxen_dom0'tftp${kern_addr_r}Image;rundom0_node;fdtset/chosen/module@0reg<0x0${kern_addr_r}

0x${filesize}>'

6setenvxen_run'runxen_dtbxen_dom0xen_load;fdtprint/chosen;runxen_boot'

7setenvbootargs_xen'conswitch=xsync_consoledom0_mem=1Gdom0_max_vcpus=1console=dtuart

dtuart=/smb/motherboard/amba/uart@28001000'

8

9#setenvbootargs_xen'conswitch=xsync_consoledom0_mem=1Gdom0_max_vcpus=1console=dtuart

dtuart=/smb/uart@28001000'

复制代码

编译gdbserveraarch64

复制代码

1--------------------主机-----------------------------

4../configure--target=aarch64-linux-gnu

5

6make

7---------------------⽬标机--------------------------

64

64

10../configure--prefix=/home/trait/gnu-tools/install--target=aarch64-linux-gnu--host=aarch64-linux-gnu

11makeCC=/home/trait/v8le/linaro-aarch64/bin/aarch64-linux-gnu-gcc

更多推荐

curses h