交叉编译针对ARM的nxlib-0.45
1、ftp://microwindows.censoft.com/pub/microwindows/nxlib-0.45.tar.gz,下载nxlib-0.45文件
2、tar zxvf nxlib-0.45.tar.gz,解压到当前目录
3、修改Makefile
# set to Microwindows and X11 include and lib directories
MWIN = /scratchbox/users/mike/home/mike/microwindows-0.91/src
X11=/usr/X11R6
X11_INCLUDE=/usr/include
MWIN_INCLUDE=$(MWIN)/include
MWIN_LIB=$(MWIN)/lib
X11_LIB=$(X11)/lib
NX_LIB=/home/mike/nxlib/lib
……
# set to Y to include (unmodifed X11) Xrm routines
INCLUDE_XRM=N
# shared library dependencies and shared library install dir
SOEXTRALIBS = -L$(MWIN_LIB) -lnano-X
INSTALL_DIR = $(NX_LIB)
# compiler flags
CC = /scratchbox/compilers/arm-gcc4.1-uclibc20061004/bin/arm-linux-uclibc-gcc
……
在宏OBJS 中添加目标文件Selection.o,该目标文件用来完成nxlib函数接口到nanox函数接口的转换。
4、Make
阅读(1661) | 评论(0) | 转发(0) |