Code Monkey home page Code Monkey logo

Comments (10)

normen avatar normen commented on August 23, 2024 13

Wow, nice. That worked, yes. Thank you very much, especially for releasing this software in the first place!

I still had to change the zita-resampler CMakeLists.txt a bit for it to install the headers, so heres the full step-by-step that finally worked for me to build on MacOS:

  • brew install automake autoconf-archive cmake
  • brew install mpg123 fftw libsndfile libgcrypt
  • git clone https://github.com/digital-stage/zita-resampler
  • cd zita-resampler
  • Edit CMakeLists.txt
    • Change add_library(zita-resampler ${SOURCES} ${HEADER_LIST})
    • To add_library(zita-resampler SHARED ${SOURCES} ${HEADER_LIST})
    • Add to end of file: install(FILES ${HEADER_LIST} DESTINATION "include/zita-resampler")
  • cmake ./
  • make install
  • cd ..
  • git clone https://github.com/swesterfeld/audiowmark
  • cd audiowmark
  • ./autogen.sh
  • make
  • Find executable in src/audiowmark
  • Alternatively do make install

Thanks again!

from audiowmark.

swesterfeld avatar swesterfeld commented on August 23, 2024 2
./configure: line 17470: syntax error near unexpected token `ext'
./configure: line 17470: `AX_CXX_COMPILE_STDCXX_14(ext)'

This looks like the problem could be fixed by installing the autoconf-archive package (brew install autoconf-archive).

from audiowmark.

normen avatar normen commented on August 23, 2024

You'll need at least automake installed (e.g. brew install automake) however not all of the required libraries (like zita-resampler) are available through homebrew so you'll probably have to build some of them as well.

Then it's probably just a matter of running autogen.sh and then running automake..

Edit: You can build and run on mac using docker desktop though, thats what I did for now..

from audiowmark.

normen avatar normen commented on August 23, 2024

This is how I try to build on MacOS using homebrew:

  • brew install mpg123 fftw libsndfile libgcrypt
  • git clone https://github.com/digital-stage/zita-resampler
  • cd zita-resampler
  • Edit CMakeLists.txt
    • Change add_library(zita-resampler ${SOURCES} ${HEADER_LIST})
    • To add_library(zita-resampler SHARED ${SOURCES} ${HEADER_LIST})
  • cmake ./
  • make install
  • cd ..
  • git clone https://github.com/swesterfeld/audiowmark
  • cd audiowmark
  • ./autogen.sh

However while theres no more "library missing" errors I still end up with an error in the configure script when running autogen.sh:

./configure: line 17470: syntax error near unexpected token `ext'
./configure: line 17470: `AX_CXX_COMPILE_STDCXX_14(ext)'

from audiowmark.

daryb avatar daryb commented on August 23, 2024

Thanks for this tool! And thanks normen for following up and writing your steps out to get going on macOS. audiowmark is working perfectly for me after following your instructions. Have you by chance gotten videowmark going on macOS? Whenever I run it, I get videowmark: error parsing command line arguments (use videowmark -h) . That also happens when running videowmark -h. Thoughts or suggestions?

from audiowmark.

easyupdo avatar easyupdo commented on August 23, 2024

Hello sir:
I have the same problem.
./configure: line 16605: syntax error near unexpected token ext' ./configure: line 16605: AX_CXX_COMPILE_STDCXX_14(ext)'
AND
i exec: sudo apt-get install autoconf-archive,then, ./antogen.sh . I still have this problem

my env: ubuntu 16.04 gcc:5.0.4

Any other suggestions?

thanks.

from audiowmark.

swesterfeld avatar swesterfeld commented on August 23, 2024

I think the error message

videowmark: error parsing command line arguments (use videowmark -h)

on macOS is since I developed and tested the script on linux where we have a version of getopt that is called GNU getopt which can handle long options as --strength 10. In the script this is this line:

GETOPT_TEMP=`getopt -o vhq --long verbose,quiet,help,key:,strength: -n 'videowmark' -- "$@"`

The following discussion has relevant information:

https://stackoverflow.com/questions/402377/using-getopts-to-process-long-and-short-command-line-options/7948533

but basically there are two possibilities of fixing this: install GNU getopt or modify the script to use different option handling.

from audiowmark.

swesterfeld avatar swesterfeld commented on August 23, 2024

my env: ubuntu 16.04 gcc:5.0.4

This is kind-of old. Not sure if this has all dependencies for building audiowmark, you'll have to try.

./configure: line 16605: syntax error near unexpected token `ext' ./configure: line 16605: `AX_CXX_COMPILE_STDCXX_14(ext)'

It looks like your autoconf-archive is too old. Try building a stable audiowmark release, then you won't need to use autogen.sh.

Stable releases are available from https://uplex.de/audiowmark/. Then use the configure script instead of autogen.sh.

from audiowmark.

carlca avatar carlca commented on August 23, 2024

Thanks to @swesterfeld and @normen for providing the info.
Note that before running ./autogen.sh I had to run brew install lib tool and brew install png-config but otherwise it all worked a treat. To be honest, I had forgotten about this issue so getting notification about it was most welcome 😉

I should point out that since I wrote the initial message, I have moved to a new Mac Mini M1 and am now running macOS 12.01 Monterey, but everything worked just fine.

from audiowmark.

daryb avatar daryb commented on August 23, 2024

Thanks for pointing me in the right direction @swesterfeld! gnu-getopt is included in macOS, but for some reason isn't symlinked by default...so after symlinking it gets past that step. I've progressed on to another error, relating to the temp file location directories /dev/fd/*, but again, that's probably a macos specific issue, and I can likely figure that one out. If I get everything working, I'll post back. In the meantime if anyone is looking for a workaround for videowmark on macOS, I have been manually stripping the audio with FFMPEG and passing it to audiowmark, and then passing that audio back to FFMPEG to mux or transcode it back into the video. Videowmark does the same thing (Line 87-96 of audiowmark/src/videowmark is the relevant FFMPEG settings for reference), but right now I'm scripting all that and it's working great.

from audiowmark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.