| 编译glib2.2.0 glib2.2.3时,出现下列问题: 1:- if you get an error about an unknown SSIZE_MAX macro, then add #ifndef SSIZE_MAX #define SSIZE_MAX (0xFFFFFFFF) #endif 在glib/giounix.c里面添加上述宏定义,解决。 2:./.libs/libgobject-2.0.so: undefined reference to `g_value_take_string' 没有找到解决的方法,于是改为编译glib2.8.0,出现其他问题。 3:编译2.8.0时, ./configure check is ok but when i make it.... it says /usr/bin/ld:.libs/libglib-2.0.ver:1: parse error in VERSION script collect2: ld returned 1 exit status 解决方法:修改Configure文件。 leave the makefile alone. it's the configure script that needs fixing: Search the file for supports_anon_versioning=no You'll get something like this: ###################################### supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in ###################################### See that esac? right after that is where you'll put another supports_anon_versioning=no You'll have to do it in three places in the script Even if the HOWTO's use old versions in the examples the information still applies if you are compiling newer versions. 相关网站:http://playstation2-linux.com/forum/message.php?msg_id=49957 http://playstation2-linux.com/forum/message.php?msg_id=34648 4:编译libExosip时,make阶段出错。 sip_reg.c: In function `main': sip_reg.c:233: `IPPROTO_UDP' undeclared (first use in this function) sip_reg.c:233: (Each undeclared identifier is reported only once sip_reg.c:233: for each function it appears in.) 尚未解决。 |
arm交叉编译glib ortp osip eXosip
最新推荐文章于 2024-12-17 15:33:41 发布
本文详细介绍了在编译glib2.2.0到2.8.0版本时遇到的问题及解决方法,包括处理未知SSIZE_MAX宏、undefined引用和sip_reg.c中IPPROTO_UDP未声明等问题。同时,分享了解决libExosip编译阶段出错的经验。
1374

被折叠的 条评论
为什么被折叠?



