Thursday, February 02, 2006
VLC : I have checked to compile with the upnp module on WindowsXP as the following step. I could compile the module normally, but the VLC could not recognize the module X-<.
It seems that I have to add some changes the main binary or the configuration to recognize the module or the command line option
$ tar xvfz expat-2.0.0.tar.gz
$ cd expat-2.0.0
$ export CC="gcc -mno-cygwin"
$ export CXX="g++ -mno-cygwin"
$ ./configure
$ make
$ mkdir -p /usr/win32/include
$ mkdir -p /usr/win32/lib
$ cp lib/*.h /usr/win32/include
$ cp libexpat.la /usr/win32/lib/
$ cp -r .libs/ /usr/win32/lib/
$ cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/clinkcc login
$ cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/clinkcc co -P clinkcc
$ cd clinkcc
$ export CC="gcc -mno-cygwin"
$ export CXX="g++ -mno-cygwin"
$ export CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml -D_WIN32_WINNT=0x501"
$ export LDFLAGS=-L/usr/win32/lib
$ ./boostrap
$ ./configure --enable-expat
$ make
$ gcc --version
gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
$ tar xjfv contrib-20060113-win32-bin-gcc-3.4.4-only.tar.bz2 -C /
$ tar xjvf vlc-0.8.4a.tar.bz2
$ cd vlc-0.8.4a
$ export PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig
$ export CC="gcc -mno-cygwin"
$ export CXX="g++ -mno-cygwin"
$ export CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml"
$ export LDFLAGS=-L/usr/win32/lib
$ ./boostrap
$ ./configure
--disable-gtk
--enable-nls --disable-sdl
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac
--with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora
--with-wx-config-path=/usr/win32/bin
--with-freetype-config-path=/usr/win32/bin
--with-fribidi-config-path=/usr/win32/bin
--enable-caca --with-caca-config-path=/usr/win32/bin
--with-xml2-config-path=/usr/win32/bin
--disable-cddax --disable-vcdx --enable-goom
--enable-twolame --enable-dvdread
--enable-debug
--disable-sdl --disable-wxwidgets --disable-skins2 --disable-dvdnav
--enable-cyberlink --with-cyberlink-tree=/cygdrive/c/src/clinkcc
$ cp vlc-config vlc-config.org
$ vi vlc-config
$ diff -r vlc-config.org vlc-config
250c250
< ldflags="${ldflags} /cygdrive/c/src/clinkcc/lib/unix/libclink.a -lexpat"
---
> ldflags="${ldflags} /cygdrive/c/src/clinkcc/lib/unix/libclink.a -lpthread -lexpat -lws2_32"
$ cd modules/services_discovery/
$ make
copy C:\src\vlc-0.8.4a\modules\services_discovery\libupnp_plugin.dll C:\Program Files\VideoLAN\VLC\plugins
copy C:\src\expat-2.0.0\.libs\cygexpat-1.dll C:\Program Files\VideoLAN\VLC
C:\>cd \Program Files\VideoLAN\VLC
C:\Program Files\VideoLAN\VLC>vlc -v -S upnp
Comments:
<< Home
Well after trying for a couple of days now,I think cyberlink c++ is broken on the latest versions of osx 10.4.4.
http://forum.videolan.org/viewtopic.php?t=16755
http://forum.videolan.org/viewtopic.php?t=16763
http://forum.videolan.org/viewtopic.php?t=16755
http://forum.videolan.org/viewtopic.php?t=16763
Well, the upnp plugin on osx only shows the servers and no content, clicking the tree node cause a segfault.
The original wxwidget plugin doesn't compile.
So did the cyberlink plugin ever work on os x.
The original wxwidget plugin doesn't compile.
So did the cyberlink plugin ever work on os x.
I wanted to clarify some of my earlier comments.
I compiled vlc from the latest snapshot and include the cyberlink-tree.
The compile went ok except for some problems building the vlc_bundle folder, for some reason the folder created is vlc_build.
The vlc upnp plugin based on your wxwidget compiles ok, but only the servers show , none of the content.
And is a bit unstable.
I than try to compile the wxwidget plugin with your patch. The compile fails.
I compiled vlc from the latest snapshot and include the cyberlink-tree.
The compile went ok except for some problems building the vlc_bundle folder, for some reason the folder created is vlc_build.
The vlc upnp plugin based on your wxwidget compiles ok, but only the servers show , none of the content.
And is a bit unstable.
I than try to compile the wxwidget plugin with your patch. The compile fails.
I compiled VLC 0.8.4a on MacOSX, and I understood your problem. The debug message bellow.
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x0000000c
[Switching to process 26361 thread 0x6203]
0x03968fe8 in UPnPHandler::deviceSearchResponseReceived ()
(gdb) where
#0 0x03968fe8 in UPnPHandler::deviceSearchResponseReceived ()
#1 0x0396d438 in CyberLink::ControlPoint::performSearchResponseListener (this=0xf0509c88, ssdpPacket=0x64616ec) at ../../src/cybergarage/upnp/ControlPoint.cpp:279
#2 0x03992750 in CyberLink::SSDPSearchResponseSocket::run (this=0x64616d0) at ../../src/cybergarage/upnp/ssdp/SSDPSearchResponseSocket.cpp:54
#3 0x03993a7c in PosixThreadProc (param=0xf0509c88) at ../../src/cybergarage/util/Thread.cpp:72
#4 0x9002b200 in _pthread_body ()
It seems that the upnp module accesses a null pointer, I might have to check the source code.
Should I discuss the problem on VLC forum instead of my blog ?
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x0000000c
[Switching to process 26361 thread 0x6203]
0x03968fe8 in UPnPHandler::deviceSearchResponseReceived ()
(gdb) where
#0 0x03968fe8 in UPnPHandler::deviceSearchResponseReceived ()
#1 0x0396d438 in CyberLink::ControlPoint::performSearchResponseListener (this=0xf0509c88, ssdpPacket=0x64616ec) at ../../src/cybergarage/upnp/ControlPoint.cpp:279
#2 0x03992750 in CyberLink::SSDPSearchResponseSocket::run (this=0x64616d0) at ../../src/cybergarage/upnp/ssdp/SSDPSearchResponseSocket.cpp:54
#3 0x03993a7c in PosixThreadProc (param=0xf0509c88) at ../../src/cybergarage/util/Thread.cpp:72
#4 0x9002b200 in _pthread_body ()
It seems that the upnp module accesses a null pointer, I might have to check the source code.
Should I discuss the problem on VLC forum instead of my blog ?
I don't know, I don't get a lot of response on that forum. I saw what you posted for windows here, can you post a similar transcipt for os x.
I'm trying to compile your original patched wxwindows module which might be more stable?
I'm trying to compile your original patched wxwindows module which might be more stable?
Just to make this clear: The UPnP plugin in VLC 0.8.4a is USELESS. You have to use a recent SVN snapshot/checkout.
cheers,
Christian
cheers,
Christian
I tried the feb 1 snapshot, and still had major issues.
The playlist shows my two servers, tversity and twonkyvision, but no content.
The plugin is unstable and causes the app to crash, I will try to do some more compiles in a couple days, I'm moving my development environment off my powerbook and on to a machine that I've set up as a build server.
Pulling a svn snapshot and doing a full bulild can take well over an hour .
The playlist shows my two servers, tversity and twonkyvision, but no content.
The plugin is unstable and causes the app to crash, I will try to do some more compiles in a couple days, I'm moving my development environment off my powerbook and on to a machine that I've set up as a build server.
Pulling a svn snapshot and doing a full bulild can take well over an hour .
After multiple builds, and examination of the code I've come to the conclusion that the upnp plugin just does not work.
I have received a bug report that the CyberLink has some problem with twonkyvision v2.4 under.
I have received the v2.2 from the reported user, I will check the problem from now.
About MacOSX, I will try using the latest the svn tree too.
Thanks for many comments :-)
I have received the v2.2 from the reported user, I will check the problem from now.
About MacOSX, I will try using the latest the svn tree too.
Thanks for many comments :-)
The specific problem that I had with TwonkyVision 2.4 and CyberLink should not be an issue with the versions of the UPnP plugin that are available. It only happened with a development version of mine, that I have not released yet. I will send a copy of the code to you :-)
cheers,
Christian
cheers,
Christian
Nice site!
[url=http://kactagab.com/xbtn/xbuk.html]My homepage[/url] | [url=http://rlwqlyiw.com/ilez/cbeq.html]Cool site[/url]
Post a Comment
[url=http://kactagab.com/xbtn/xbuk.html]My homepage[/url] | [url=http://rlwqlyiw.com/ilez/cbeq.html]Cool site[/url]
<< Home