当前位置: 代码迷 >> QT开发 >> 使用make命令编译 ARM9下的qtGui程序出错cannot find -luuid
  详细解决方案

使用make命令编译 ARM9下的qtGui程序出错cannot find -luuid

热度:268   发布时间:2016-04-25 05:09:31.0
使用make命令编译 ARM9下的qtGui程序出错cannot find -luuid,求助
详细出错信息如下
arm-linux-g++ -o mycam .obj/release-shared/camera.o .obj/release-shared/main.o .obj/release-shared/mywindow.o .obj/release-shared/picview.o .obj/release-shared/moc_mywindow.o .obj/release-shared/moc_picview.o -luuid -L/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/lib -L/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/lib -lqte
/opt/toolchains/arm920t-eabi/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/../../../../arm-angstrom-linux-gnueabi/bin/ld: skipping incompatible /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/lib/libuuid.so when searching for -luuid
/opt/toolchains/arm920t-eabi/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/../../../../arm-angstrom-linux-gnueabi/bin/ld: skipping incompatible /opt/toolchains/arm920t-eabi/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/../../../../arm-angstrom-linux-gnueabi/lib/libuuid.so when searching for -luuid
/opt/toolchains/arm920t-eabi/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/../../../../arm-angstrom-linux-gnueabi/bin/ld: skipping incompatible /opt/toolchains/arm920t-eabi/arm-angstrom-linux-gnueabi/bin/../../arm-angstrom-linux-gnueabi/lib/libuuid.so when searching for -luuid
/opt/toolchains/arm920t-eabi/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/../../../../arm-angstrom-linux-gnueabi/bin/ld: cannot find -luuid
collect2: ld returned 1 exit status
make: *** [mycam] Error 1

哪位高手可以帮我解答下疑问,感激不尽,最好能讲清楚原理,比如ld是怎么查找luuid的,本人比较喜欢寻根究底

------解决方案--------------------
结合具体环境看看。
网上搜了下看下这个。
http://blog.csdn.net/Chenah/archive/2010/01/23/5248882.aspx

Qtopia在arm上的移植错误:cannot find -luuid 收藏
解决办法:

交叉编译e2fsprogs-1.38.tar.gz
$tar zxvf e2fsprogs-1.38.tar.gz
$cd e2fsprogs-1.38
$export CC=arm-linux-gcc //指定编译器
$./configure --host=arm-linux –enable-elf-shlibs
$make
$cd lib //进入lib目录
$cp libuuid.* /xxxxx/qtopia-free-2.1.1/lib //libuuid开头的库文件都拷贝到qtopia的lib目录
$cp –r uuid /xxxxx/qtopia-free-2.1.1/include //uuid文件夹拷贝到qtopia的include 文件夹下
  相关解决方案