Page 1 of 1

Cyberlink doesn't compile on Mac OS X

Posted: 18 Dec 2008 07:39
by fizk
Hi,

On Mac OSX 10.5.5., I get the same error with vlc 0.9.8a and vlc from git:

upnp_cc.cpp: In member function 'playlist_item_t* UPnPHandler::FindDeviceNode(CyberLink::Device*)':
upnp_cc.cpp:89: error: 'struct services_discovery_t' has no member named 'p_cat'
upnp_cc.cpp: In member function 'playlist_item_t* UPnPHandler::AddDevice(CyberLink::Device*)':
upnp_cc.cpp:170: error: 'p_playlist' was not declared in this scope
upnp_cc.cpp:170: error: 'struct services_discovery_t' has no member named 'p_cat'
upnp_cc.cpp: In member function 'void UPnPHandler::AddContent(playlist_item_t*, CyberLink::ContentNode*)':
upnp_cc.cpp:204: error: 'p_playlist' was not declared in this scope
upnp_cc.cpp:213: error: 'p_playlist' was not declared in this scope
upnp_cc.cpp: In member function 'void UPnPHandler::RemoveDevice(CyberLink::Device*)':
upnp_cc.cpp:230: error: 'p_playlist' was not declared in this scope
make[4]: *** [libupnp_cc_plugin_la-upnp_cc.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1

#################
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/Users/yonas/ffmpeg-darwin/lib/pkgconfig:/Users/yonas/fribidi-osx/lib/pkgconfig
export CPPFLAGS="-I/Users/yonas/libupnp-install-local/include -I/Users/yonas/xercesc-2.8.0-darwin/include"
export LDFLAGS="-L/Users/yonas/xercesc-2.8.0-darwin/lib"

./configure --prefix=/Users/yonas/vlc-install-macosx --disable-mad --with-faad-tree=/Users/yonas/faad2 --with-twolame-tree=/Users/yonas/twolame-0.3.12 --disable-a52 --disable-theora --disable-hal --disable-libmpeg2 --disable-remoteosd --disable-update-check --disable-gnutls --disable-libgcrypt --enable-cyberlink --with-cyberlink-tree=/Users/yonas/CyberLink


I also needed to change this line in configure file:
63299 for l in "-lexpat -lxerces-c -liconv" "`xml2-config --libs`" ; do

which puts -lxerces-c before xml2-config, and adds -liconv. The test scripts will fail to compile otherwise.

Re: Cyberlink doesn't compile on Mac OS X

Posted: 18 Dec 2008 09:46
by Jean-Baptiste Kempf
Cyberlink is broken. DOn't compile it.

Re: Cyberlink doesn't compile on Mac OS X

Posted: 18 Dec 2008 20:27
by fizk
Are you saying that the Cyberlink library is broken or the VLC code that uses Cyberlink? (i.e. upnp_cc.cpp).
I think upnp_cc.cpp is broken because it of an effort to use a new VLC playlist API/structure.

Re: Cyberlink doesn't compile on Mac OS X

Posted: 02 Jan 2009 15:52
by fkuehne
In fact, both the VLC module and cyberlink are broken. The VLC module remained unmaintained after we stopped using Cyberlink...