On Sun, 22 Feb 2004, Steven M. Schultz wrote:
>
> On Sun, 22 Feb 2004, Dik Takken wrote:
>
> > I succeeded in compiling MJPEG Tools version 1.6.2, but I had some
> > difficulties. Every time the compile command referenced the SDL library,
> > it failed to find it and linking failed. I fixed this by replacing
>
> Do you have the script/program "sdl-config" in your $PATH? I believe
> that mjpegtools uses something like `sdl-config --libs` to get
> the -L and -l entries to use in the Makefile(s). Perhaps that
> script is found in the SDL-dev package and not the "run time only"
> package?
Yes, it's in my path. Besides, if it were not in my path, all other SDL
software would fail to compile. I compiled SDL myself, I don't need any
devel package.
> > Is this a bug in MJPEG Tools? Could there be anything I did wrong? Do I
> > need a "<libname>.pc" file in /usr/lib/pkgconfig?
>
> I do not think it's a bug in the MJPEGtools because they build fine
> on several other systems (including OS/X).
>
> I do not think the SDL is pkgconfig based though, the SDL uses the
> older "config script" method and has the sdl-config script rather than
> a SDL.pc file.
Yes, that's why I had trouble finding any SDL.pc file in the SDL sources.
In order to test my SDL setup, I created a file "test.cc" containing
void main()
{
}
I compiled and linked it to SDL by doing
gcc test.cc -lSDL
It works perfectly. Why can MJPEG Tools not find SDL?
Cheers,
Dik
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users