2011-12-01, 17:08
Hi,
i configured with --enable-avahi and zeroconf did not appeared in the gui.
First i checked the config.h
seemed to be okay, so i replaced i inserted a "check" in the system.h
Compilation went well, so i assumed HAS_ZEROCONF is defined.
Next "check" i implemented in the Application.cpp
Here the compiler complains, so HAS_ZEROCONF is not defined.
Anybody an idea how this could be possible?
i configured with --enable-avahi and zeroconf did not appeared in the gui.
First i checked the config.h
Code:
/* Define to 1 if you have the `avahi-client' library (-lavahi-client). */
#define HAVE_LIBAVAHI_CLIENT 1
/* Define to 1 if you have the `avahi-common' library (-lavahi-common). */
#define HAVE_LIBAVAHI_COMMON 1
seemed to be okay, so i replaced i inserted a "check" in the system.h
Code:
#if defined(HAVE_LIBAVAHI_COMMON) && defined(HAVE_LIBAVAHI_CLIENT)
#define HAS_ZEROCONF
#define HAS_AVAHI
#endif
#ifndef HAS_ZEROCONF
no_ZEROCONF;
#endif
Compilation went well, so i assumed HAS_ZEROCONF is defined.
Next "check" i implemented in the Application.cpp
Code:
#ifdef HAS_ZEROCONF
//entry in guisetting only present if HAS_ZEROCONF is set
if(g_guiSettings.GetBool("services.zeroconf"))
{
CLog::Log(LOGNOTICE, "starting zeroconf publishing");
CZeroconf::GetInstance()->Start();
}
#endif
#ifndef HAS_ZEROCONF
no_zeroconf_in_app;
#endif
Here the compiler complains, so HAS_ZEROCONF is not defined.
Anybody an idea how this could be possible?