Re: v1.9.0 compilation fails due to X11 dependency on Linux with V4L
Bernhard Praschinger <[email protected]> Mon, 23 Feb 2009 20:28:40 +0100
| Newsgroups | gmane.comp.video.mjpeg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hallo
Stuart Hickinbottom wrote:
> I'm reporting this in response to a Gentoo Linux bug I've filed
> (http://bugs.gentoo.org/show_bug.cgi?id=217427#c11).
[...]
> On a headless (no X11) Linux server that has V4L, the compilation of
> 1.9.0 fails as follows:
I haven't seen a X11 less Linux for quite some time. All my machines
(regular an virtual have X11)
> ----
> (note --without-x and --with-v4l)
>
> And the relevant output of configure was:
> ... snip ...
> checking for X... disabled
> ... snip ...
> configure: MJPEG tools 1.9.0 build configuration :
> configure:
> configure: - X86 Optimizations:
> configure: - MMX/3DNow!/SSE enabled : true
> configure: - video4linux recording/playback: true
> configure: - software MJPEG playback : true
> configure: - Quicktime playback/recording : true
> configure: - PNG input support : true
> configure: - AVI MJPEG playback/recording : true (always)
> configure: - libDV (digital video) support : false
> configure: - Gtk+ support for glav : false
>
> Version 1.8.0 built fine with these same options.
>
> Looking at the makefile, a change was checked in for 1.9.0 that meant
> V4L assumed that it should link to X11:
> http://mjpeg.cvs.sourceforge.net/viewvc/mjpeg/mjpeg_play/lavtools/Makefile.am?r1=1.117&r2=1.118
>
> I'm not sure of the history (I don't follow the developers' list), but
> that looks like an incorrect assumption given a no-x11-but-v4l
> configuration.
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 ?
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)
> I've searched the SourceForge bug tracker and this list but couldn't
> find a similar report - apologies if this is a dupe.
No problem, I don't remember that this has been discussed some time ago.
auf hoffentlich bald,
Berni the Chaos of Woodquarter
Email: [email protected]
www: http://www.lysator.liu.se/~gz/bernhard
------------------------------------------------------------------------------
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