UPNP - modules/services_discovery does not compile

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
raxim
New Cone
New Cone
Posts: 3
Joined: 03 Nov 2010 23:38

UPNP - modules/services_discovery does not compile

Postby raxim » 04 Nov 2010 22:51

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,

raxim
New Cone
New Cone
Posts: 3
Joined: 03 Nov 2010 23:38

Re: UPNP - modules/services_discovery does not compile

Postby raxim » 05 Nov 2010 01:33

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: UPNP - modules/services_discovery does not compile

Postby Jean-Baptiste Kempf » 06 Nov 2010 22:11

Upnp should only work in 1.2 with latest contribs (201011 ones)
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

artsylar
Blank Cone
Blank Cone
Posts: 20
Joined: 08 Sep 2010 11:56

Re: UPNP - modules/services_discovery does not compile

Postby artsylar » 07 Dec 2010 09:47

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: UPNP - modules/services_discovery does not compile

Postby Jean-Baptiste Kempf » 07 Dec 2010 13:36

You haven't use the proper contribs.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

artsylar
Blank Cone
Blank Cone
Posts: 20
Joined: 08 Sep 2010 11:56

Re: UPNP - modules/services_discovery does not compile

Postby artsylar » 13 Dec 2010 02:11

I just disabled it when executing "configure-msys.sh" by running the following command.

configure-msys.sh --disable-upnp


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 27 guests