根据帖子的标题,我正在尝试构建 avahi4j,但下载后很快就撞墙了:https://code.google.com/p/avahi4j/downloads/detail?name=avahi4j-0.1.tar。 gz&can=2&q=
解压后,然后ant clean all
从 avahi4j-0.1 目录中执行,我收到以下错误:
ant clean all
Buildfile: /home/myUser/Downloads/avahi4j-0.1/build.xml
clean:
[exec] make: Entering directory `/home/myUser/Downloads/avahi4j-0.1/src'
[exec] rm -f avahi4j_Client.o avahi4j_EntryGroup.o avahi4j_Avahi4JConstants.o thread-watch.o avahi4j_ServiceBrowser.o avahi4j_ServiceResolver.o avahi4j_RecordBrowser.o libavahi4j.so ./*~
[exec] make: Leaving directory `/home/myUser/Downloads/avahi4j-0.1/src'
[delete] Deleting directory /home/myUser/Downloads/avahi4j-0.1/classes
init:
[mkdir] Created dir: /home/myUser/Downloads/avahi4j-0.1/classes
jnilib:
[exec] make: Entering directory `/home/myUser/Downloads/avahi4j-0.1/src'
[exec] gcc -I. -I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux/ -I/usr/include/avahi-common -O3 -fPIC -DVER_MAJ="0" -DVER_MIN="1" -c -o avahi4j_Client.o avahi4j_Client.c
[exec] make: Leaving directory `/home/myUser/Downloads/avahi4j-0.1/src'
[exec] avahi4j_Client.c:18:32: fatal error: avahi-common/error.h: No such file or directory
[exec] #include <avahi-common/error.h>
[exec] ^
[exec] compilation terminated.
[exec] make: *** [avahi4j_Client.o] Error 1
BUILD FAILED
/home/myUser/Downloads/avahi4j-0.1/build.xml:75: exec returned: 2
Total time: 0 seconds
有谁知道可能是什么问题?
编辑:为了完整起见,我运行以下命令,这会产生错误:
wget https://avahi4j.googlecode.com/files/avahi4j-0.1.tar.gz
tar xzvf avahi4j-0.1.tar.gz
cd avahi4j-0.1/
ant
ant clean all
此外,跑步find . -name error.h
不会产生任何结果。