mengkezhi 发表于 2005-3-17 23:35:37

eva 0.2.0在slackware 10.1无法make

eva 0.2.0在slackware 10.1 ./configure 通过,但无法make!!!
makeall-recursive
make: Entering directory `/hda5/Downloads/eva-0.2.0'
Making all in doc
make: Entering directory `/hda5/Downloads/eva-0.2.0/doc'
Making all in .
make: Entering directory `/hda5/Downloads/eva-0.2.0/doc'
make: Nothing to be done for `all-am'.
make: Leaving directory `/hda5/Downloads/eva-0.2.0/doc'
Making all in en
make: Entering directory `/hda5/Downloads/eva-0.2.0/doc/en'
make: Nothing to be done for `all'.
make: Leaving directory `/hda5/Downloads/eva-0.2.0/doc/en'
make: Leaving directory `/hda5/Downloads/eva-0.2.0/doc'
Making all in po
make: Entering directory `/hda5/Downloads/eva-0.2.0/po'
Making all in .
make: Entering directory `/hda5/Downloads/eva-0.2.0/po'
make: Nothing to be done for `all-am'.
make: Leaving directory `/hda5/Downloads/eva-0.2.0/po'
Making all in zh_CN
make: Entering directory `/hda5/Downloads/eva-0.2.0/po/zh_CN'
make: Nothing to be done for `all'.
make: Leaving directory `/hda5/Downloads/eva-0.2.0/po/zh_CN'
make: Leaving directory `/hda5/Downloads/eva-0.2.0/po'
Making all in src
make: Entering directory `/hda5/Downloads/eva-0.2.0/src'
Making all in libeva
make: Entering directory `/hda5/Downloads/eva-0.2.0/src/libeva'
make: Nothing to be done for `all'.
make: Leaving directory `/hda5/Downloads/eva-0.2.0/src/libeva'
Making all in api
make: 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: *** 错误 1
make: Leaving directory `/hda5/Downloads/eva-0.2.0/src/api'
make: *** 错误 1
make: Leaving directory `/hda5/Downloads/eva-0.2.0/src'
make: *** 错误 1
make: Leaving directory `/hda5/Downloads/eva-0.2.0'
make: *** 错误 2

云帆 发表于 2005-3-19 10:08:29

你这个问题, 也有人出现过. 都是malloc, free, getenv等函数找不到声明的错误。

解决办法,在出错的cpp文件的开始加上

#include <stdlib.h>


另外,把src/api/evahtmlparser.cpp 的第119行改为

smiley = QString(util.fileIndexToText(fileIndex).c_str()) + " ";

然后再编译。



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


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

云帆 发表于 2005-3-19 10:09:59


一、evaconnecter.cpp,evaresource.cpp,evaseting.cpp,evasocket.cpp 没#include <stdlib.h>
二、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。
希望对你有帮助!


多谢, 这些可能对其他无法编译的朋友也可以参考
页: [1]
查看完整版本: eva 0.2.0在slackware 10.1无法make