Page 1 of 1

UPNP - modules/services_discovery does not compile

Posted: 04 Nov 2010 22:51
by raxim
Hi,

UPNP - modules/services_discovery does not compile

I have downloaded the 1.1.4 tar ball, and tried to follow the http://wiki.videolan.org/Win32CompileMSYSNew document.

The problem could be easy, but i'm not adept in C. upnp_intel.cpp contains many external calls, like UpnpDownloadXmlDoc,
and the contrib contains it also, but somehow the libupnp.a was not used, i think. (although upnp/upnp.h was found in contrib dir (win32 withouth usr))

How can i solve this problem? (at the moment, i have disabled the upnp for make)

At the moment i would like to work with java (i'm java professional), and i have tested the vlcj (google) also, but i would like to add an extension. (Later other help could be needed)

Regards,

Re: UPNP - modules/services_discovery does not compile

Posted: 05 Nov 2010 01:33
by raxim
I have realized that the LIBUPNP_EXPORTS/UPNP_STATIC_LIB was not declared, because UPNP_CFLAGS never used.
I have made a workaround

#ifdef LIBUPNP_EXPORTS --> #ifndef LIBUPNP_EXPORTS

#ifdef WIN32
#ifndef UPNP_STATIC_LIB
#ifndef LIBUPNP_EXPORTS
/* set up declspec for dll export to make functions visible to library users */
#define EXPORT_SPEC __declspec(dllexport)
#else
#define EXPORT_SPEC __declspec(dllimport)
#endif
#else
#define EXPORT_SPEC
#endif
#else
#define EXPORT_SPEC
#endif

Re: UPNP - modules/services_discovery does not compile

Posted: 06 Nov 2010 22:11
by Jean-Baptiste Kempf
Upnp should only work in 1.2 with latest contribs (201011 ones)

Re: UPNP - modules/services_discovery does not compile

Posted: 07 Dec 2010 09:47
by artsylar
Hi,

I am also getting a compilation error in service discovery such as "undefined reference to '_imp_UpnpDownloadXMLDoc'.
May I know how can I solve this one?

Regards,
artsylar

Re: UPNP - modules/services_discovery does not compile

Posted: 07 Dec 2010 13:36
by Jean-Baptiste Kempf
You haven't use the proper contribs.

Re: UPNP - modules/services_discovery does not compile

Posted: 13 Dec 2010 02:11
by artsylar
I just disabled it when executing "configure-msys.sh" by running the following command.

configure-msys.sh --disable-upnp