Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

ffmpeg fails to build with OpenJEPG #15772

Closed
MatthewCallis opened this issue Oct 30, 2012 · 1 comment
Closed

ffmpeg fails to build with OpenJEPG #15772

MatthewCallis opened this issue Oct 30, 2012 · 1 comment

Comments

@MatthewCallis
Copy link
Contributor

Even with the openjpeg forumla installed, it will fail to find libopenjpeg and fail to configure, all other flags build correctly.

$ brew install ffmpeg --with-openjpeg -v
==> Downloading http://ffmpeg.org/releases/ffmpeg-1.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/ffmpeg-1.0.tar.bz2
/usr/bin/tar xf /Library/Caches/Homebrew/ffmpeg-1.0.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/1.0 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libopenjpeg
./configure --prefix=/usr/local/Cellar/ffmpeg/1.0 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libopenjpeg
ERROR: libopenjpeg not found

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
Error: Failure while executing: ./configure --prefix=/usr/local/Cellar/ffmpeg/1.0 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libopenjpeg
$ brew install openjpeg
Error: openjpeg-1.5.1 already installed
@2bits
Copy link
Contributor

2bits commented Nov 1, 2012

Yea, openjpeg installs its headers into a ridiculous directory,

/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5

I've had to work around this a bunch of times because most software is coded like this:

#include <openjpeg.h>

instead of

#include <openjpeg-1.5/openjpeg.h>

So I'll make an adjustment to the formula to support this. Thanks for the bug report.

2bits pushed a commit to 2bits/homebrew that referenced this issue Nov 1, 2012
- Add `--extra-cflags` using pkg-config to find openjpeg.
- The cflags fix a configure error.
- Add an option `with-schroedinger` for Dirac Video

Fixes Homebrew#15772 Homebrew#15734
@adamv adamv closed this as completed in 628a875 Nov 1, 2012
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
- Add `--extra-cflags` using pkg-config to find openjpeg.
- The cflags fix a configure error.
- Add an option `with-schroedinger` for Dirac Video

Fixes Homebrew#15772
Fixes Homebrew#15734

Closes Homebrew#15791.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants