Re: v1.9.0 compilation fails due to X11 dependency on Linux with V4L

Stuart Hickinbottom <[email protected]> Mon, 23 Feb 2009 21:00:52 +0000
Newsgroups gmane.comp.video.mjpeg.devel
Message-ID <1235422852.7349.56.camel@leonov>
Thanks for looking into this.

On Mon, 2009-02-23 at 20:28 +0100, Bernhard Praschinger wrote:
> ------
> Can you compile the mjpegtools when you remove the -lX11 from the 
> lavtools/Makefile.am on the machine you have without X11 ? And do the
> work ?

Yes, if I remove the "-lX11" from the configure-generated
"lavtools/Makefile" manually then everything compiles fine for me.

> I can remove that flag on my machine too, and test it on my MAC and 
> Linux system.
> 
> After digging around for some time. I found that we included that 
> because of a patch posed in a mail on the 26 Feb. 2007.
> 
> One thing that comes into my mind is changing the section to:
> if HAVE_V4L
>    if HAVE_X11
>      liblavplay_la_LIBADD += ${X_LIBS} -lX11
>    elsif
>      liblavplay_la_LIBADD += ${X_LIBS}
>    endif
> endif
> (Not tested, I would need to look for the correct options)
> 

On the face of it, your "if HAVE_X11" would be a good fix for me - the
Gentoo ebuild will pass the "--without-x" or "--with-x" to configure as
appropriate, if that ultimately translates to the HAVE_X11 symbol. I'm
not too familiar with the automake/autoconf magic to work out quite how
it gets from end to end yet.

If you can suggest a patch to that Makefile.am file I can give it a go
and let you know.

Stuart

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

_______________________________________________
Mjpeg-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mjpeg-developer
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkmjDoQACgkQNr4meQRAYwqnOgCgm4RuOxrEnK7Z0Z2WRSyD5LDF
CkYAoM0GHHx/1+d4sT76jQl7mI+umCe5
=ASpe
-----END PGP SIGNATURE-----