#133 config.h is not installed but other installed headers use it


Trying to use mjpegtools 2.0.0 with a program I found this:

/usr/include/mjpegtools/mplex/stream_params.hpp:26:20: fatal error: config.h: No such file or directory

And is not the only header that includes config.h.


  • Whick package did you use ? (RPM/TAR) and on Which platform ?

    What do you want to do. And what did you do that you got that error ?
    Please describe the problem a bit more.

    • assigned_to: nobody --> waldviertler
  • I'm using the openSUSE 11.4 RPM package from the Packman repository. The sources of the package are here: http://pmbs.links2linux.org/package/files?package=mjpegtools&project=Essentials

    The problem is not so specific. If you do ANY program that includes (#include) the stream_params.hpp header (and others) it will break since the stream_params.hpp file has a "#include "config.h"" line and there is no config.h file...
    It's just that. mjpegtools installs a header that requires another header which is missing.

    The problem triggers in the gstreamer plugins bad package when the configure script tries to detect the mplex headers.

  • The fix is either to install the config.h header, if it's really needed, or remove the #include "config.h" line from the headers that have it without any real need.

    • labels: --> compile problem
    • status: open --> pending-accepted
  • Ok, now I understand. the problem.
    With the last patch the include with config.h was added. I'd suggest that you just remove the line.

    I have just removed the line and put it into the CVS. The change will appear in the next release.

    • status: pending-accepted --> closed-accepted
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).