intel amt sdk 5.1.1 编译失败??

xdd123www 2009-12-31 09:31:09
在linux编译SDK失败,完全按照文档的流程进行的。
环境都检查过,没有发现缺少的包。

大家有没有遇到过类似的情况?

# make
g++ -Dlinux -DWITH_OPENSSL -DNDEBUG -Wall -Wno-deprecated -Wno-unused -Wno-missing-braces -fPIC -I../../../../Common/ThirdParty/gSOAP -I../../../Include -c ../../../../Common/ThirdParty/gSOAP/httpDigest.cpp -o ../../../../Common/ThirdParty/gSOAP/httpDigest.o

../../../../Common/ThirdParty/gSOAP/httpDigest.cpp:539: error: invalid conversion from ‘const char*’ to ‘char*’
make[1]: *** [../../../../Common/ThirdParty/gSOAP/httpDigest.o] Error 1
make[1]: Leaving directory `/root/amt-sdk/Linux/Intel_AMT/Src/StorageLib/LIBCODE'
make: *** [all] Error


环境:
* Fedora core 11
* kernel version : 2.6.29.5-191.fc11.i686.PAE
* gcc version : 4.4.0
* glibc : glibc-2.10.1-2.i686
* AMT SDK version : 5.1.1
...全文
236 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
xdd123www 2010-01-04
  • 打赏
  • 举报
回复
谢谢Duofeng的回复。

是 GCC 4.4.0 对代码的要求更严格了
参考 http://gcc.gnu.org/gcc-4.4/porting_to.html

里面有个例子:
---------------------
#include <cstring>

const char* str1;
char* str2 = strchr(str1, 'a');

Gives the following compiler error:

error: invalid conversion from ‘const char*’ to ‘char *’

Fixing this is easy, as demonstrated below.

#include <cstring>

const char* str1;
const char* str2 = strchr(str1, 'a');
---------------------------------------------

问题就是出在这里。
Duofeng 2010-01-04
  • 打赏
  • 举报
回复
按错误提示自己修改一下httpDigest.cpp文件试试?

594

社区成员

发帖
与我相关
我的任务
社区描述
提出问题
其他 技术论坛(原bbs)
社区管理员
  • community_281
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧