QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1740|回复: 2

eva 0.2.0在slackware 10.1无法make

[复制链接]
发表于 2005-3-17 23:35:37 | 显示全部楼层 |阅读模式
eva 0.2.0在slackware 10.1 ./configure 通过,但无法make!!!
make  all-recursive
make[1]: Entering directory `/hda5/Downloads/eva-0.2.0'
Making all in doc
make[2]: Entering directory `/hda5/Downloads/eva-0.2.0/doc'
Making all in .
make[3]: Entering directory `/hda5/Downloads/eva-0.2.0/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/hda5/Downloads/eva-0.2.0/doc'
Making all in en
make[3]: Entering directory `/hda5/Downloads/eva-0.2.0/doc/en'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/hda5/Downloads/eva-0.2.0/doc/en'
make[2]: Leaving directory `/hda5/Downloads/eva-0.2.0/doc'
Making all in po
make[2]: Entering directory `/hda5/Downloads/eva-0.2.0/po'
Making all in .
make[3]: Entering directory `/hda5/Downloads/eva-0.2.0/po'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/hda5/Downloads/eva-0.2.0/po'
Making all in zh_CN
make[3]: Entering directory `/hda5/Downloads/eva-0.2.0/po/zh_CN'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/hda5/Downloads/eva-0.2.0/po/zh_CN'
make[2]: Leaving directory `/hda5/Downloads/eva-0.2.0/po'
Making all in src
make[2]: Entering directory `/hda5/Downloads/eva-0.2.0/src'
Making all in libeva
make[3]: Entering directory `/hda5/Downloads/eva-0.2.0/src/libeva'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/hda5/Downloads/eva-0.2.0/src/libeva'
Making all in api
make[3]: Entering directory `/hda5/Downloads/eva-0.2.0/src/api'
source='evaconnecter.cpp' object='evaconnecter.lo' libtool=yes \
depfile='.deps/evaconnecter.Plo' tmpdepfile='.deps/evaconnecter.TPlo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/libeva -I/opt/kde/include -I/usr/lib/qt/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o evaconnecter.lo `test -f 'evaconnecter.cpp' || echo './'`evaconnecter.cpp
evaconnecter.cpp: In member function `void EvaConnecter::sendOut(OutPacket*)':
evaconnecter.cpp:100: error: `malloc' undeclared (first use this function)
evaconnecter.cpp:100: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
evaconnecter.cpp:106: error: `free' undeclared (first use this function)
evaconnecter.cpp: In member function `void EvaConnecter::dataCommingSlot(int)':
evaconnecter.cpp:149: error: `malloc' undeclared (first use this function)
evaconnecter.cpp:152: error: `free' undeclared (first use this function)
make[3]: *** [evaconnecter.lo] 错误 1
make[3]: Leaving directory `/hda5/Downloads/eva-0.2.0/src/api'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/hda5/Downloads/eva-0.2.0/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/hda5/Downloads/eva-0.2.0'
make: *** [all] 错误 2
发表于 2005-3-19 10:08:29 | 显示全部楼层
你这个问题, 也有人出现过. 都是malloc, free, getenv等函数找不到声明的错误。

解决办法,在出错的cpp文件的开始加上
[code:1]
#include <stdlib.h>
[/code:1]

另外,把src/api/evahtmlparser.cpp 的第119行改为
[code:1]
smiley = QString(util.fileIndexToText(fileIndex).c_str()) + " ";
[/code:1]
然后再编译。



另,你的Qt是什么版本的?我估计可能是Qt版本低了。
存盘, 重新make就可以。


因为在内测的时候, 在几个系统都没有出现上面的问题,所以没有捕捉到, 可能是系统设置的事情。 以后版本会改正。 对不起。
回复

使用道具 举报

发表于 2005-3-19 10:09:59 | 显示全部楼层
[quote:ae099d6966="mengkezhi"]
一、evaconnecter.cpp,evaresource.cpp,evaseting.cpp,evasocket.cpp 没[code:1]#include <stdlib.h>[/code:1]
二、evahtmlparser.cpp 中语句
smiley = QString(utilfileIndexToText(fileIndex)) + " ";在sackware 10.1 下make不过去,改为smiley = QString(util.fileIndexToText(fileIndex).c_str()) + " ";make通过。
三、 cannot find the library `/usr/X11R6/lib/libfontconfig.la 将/usr/lib/libfontconfig.la复制到/usr/X11R6/lib/可以make。
希望对你有帮助!
[/quote]

多谢, 这些可能对其他无法编译的朋友也可以参考
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-22 02:25 , Processed in 0.060221 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表