摘要: 交叉编译的时候不能使用本地(i686机器,即PC机器,研发机器)机器上的库,但是在做编译链接的时候默认的是使用本地库,即/usr/lib,/lib两个目录。因此,在交叉编译的时候,要采取一些方法使得在编译链接的时候找到需要的库。 首先,要知道:编译的时候只需要头文档,真正实际的库文档在链接的时候用到。 (这是我的理解,假如有不对的地方,敬请网上各位大侠指教) 然后,讲讲如何在交叉编译链接的时候找到需要的库。(1)、交叉编译时候直接使用-L和-I参数指定搜索非标准的库文档和头文档的路径。例如:arm-linux-gcc test.c -L/usr/local/arm/2.95.3/arm-lin 阅读全文
posted @ 2012-01-13 18:29 夏大王 阅读(8501) 评论(0) 推荐(2) 编辑
摘要: 编译microwindows-0.92时,遇到一些依赖问题,记录下来,以便来着参详root@ubuntu:/home/allen/share/ui/microwindows-0.92/src# ./xconfigure -bash: ./xconfigure: /usr/bin/wish: bad interpreter: No such file or directoryroot@ubuntu:/home/allen/share/ui/microwindows-0.92/src# wishThe program 'wish' can be found in the follo 阅读全文
posted @ 2012-01-13 14:53 夏大王 阅读(940) 评论(0) 推荐(0) 编辑