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

autogen failed #4

Closed
elvquant opened this issue Dec 11, 2020 · 7 comments
Closed

autogen failed #4

elvquant opened this issue Dec 11, 2020 · 7 comments

Comments

@elvquant
Copy link

$ ./autogen.sh
Running: autoreconf -i && ./configure
aclocal: warning: couldn't open directory 'm4': No such file or directory
configure.ac:79: warning: macro 'AM_PATH_LIBGCRYPT' not found in library
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
glibtoolize: copying file 'build-aux/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:79: warning: macro 'AM_PATH_LIBGCRYPT' not found in library
configure.ac:79: error: possibly undefined macro: AM_PATH_LIBGCRYPT
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /opt/local/bin/autoconf failed with exit status: 1

@mnordstr
Copy link

Hi,

Did you install the required dependencies? Sounds like you're missing libgcrypt.

On Debian/Ubuntu:

sudo apt-get update && sudo apt-get install -y build-essential libfftw3-dev libsndfile1-dev automake autoconf libtool autoconf-archive libgcrypt20-dev libzita-resampler-dev libmpg123-dev

@elvquant
Copy link
Author

elvquant commented Dec 12, 2020

Of course. All prerequirements are installed on macOS 10.13.
I also configured, compiled and running an older (pre-autoconf? 0.5.0) version

@swesterfeld
Copy link
Owner

The error message means that you don't have the macro AM_PATH_LIBGCRYPT available, therefore autogen.sh fails. On my Ubuntu 20.04, the m4 file needed is called /usr/share/aclocal/libgcrypt.m4 and this is provided when installing the libgcrypt20-dev package.

So I see two solutions here: either you find a way to provide this m4 file or you build from tarball, then everything you need to build is automatically included in the configure script.

@tscole
Copy link

tscole commented Dec 18, 2020

Hi - I'm also trying to use this on macOS and getting the same / similar errors. I overcame the first by running "brew install libgcrypt" but I am now getting subsequent errors for missing dependencies and these don't appear available via brew.

Pardon my ignorance - by I am a web developer by trade and don't know how / what is meant by "build from tarball".

@swesterfeld
Copy link
Owner

Ok, "build from tarball" is another way of saying "build a stable release", the release files are often tar archives. Stable releases are available from https://uplex.de/audiowmark/. Using the ./configure should complain if something is missing.

I'm sorry to say: you need all necessary dependencies before you can build audiowmark. If they are not available from brew you could try to build from source. Not sure how difficult it would be if you tried to contribute the missing stuff to brew if you succeed. I must admit that I develop and test this software on linux only. For other platforms (macOS/Windows) I can merge compile or documentation fixes into the git repo, and try to help on github like here, but its not really a supported platform.

@normen
Copy link

normen commented Sep 2, 2021

Even with all libraries available I still get compilation errors on MacOS, see the infos I added in #7

@swesterfeld
Copy link
Owner

Ok, I don't really see anything more that remains to be done in this issue, so I'll close it.

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

5 participants