谁是迪恩 2016-07-05 06:01
浏览 1654

arm交叉编译STLport-5.2.1库,编译错误?

编译环境:
Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-24-generic x86_64)
编译器:
arm-hisiv300nptl-linux
编译过程:
$tar -xvf STLport-5.2.1.tar.bz2
$cd STLport-5.2.1
$./configure --target=arm-hisiv300-linux
$make

编译错误打印:
In file included from ../../src/c_locale.c:26:0:
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_ctype_name’:
../../src/c_locale_glibc/c_locale_glibc2.c:162:27: error: dereferencing pointer to incomplete type
return ((locale_t)__loc)->names[LC_CTYPE];
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_numeric_name’:
../../src/c_locale_glibc/c_locale_glibc2.c:172:27: error: dereferencing pointer to incomplete type
return ((locale_t)
loc)->names[LC_NUMERIC];
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_time_name’:
../../src/c_locale_glibc/c_locale_glibc2.c:177:27: error: dereferencing pointer to incomplete type
return ((locale_t)
loc)->names[LC_TIME];
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_collate_name’:
../../src/c_locale_glibc/c_locale_glibc2.c:182:27: error: dereferencing pointer to incomplete type
return ((locale_t)
loc)->names[LC_COLLATE];
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_monetary_name’:
../../src/c_locale_glibc/c_locale_glibc2.c:187:27: error: dereferencing pointer to incomplete type
return ((locale_t)
loc)->names[LC_MONETARY];
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_messages_name’:
../../src/c_locale_glibc/c_locale_glibc2.c:192:27: error: dereferencing pointer to incomplete type
return ((locale_t)
loc)->names[LC_MESSAGES];
^
In file included from ../../src/stlport_prefix.h:21:0,
from ../../src/c_locale.c:19:
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_ctype_table’:
../../src/c_locale_glibc/c_locale_glibc2.c:283:74: error: dereferencing pointer to incomplete type
_STLP_STATIC_ASSERT( sizeof(_Locale_mask_t) == sizeof(((locale_t)
loc)->ct ype_b[0]) )
^
../../stlport/stl/config/features.h:311:66: note: in definition of macro ‘_STLP_ STATIC_ASSERT’
# define _STLP_STATIC_ASSERT(expr) typedef char __static_assert[expr ? 1 : -1] ;
^
In file included from ../../src/c_locale.c:26:0:
../../src/c_locale_glibc/c_locale_glibc2.c:284:27: error: dereferencing pointer to incomplete type
return ((locale_t)
loc)->ctype_b;
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_toupper’:
../../src/c_locale_glibc/c_locale_glibc2.c:288:27: error: dereferencing pointer to incomplete type
{ return ((locale_t)
loc)->ctype_toupper[c]; }
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_tolower’:
../../src/c_locale_glibc/c_locale_glibc2.c:291:27: error: dereferencing pointer to incomplete type
{ return ((locale_t)
loc)->ctype_tolower[c]; }
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_decimal_point’:
../../src/c_locale_glibc/c_locale_glibc2.c:463:10: error: invalid type argument of unary ‘*’ (have ‘int’)
return *(nl_langinfo_l(RADIXCHAR, (locale_t)
loc));
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_thousands_sep’:
../../src/c_locale_glibc/c_locale_glibc2.c:468:10: error: invalid type argument of unary ‘*’ (have ‘int’)
return *(nl_langinfo_l(THOUSEP, (locale_t)__loc));
^

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
    • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
    • ¥15 乘性高斯噪声在深度学习网络中的应用
    • ¥15 运筹学排序问题中的在线排序
    • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
    • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
    • ¥15 C++ 头文件/宏冲突问题解决
    • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
    • ¥50 安卓adb backup备份子用户应用数据失败
    • ¥20 有人能用聚类分析帮我分析一下文本内容嘛