Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Error: "Vorbis >= 1.3.0 required!" (MSYS2) #19

Open
MrM21632 opened this issue Dec 23, 2018 · 2 comments
Open

Configure Error: "Vorbis >= 1.3.0 required!" (MSYS2) #19

MrM21632 opened this issue Dec 23, 2018 · 2 comments

Comments

@MrM21632
Copy link

MrM21632 commented Dec 23, 2018

I'm experiencing an issue trying to compile vorbis-tools 1.4.0 on the latest version of MSYS2. I'm passing --with-ogg and --with-vorbis flags to the configure script, as I'm first building libogg and libvorbis separately and then using those library builds to build vorbis-tools. It seems to recognize libogg and libvorbis when configuring, but it then gives this error:

checking for OGG... no
checking for Ogg... yes
checking for oggpack_writealign... yes
checking for VORBIS... no
checking for ov_read_filter... no
checking for library containing cos... none required
checking for Vorbis... yes
checking whether OV_ECTL_COUPLING_SET is declared... no
configure: error: Vorbis >= 1.3.0 required !

What's really strange is that this only occurs if there isn't already an installation of libogg and libvorbis available in the include and library paths that GCC is using.

I think the problem I'm experiencing here is that, when doing the check for OV_ECTL_COUPLING_SET (and possibly others), it doesn't take the --with-ogg and --with-vorbis flags into account.

Any thoughts on what else could be causing the problem?

@MrM21632 MrM21632 changed the title Configure Error: "Vorbis >= 1.3.0 required!" Configure Error: "Vorbis >= 1.3.0 required!" (MSYS2) Dec 23, 2018
@eblanca
Copy link
Contributor

eblanca commented Nov 20, 2019

I'm facing the same issue when building on a linux distro without pkg-config, I have the same error message when running
./configure --with-ogg=/opt --with-vorbis=/opt --prefix=/opt
(both libogg and libvorbis are installed into /opt)

I think I found the root cause in the build scripts, looking at config.log:

configure:18902: checking whether OV_ECTL_COUPLING_SET is declared
configure:18902: gcc -c -O2 -Wall -ffast-math -fsigned-char -g -O2  conftest.c >&5
conftest.c:98:30: fatal error: vorbis/vorbisenc.h: No such file or directory

Notice on the command line there is no include option -I so the compile cannot find the headers it looks for.
Instead, a few statementes above, I can see:

configure:18791: checking for Vorbis
configure:18826: gcc -o conftest -O2 -Wall -ffast-math -fsigned-char -g -O2 -I/opt/include -I/opt/include   conftest.c  -L/opt/lib -lvorbis -lm  -L/opt/lib -logg >&5

this command line provides the compiler the search path for the headers.

@eblanca
Copy link
Contributor

eblanca commented Apr 18, 2020

I see this issue was fixed with latest commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants