c++ - Cannot build avahi4j: avahi4j_Client.c:18:32: fatal error: avahi-common/error.h: No such file or directory -
per title of post i'm trying build avahi4j, run wall after downloading: https://code.google.com/p/avahi4j/downloads/detail?name=avahi4j-0.1.tar.gz&can=2&q=
after extracting, , executing ant clean all
within avahi4j-0.1 directory, receive following error:
ant clean 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
does know might problem?
edit: completeness, run following commands, produces error:
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
moreover, running find . -name error.h
produces no results.
the libavahi-devel
package installs missing components.
to resolve issues presented question install libavahi-devel
package.
Comments
Post a Comment