我按照实验指导书编译qtopia-free-2.1.1,一直出现下面这种错误
/2410Qt/qtopia-free-2.1.1/lib/libqtopia.so: undefined reference to `uuid_generate'
collect2: ld returned 1 exit status
make[5]: *** [fifteen] 错误 1
make[5]: Leaving directory `/2410Qt/qtopia-free-2.1.1/src/games/fifteen'
make[4]: *** [all] 错误 2
make[4]: Leaving directory `/2410Qt/qtopia-free-2.1.1/src/games/fifteen'
make[3]: *** [sub-games-fifteen] 错误 2
make[3]: Leaving directory `/2410Qt/qtopia-free-2.1.1/src'
make[2]: *** [sub-src-components_pro] 错误 2
make[2]: Leaving directory `/2410Qt/qtopia-free-2.1.1/src'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/2410Qt/qtopia-free-2.1.1/src'
make: *** [all] 错误 2
我查了一些资料,知道是缺少uuid库的问题,安装了e2fsprogs-libs-1.37,
找到了libuuid.a、 libuuid.so.* 文件copy到/usr/lib/ 和qt-2. 3. 2/lib
还有qte和qtopia的lib目录中,编译后还是出现上诉错误
后来,在重新配置 . /configure -l uuid 使用了uuid参数,编译时产生了
如下的错误
amrrecord.cpp: In member function ‘bool AmrRecorderPlugin::amrFlush()’:
amrrecord.cpp:439: error: ‘PackBits’ was not declared in this scope
make[5]: *** [.obj/release-shared/amrrecord.o] 错误 1
make[5]: Leaving directory `/2410Qt/qtopia-free-2.1.1/src/3rdparty/plugins/codecs/libamr'
make[4]: *** [all] 错误 2
make[4]: Leaving directory `/2410Qt/qtopia-free-2.1.1/src/3rdparty/plugins/codecs/libamr'
make[3]: *** [sub-3rdparty-plugins-codecs-libamr] 错误 2
make[3]: Leaving directory `/2410Qt/qtopia-free-2.1.1/src'
make[2]: *** [sub-src-components_pro] 错误 2
make[2]: Leaving directory `/2410Qt/qtopia-free-2.1.1/src'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/2410Qt/qtopia-free-2.1.1/src'
make: *** [all] 错误 2
试了很多方法,还是一愁莫展,哪位大侠能指点一二.......
我的系统是 ubuntu7.10 ,编译工具是gcc-3.3