#15941: mjpegtools build error: ld: library not found for -lX11 ---------------------------------+------------------------------------------ Reporter: mroman@eduapple.pl | Owner: filippo.natali@gmail.com Type: defect | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Changes (by ryandesign@macports.org): * cc: filippo.natali@gmail.com (removed) * cc: ryandesign@macports.org, wsiegrist@apple.com, dsh@dsh.org, jason@masker.net, keithpk@gmail.com, chosenken@gmail.com, Gordon.Child@gmail.com (added) * owner: macports-tickets@lists.macosforge.org => filippo.natali@gmail.com * summary: mjpegtools 1.6.2, => mjpegtools build error: ld: library not found for -lX11 * priority: Low => Normal Comment: I'm unable to reproduce the problem on two MacBooks Pro, one running Mac OS X 10.5.4 with Xcode 3.1 and one running Mac OS X 10.4.11 with Xcode 2.5. On both, mjpegtools 1.6.2_2 installs without error. What version of Mac OS X, Xcode and MacPorts do you have, and on what kind of Mac? What ports are already installed? I see a number of problems in the line just above the error: 1. mjpegtools is looking for libraries in /usr/local/lib. Do you have any libraries in /usr/local/lib? If so you should remove them before using MacPorts. 2. mjpegtools is linking with /opt/local/lib/libdv.dylib. I don't have that on my system and I don't know what port provides it. Can you show us the output of "`port provides /opt/local/lib/libdv.dylib`" please? 3. mjpegtools is linking with /opt/local/lib/libglib.dylib which is provided by glib1 but mjpegtools doesn't declare a dependency on glib1. 4. mjpegtools is linking with /opt/local/lib/libSDL.dylib which is provided by libsdl but mjpegtools doesn't declare a dependency on libsdl. mjpegtools should either declare dependencies on all the libraries it links with, or configure arguments should be added to force mjpegtools not to link with those libraries if they're present. -- Ticket URL: <http://trac.macports.org/ticket/15941#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS