Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#42645 closed defect (invalid)

ffmpeg @2.1.3 - Configure: cant find libmodplug, libpng15

Reported by: mhfadams@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: ffmpeg

Description

sudo port install ffmpeg

--> Error during configure: ffmpeg couldn't locate libmodplug;

--> Error during configure: ffmpeg couldn't locate libpng15;

Errors were solved by manually installing libmodplug and libpng15 (./configure --prefix=/opt/local) from non macport sources;

Change History (3)

comment:1 in reply to:  description ; Changed 11 years ago by neverpanic (Clemens Lang)

Cc: jeremyhu@… added; mhfadams@… removed
Owner: changed from macports-tickets@… to devans@…
Port: ffmpeg added

You don't need to Cc yourself when reporting tickets, but please set the port field and Cc the port's maintainer.

Replying to mhfadams@…:

--> Error during configure: ffmpeg couldn't locate libmodplug;
--> Error during configure: ffmpeg couldn't locate libpng15;

libpng is at 1.6.9 in MacPorts; no surprise it can't find libpng 1.5. As to why libmodplug fails I don't know; you would have to attach main.log for somebody to be able to debug, but...

Errors were solved by manually installing libmodplug and libpng15 (./configure --prefix=/opt/local) from non macport sources;

That's the worst thing you could have done. You should never ever manually install software into MacPorts' prefix. Even worse, that operation has probably overwritten files installed by MacPorts, e.g. /opt/local/lib/libpng.dylib, which other binaries use. That might have broken these binaries. Basically you've gotten your MacPorts installation into a state where builds are going to fail for random reasons and no way for the port maintainers to help you in figuring out what went wrong. There's also no easy way to go back to a consistent state short of uninstalling all ports, deleting MacPorts and re-installing from scratch.

comment:2 Changed 11 years ago by dbevans (David B. Evans)

Resolution: invalid
Status: newclosed

As cal@ has stated, your MacPorts installation is now in an unpredictable state due to the installation of external modules.

A clean installation of ffmpeg works fine for me, so I assume the problem has something to do with your local configuration.

If you would like to persue this further, please uninstall your MacPorts installation and any external software that you have installed manually and then reinstall MacPorts and any ports that you require.

I suggest that you make a list of your currently installed ports as described in Migration and then completely nuke your MacPorts installation directory

rm -rf /opt/local 

You can then proceed with making a fresh installation of MacPorts as described in InstallingMacPorts?.

Be sure to update your ports tree to the current versions and then try the install of ffmpeg.

sudo port selfupdate
sudo port install ffmpeg

This should succeed without problems but if there are any please file a new ticket including a full description of the problem and the full MacPorts build log cited in the error message and we'll be happy to help you.

comment:3 in reply to:  1 Changed 11 years ago by mhfadams@…

Replying to cal@…:

That's the worst thing you could have done. You should never ever manually install software into MacPorts' prefix.

--> Lessons learned. Thanks guys. I really appreciate your work, awesome stuff.

Note: See TracTickets for help on using tickets.