cross compile vlc with plugin live555 for windows xp problem

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.
allen.li
New Cone
New Cone
Posts: 6
Joined: 18 May 2011 13:54

cross compile vlc with plugin live555 for windows xp problem

Postby allen.li » 18 May 2011 14:42

Hello,

I want to cross vlc with modify live555 source code.
I can cross compile vlc for windows on Ubuntu 10.10 success.



I download live555 source code from http://ftp.riken.go.jp/pub/FreeBSD/port ... iles/nork/
and compile success.
Before compile live555 I had been modify MPEG2TransportFileServerMediaSubsession.cpp below..

old code

Code: Select all

RTPSink* MPEG2TransportFileServerMediaSubsession ::createNewRTPSink(Groupsock* rtpGroupsock, unsigned char /*rtpPayloadTypeIfDynamic*/, FramedSource* /*inputSource*/) { return SimpleRTPSink::createNew(envir(), rtpGroupsock, 33, 90000, "video", "MP2T", 1, True, False /*no 'M' bit*/); }
modify

Code: Select all

RTPSink* MPEG2TransportFileServerMediaSubsession ::createNewRTPSink(Groupsock* rtpGroupsock, unsigned char rtpPayloadTypeIfDynamic, FramedSource* /*inputSource*/) { return SimpleRTPSink::createNew(envir(), rtpGroupsock, rtpPayloadTypeIfDynamic, 90000, "video", "MP2T", 1, True, False /*no 'M' bit*/); }
Then I use some command to compile live555 below list...

$./genMakefiles linux
$./make


it is success
then I copy live folder to /usr/win32/live.com
$sudo mv /usr/win32/live.com /usr/win32/live.com.ok
$sudo cp live /usr/win32/live.com

Now I had been replace live.com to new version and the version is work ok.
I change dir to vlc-1.1.9 that is vlc-1.1.9 source code.
I use some command to compile vlc below...

$make clean
$./bootstrap

bootstrap message

-----------------------------
To help you, we need messages, to completely understand what your problems is.
To fix this, please be sure before you start the playback to:
  1. Open: Tools -> Messages.
  2. Set Verbosity to 2
  3. Start playback to reproduce your issue
  4. Save text in a file or copy into clipboard
  5. Then paste the full resulting log here between [​code]and[​/code] (or use Pastebin.com if it's too long)
Also don't forget to name your Operating System and provide the VLC media player version.
-----------------------------


$extras/package/win32/configure-mingw.sh
the command will use two script file that configure-mingw.sh with configure-common.sh.
I post them below

configure-mingw.sh
----------------------------------------------------------------------------------------

Code: Select all

#!/bin/sh root=$(echo $0|sed 's#extras/package/win32/configure-mingw.sh##')./ echo ${root} > printfroot export CONTRIB_DIR="$1" CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ \ CONFIGURE="${root}configure" \ CONFIGOPTS="--host=i586-mingw32msvc --build=i386-linux --enable-mkv --enable-taglib --enable-debug --enable-projectm" \ sh ${root}extras/package/win32/configure-common.sh
------------------------------------------------------------------------------------------

configure-common file
------------------------------------------------------------------------------------------

Code: Select all

[ -z $CONTRIB_DIR ] && export CONTRIB_DIR=/usr/win32 $CONFIGURE \ --with-contrib \ --enable-update-check \ --enable-lua \ --enable-faad \ --enable-flac \ --enable-theora \ --enable-twolame \ --enable-quicktime \ --enable-real \ --enable-avcodec --enable-merge-ffmpeg \ --enable-dca \ --enable-mpc \ --enable-libass \ --enable-x264 \ --enable-schroedinger \ --enable-realrtsp \ --enable-live555 \ --with-live555-tree=/usr/win32/live.com \ --enable-dvdread \ --enable-shout \ --enable-goom \ --enable-caca \ --enable-portaudio \ --enable-sdl \ --enable-qt4 \ --enable-sse --enable-mmx \ --enable-libcddb \ --enable-zvbi --disable-telx \ --enable-sqlite \ --enable-media-library \ --disable-dirac \ --disable-upnp \ --with-peflags \ $CONFIGOPTS
------------------------------------------------------------------------------------------

The configure message below
-------------------------------------------------------------------------------------------
To help you, we need messages, to completely understand what your problems is.
To fix this, please be sure before you start the playback to:
  1. Open: Tools -> Messages.
  2. Set Verbosity to 2
  3. Start playback to reproduce your issue
  4. Save text in a file or copy into clipboard
  5. Then paste the full resulting log here between [​code]and[​/code] (or use Pastebin.com if it's too long)
Also don't forget to name your Operating System and provide the VLC media player version.
-------------------------------------------------------------------------------------------

Now I am configure success. I use make command to make vlc.

$make
Before I modify live.com then compile is success.
After I replace live.com then compile is fail.

I get a lot of error message below..
----------------------------------------------------------------------------------------------
To help you, we need messages, to completely understand what your problems is.
To fix this, please be sure before you start the playback to:
  1. Open: Tools -> Messages.
  2. Set Verbosity to 2
  3. Start playback to reproduce your issue
  4. Save text in a file or copy into clipboard
  5. Then paste the full resulting log here between [​code]and[​/code] (or use Pastebin.com if it's too long)
Also don't forget to name your Operating System and provide the VLC media player version.
----------------------------------------------------------------------------------------------
Thank

ailmcm
New Cone
New Cone
Posts: 1
Joined: 21 Sep 2011 20:07

Re: cross compile vlc with plugin live555 for windows xp pro

Postby ailmcm » 21 Sep 2011 20:13

have same problem, thou edited another part of code.
did You find solution already?

p.s: seems to me live555.cpp loses all headers some why but i don't understand why and how to fix it..

mannermoe
New Cone
New Cone
Posts: 2
Joined: 25 Aug 2011 20:00

Re: cross compile vlc with plugin live555 for windows xp pro

Postby mannermoe » 22 Sep 2011 17:20

I Ihink you also have to replace the live555 library files in /usr/win32/lib as this is the place the linker searches for libraries.
If the old versions are still there you are linking to them instead of linking to the new versions.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Modinstaller, Zeroblu and 30 guests