• 6079阅读
  • 2回复

编译qt embedded出错 qlocale.cpp文件报错 [复制链接]

上一主题 下一主题
离线lhembed
 
只看楼主 正序阅读 楼主  发表于: 2010-07-31
../../corelib/tools/qlocale.cpp: In function ‘char* qdtoa(double, int, int, int*, int*, char**, char**)’:
../../corelib/tools/qlocale.cpp:6548: error: ‘fenv_t’ was not declared in this scope
../../corelib/tools/qlocale.cpp:6548: error: expected ‘;’ before ‘envp’
../../corelib/tools/qlocale.cpp:6549: error: ‘envp’ was not declared in this scope
../../corelib/tools/qlocale.cpp:6549: error: ‘feholdexcept’ was not declared in this scope
../../corelib/tools/qlocale.cpp:6564: error: ‘fesetenv’ was not declared in this scope
make[1]: *** [.obj/release-static-emb-arm/qlocale.o] 错误 1
make[1]:正在离开目录 `/home/lhembed/qt-embedded/qt-embedded-linux-opensource-src-4.5.3/src/tools/bootstrap'
make: *** [sub-tools-bootstrap-make_default-ordered] 错误 2

我用的交叉编译器版本是4.1.2


离线zjtongyong
只看该作者 2楼 发表于: 2011-09-06
你确定这样能解决
离线lhembed
只看该作者 1楼 发表于: 2010-08-01
问题已经解决 只要把/USR/INCLUDE下的FENV.H 拷贝到qlocale.cpp同目录

然后修改qlocale.cpp的#include <fenv.h>成#include ""fenv.h"
快速回复
限100 字节
 
上一个 下一个