Page 1 of 1

build vlc-2.2 with own live555

Posted: 18 Aug 2016 14:24
by simon.roehrl
Hey,

I would like to build a minimal vlc to just play a h264 RTP stream. I'm using vlc-2.2 from git (4f12d2a2fd664c63da5cbd60f264167521a926d3). I configure with pretty much everything disabled. I enabled:

Code: Select all

--enable-live555 --enable-avcodec --enable-swscale --enable-xcb
When installing these dependencies from my distribution (kubuntu 16.04) everything works as expected.
My next step is to use my own version of live555. I built live555 with

Code: Select all

./genMakefiles linux make DESTDIR="/home/devel/live555/install" make install
To point vlc to use my own version I called configure with:

Code: Select all

--with-contrib=/home/devel/live555/install/usr/local
.
When I run ./configure it says that live555 is not present:

Code: Select all

checking for LIVE555... no configure: WARNING: No package 'live555' found. checking for live555 version 1324598400 or later... no configure: WARNING: live555 is missing or its installed version is too old: Version 2011.12.23 or later is required to proceed. You can get an updated one from http://www.live555.com/liveMedia . configure: error: Update live555 or pass --disable-live555 to disable RTSP input support.
I think I figured out why. configure.ac, line 1612:

Code: Select all

AS_IF([test -f "${CONTRIB_DIR}/include/UsageEnvironment.hh"], [
But the file UsageEnvironment.hh is located in another subfolder UsageEnvironment:

Code: Select all

${CONTRIB_DIR}/include/UsageEnvironment/UsageEnvironment.hh
When I change this, the output of ./configure is:

Code: Select all

checking for LIVE555... no configure: WARNING: No package 'live555' found. checking for live555 version 1324598400 or later... yes checking for main in -lliveMedia_pic... no checking for main in -lliveMedia... yes
I'm not sure if this is OK? Anyway, my application won't play the stream.

There are two questions:
1 Is this a bug in configure.ac?
2 What do I need to do to successfully build libvlc with my own copy of live555 library?

Kind Regards,
Simon

Re: build vlc-2.2 with own live555

Posted: 18 Aug 2016 14:44
by Rémi Denis-Courmont
It means you don't have the live555.pc file, so configure went through the legacy fallback for live555 detection. It's not an issue.

Re: build vlc-2.2 with own live555

Posted: 18 Aug 2016 15:43
by simon.roehrl
Thank you for your fast reply. Using the contrib-method for live555 ./configure shows the same message:

Code: Select all

checking for LIVE555... no configure: WARNING: No package 'live555' found. checking for live555 version 1324598400 or later... yes checking for main in -lliveMedia_pic... no checking for main in -lliveMedia... yes
And, again, no stream receive is possible. Do you have any idea? live555 is supposed to be statically linked to a vlc plugin (access/liblive555_plugin.so) using this method, right?

The first questions is answered, the second is not. I learned that either I need to use my distrubutors version or use the "contrib-method": https://wiki.videolan.org/UnixCompile#T ... .22_method

Cheers,
Simon

Re: build vlc-2.2 with own live555

Posted: 18 Aug 2016 16:52
by Rémi Denis-Courmont
I think you have answered the second question yourself, is all.

Re: build vlc-2.2 with own live555

Posted: 18 Aug 2016 17:37
by simon.roehrl
Well, yes. Building libvlc was successful.
Then another question arises: Why isn't working? And what do I have to do to get it working?

Re: build vlc-2.2 with own live555

Posted: 18 Aug 2016 18:04
by Rémi Denis-Courmont
I can't answer that question. Look at the logs, traces, debugger...

Re: build vlc-2.2 with own live555

Posted: 25 Aug 2016 16:58
by simon.roehrl
Thank you for your replies. Unsurprisingly it was my mistake. IP-Addresses have been wrong.
Cheers Simon

The topic may be closed.