libX11、libxcb交叉编译
libX11、libxcb交叉编译@@@@@@@@@@VMware和Ubuntu安装步骤参考这个网址:https://blog.csdn.net/beita08/article/details/80628840@@@@@@@@@@----------libX11----------@@@@@@@@@@配置编译器gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gn
@@@@@@@@@@
VMware和Ubuntu安装步骤参考这个网址:https://blog.csdn.net/beita08/article/details/80628840
@@@@@@@@@@
----------libX11----------
@@@@@@@@@@
配置编译器gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf:
下载地址:http://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/arm-linux-gnueabihf/
拷贝、解压,得到编译器目录:/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/
@@@@@@@@@@
@@@@@@@@@@
编译libX11-1.6.9:
下载地址:https://www.x.org/releases/individual/lib/
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf
报错:
checking keysym definitions... ./configure: line 21028: --variable=includedir: command not found
configure: error: /X11 doesn't exist or isn't a directory
在configure文件的21028行可以找到:KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11故可知需先编译并安装xproto,然后通过./configure --help(遇到问题要习惯用帮助命令)找到并增加配置选项:--with-keysymdefdir=
&&&&&&&&&&
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf --with-keysymdefdir=/opt/libX11_install/include/X11
报错:
configure: error: in `/home/hx/compile/libX11-1.7.0':
configure: error: The pkg-config script could not be found or is too old.
安装软件:sudo apt-get install pkg-config
&&&&&&&&&&
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf --with-keysymdefdir=/opt/libX11_install/include/X11
报错:
checking whether malloc(0) returns NULL... configure: error: in `/home/hx/compile/libX11-1.7.0':
configure: error: cannot run test program while cross compiling
增加配置选项:--enable-malloc0returnsnull
&&&&&&&&&&
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf --with-keysymdefdir=/opt/libX11_install/include/X11 --enable-malloc0returnsnull
编译:make
报错:X11/X.h:没有那个文件或目录
安装xproto后在/opt/libX11_install/include/X11目录下是有这个头文件的,故设置环境以增加头文件:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libX11_install/lib/pkgconfig
&&&&&&&&&&
设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libX11_install/lib/pkgconfig
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf --with-keysymdefdir=/opt/libX11_install/include/X11 --enable-malloc0returnsnull
编译:make
报错:X11/Xtrans/Xtrans.h:没有那个文件或目录
编译并安装xtrans
&&&&&&&&&&
编译:make
报错:X11/extensions/XKBproto.h:没有那个文件或目录
编译并安装kbproto
&&&&&&&&&&
编译:make
报错:X11/extensions/XI.h:没有那个文件或目录
编译并安装inputproto
&&&&&&&&&&
编译:make
报错:xcb/xcb.h:没有那个文件或目录
编译并安装libxcb
&&&&&&&&&&
编译:make
报错:X11/extensions/xf86bigfproto.h:没有那个文件或目录
编译并安装xorgproto并重新设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libX11_install/lib/pkgconfig
&&&&&&&&&&
设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libX11_install/lib/pkgconfig
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf --with-keysymdefdir=/opt/libX11_install/include/X11 --enable-malloc0returnsnull
编译:make
安装:sudo make install
@@@@@@@@@@
**********
编译xproto-7.0.31:
下载地址:https://xorg.freedesktop.org/archive/individual/proto/
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf
编译:make
安装:sudo make install
**********
**********
编译xtrans-1.4.0:
下载地址:https://xorg.freedesktop.org/archive/individual/lib/
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf
编译:make
安装:sudo make install
**********
**********
编译kbproto-1.0.7:
下载地址:https://xorg.freedesktop.org/archive/individual/proto/
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf
编译:make
安装:sudo make install
**********
**********
编译inputproto-2.3.2:
下载地址:https://xorg.freedesktop.org/archive/individual/proto/
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf
编译:make
安装:sudo make install
**********
**********
编译libxcb-1.13:
下载地址:https://www.x.org/releases/individual/xcb/libxcb-1.13.tar.gz
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf
报错:
configure: error: Package requirements (xcb-proto >= 1.13) were not met:
No package 'xcb-proto' found
编译并安装xcb-proto并设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libX11_install/lib/pkgconfig
&&&&&&&&&&
设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libX11_install/lib/pkgconfig
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf
编译:make
报错:X11/Xauth.h:没有那个文件或目录
编译并安装libXau并重新设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libX11_install/lib/pkgconfig
&&&&&&&&&&
设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libX11_install/lib/pkgconfig
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf
编译:make
安装:sudo make install
**********
**********
编译xcb-proto-1.13:
下载地址:https://www.x.org/releases/individual/xcb/xcb-proto-1.13.tar.gz
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf
编译:make
安装:sudo make install
**********
**********
编译libXau-1.0.9:
下载地址:https://www.x.org/releases/individual/lib/libXau-1.0.9.tar.gz
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf
编译:make
报错:X11/Xfuncproto.h:没有那个文件或目录
文件前面已编译并安装得到,设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libX11_install/lib/pkgconfig
&&&&&&&&&&
设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libX11_install/lib/pkgconfig
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf
编译:make
安装:sudo make install
**********
**********
编译xorgproto-2020.1:
下载地址:https://xorg.freedesktop.org/archive/individual/proto/
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libX11_install --host=arm-linux-gnueabihf
编译:make
安装:sudo make install
**********
----------libxcb----------
@@@@@@@@@@
编译libxcb-1.13(和前文一致,只是换了个安装路径):
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf
报错:
configure: error: Package requirements (xcb-proto >= 1.13) were not met:
No package 'xcb-proto' found
编译并安装xcb-proto并设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libxcb_install/lib/pkgconfig
&&&&&&&&&&
设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libxcb_install/lib/pkgconfig
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf
编译:make
报错:X11/Xauth.h:没有那个文件或目录
编译并安装libXau并重新设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libxcb_install/lib/pkgconfig
&&&&&&&&&&
设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libxcb_install/lib/pkgconfig
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf
编译:make
报错:X11/Xfuncproto.h:没有那个文件或目录
配置增加前文已编译和安装好的头文件和库路径:CFLAGS=-I/opt/libX11_install/include LDFLAGS=-L/opt/libX11_install/lib
&&&&&&&&&&
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf CFLAGS=-I/opt/libX11_install/include LDFLAGS=-L/opt/libX11_install/lib
编译:make
安装:sudo make install
@@@@@@@@@@
**********
编译xcb-proto-1.13:
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf
编译:make
安装:sudo make install
**********
**********
编译libXau-1.0.9:
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf
编译:make
报错:X11/Xfuncproto.h:没有那个文件或目录
配置增加前文已编译和安装好的头文件和库路径:CFLAGS=-I/opt/libX11_install/include LDFLAGS=-L/opt/libX11_install/lib
&&&&&&&&&&
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf CFLAGS=-I/opt/libX11_install/include LDFLAGS=-L/opt/libX11_install/lib
编译:make
安装:sudo make install
**********
----------libxcb的几个延伸----------
@@@@@@@@@@
编译xcb-util-image-0.3.9:
下载地址:https://www.x.org/releases/individual/xcb/xcb-util-image-0.3.9.tar.gz
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf
报错:
configure: error: Package requirements (xcb-shm) were not met:
No package 'xcb-shm' found
编译并安装xcb-util并设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libxcb_install/lib/pkgconfig
&&&&&&&&&&
设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libxcb_install/lib/pkgconfig
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf
编译:make
报错:X11/Xfuncproto.h: No such file or directory
配置增加前文已编译和安装好的头文件和库路径:CFLAGS=-I/opt/libX11_install/include LDFLAGS=-L/opt/libX11_install/lib
&&&&&&&&&&
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf CFLAGS=-I/opt/libX11_install/include LDFLAGS=-L/opt/libX11_install/lib
编译:make
安装:sudo make install
@@@@@@@@@@
**********
编译xcb-util-0.3.9:
下载地址:https://www.x.org/releases/individual/xcb/xcb-util-0.3.9.tar.gz
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf
编译:make
报错:xcb/xcb.h: No such file or directory
文件前面已编译并安装得到,设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libxcb_install/lib/pkgconfig
&&&&&&&&&&
设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libxcb_install/lib/pkgconfig
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf
编译:make
安装:sudo make install
**********
@@@@@@@@@@
编译xcb-util-keysyms-0.3.9:
下载地址:https://www.x.org/releases/individual/xcb/xcb-util-keysyms-0.3.9.tar.gz
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf
编译:make
报错:xcb/xcb.h: No such file or directory
文件前面已编译并安装得到,设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libxcb_install/lib/pkgconfig
&&&&&&&&&&
设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libxcb_install/lib/pkgconfig
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf
编译:make
报错:X11/keysymdef.h: No such file or directory
配置增加前文已编译和安装好的头文件和库路径:CFLAGS=-I/opt/libX11_install/include LDFLAGS=-L/opt/libX11_install/lib
&&&&&&&&&&
设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libxcb_install/lib/pkgconfig
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf CFLAGS=-I/opt/libX11_install/include LDFLAGS=-L/opt/libX11_install/lib
编译:make
安装:sudo make install
@@@@@@@@@@
@@@@@@@@@@
编译xcb-util-renderutil-0.3.9:
下载地址:https://www.x.org/releases/individual/xcb/xcb-util-renderutil-0.3.9.tar.gz
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf
编译:make
报错:xcb/render.h: No such file or directory
文件前面已编译并安装得到,设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libxcb_install/lib/pkgconfig
&&&&&&&&&&
设置环境:export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/libxcb_install/lib/pkgconfig
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf
编译:make
安装:sudo make install
@@@@@@@@@@
@@@@@@@@@@
编译xcb-util-wm-0.3.9:
下载地址:https://www.x.org/releases/individual/xcb/xcb-util-wm-0.3.9.tar.gz
配置:CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ./configure --prefix=/opt/libxcb_install --host=arm-linux-gnueabihf
编译:make
报错:checking for m4 that supports -I option... configure: error: could not find m4 that supports -I option
@@@@@@@@@@
最后一个xcb-util-wm的错误没有解决掉,如果有人知道怎么解决了,麻烦看在前文或对你有所用处的情况下附上详细办法(整个流程本来是为qt带-qt-xcb编译准备的,结果后来用了linuxfb也就没在管这最后一项的编译了)
更多推荐
所有评论(0)