主题:[求助] 请教移植libxml2 共有53156人关注过本帖 |
---|
![]() 单少爷 |
1楼 信息 | 搜索 | 邮箱 |
![]() ![]() ![]() ![]() |
[求助] 请教移植libxml2 ![]() 宿主机:Win8.1 + vmware11 linux系统:ubuntu 12.04 编译器目录:/opt/arm-2009q3/bin/arm-none-linux-gnueabi 环境变量: /etc/profile 添加 export PATH=$PATH:/opt/arm-2009q3/bin libxml2: V2.9.2 程序目录:win8共享目录,ubuntu通过挂载共享,在宿主机上编译 目标板:EM3352 + linux 3.12.10 编译过程:解压,然后执行./configure --host=arm-none-linux-gnueabi,但是关于arm的都提示no checking build system type... i686-pc-linux-gnu checking host system type... arm-none-linux-gnueabi checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-none-linux-gnueabi-strip... no checking for strip... strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for arm-none-linux-gnueabi-gcc... no checking for gcc... gcc 即便编译成功也是x86 linux的libxml2的相关库,无法链接到arm的程序中,尝试过将程序目录直接放到ubuntu的目录,但提示依旧是找不到arm相关的编译工具。 请教这个libxml2移植的过程。
|
单帖管理 | 引用 | 回复 ![]() |
![]() 单少爷 |
2楼 信息 | 搜索 | 邮箱 |
![]() ![]() ![]() ![]() |
![]()
你好!我在终端上任意目录 arm-none-linux-gnueabi-gcc -v 是可以得到编译器具体信息,编译器的build,host,prefix以及sysroot,arch,cpu等信息。
|
单帖管理 | 引用 | 回复 ![]() |
![]() 单少爷 |
3楼 信息 | 搜索 | 邮箱 |
![]() ![]() ![]() ![]() |
![]()
非常感谢提供的信息,的确是环境变量的问题,也就是sudo操作时,找不到arm编译器,后来,su登录root后,此问题就解决了。现在已经在em3352上运行xml的测试应用程序了。
|
单帖管理 | 引用 | 回复 ![]() |