Comments (6)
I'd suggest to use the XCode project to build ob Mac OS. I must admit, that I am not sure, if clang and libpng-config are installed per default on Mac OS. Do you have installed xcode?
Hope this helps
-- Benjamin
from wav2png.
Starting with Xcode 4.3, Apple does not install command line tools by default anymore, so after Xcode installation, go to Preferences > Downloads > Components > Command Line Tools and click Install. You can also directly download Command Line Tools for Xcode without getting Xcode (https://developer.apple.com/downloads).
I think, that you should be able to compile wav2png via make, after installing the Xcode command line tools.
Cheers
-- Benjamin
from wav2png.
Hi Benjamin,
Thanks for the replies. I actually only have Xcode 3.2.4, so I think the command line tools area already installed. My problem may be that i don't have libpng-config or clang installed. I found this tutorial on installing libpng http://kenno.wordpress.com/2006/04/20/compiling-libpng-for-mac-os-x/. I installed it, as well as its dependency zlib.
I downloaded the binary of clang++.
This fixed the dependency issues. However, now when I try to compile I get this error:
make
mkdir -pdirname ./bin/Darwin/wav2png
/path/to//lib/clang++/clang+llvm-3.1-x86_64-apple-darwin11/bin/clang++ -O3 -Wall -Werror -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/include/ -I./dependencies/includelibpng-config --ldflags
-lsndfile -lboost_program_options-mt ./src/*.cpp -o ./bin/Darwin/wav2png
./src/main.cpp:1:10: fatal error: 'sndfile.hh' file not found
#include <sndfile.hh>
Thoughts? Thank you,
R
from wav2png.
Yes, this one is easy. libsndfile is a dependency. The easiest way to install it on Mac OS X is via homebrew:
1.) Install Homebrew (If you havent allready)
https://github.com/mxcl/homebrew/wiki/installation
2.) install libsndfile:
brew install libsndfile
Thanks for pointing out the issues, I'll update the build instructions.
Cheers
-- Benjamin
from wav2png.
I've updated the build instructions for Mac OS X. I know, that it is a little bit more complicated than on linux, because installing the dependencies is a little harder.
I've forgot to mention earlier, that you also have to install png++ and put it into dependencies/include.
Cheers
-- Benjamin
from wav2png.
Thanks. I also had to install the boost c++ libraries.
And then, I was having issues with the version.hpp file. So i created it manually in a text editor. You may need to review the Makefile, because the creation of the version.hpp file did not work for me (or remove that process altogether). I also had to compile libpng15 on my computer because i had libpng12. I also installed sox with homebrew for mp3 conversion.
Once that was all setup, I finally was able to compile it! It's bloody fast.
Thanks for your help.
from wav2png.
Related Issues (20)
- libboost_program_options.so.1.42.0: cannot open shared object file: HOT 2
- Reading from stdin does not work, but from file does HOT 2
- error while loading shared libraries: libboost_program_options.so.1.42.0 HOT 6
- Illegal instruction: 4 HOT 3
- batch_process.py yeilds no output HOT 5
- error: unknown warning option '-Wno-unused-local-typedefs' [-Werror,-Wunknown-warning-option] HOT 3
- segmentation fault ./wav2png ? HOT 6
- Support for BWF (Broadcast WAVE)? HOT 2
- How to use HOT 2
- Any possibility of a non-X11 version of the droplet? HOT 8
- Would not comiple for me on Fedora 25 HOT 1
- Getting 'File contains data in an unknown format.' error
- Build failed HOT 1
- wav2png: error while loading shared libraries: libboost_program_options.so.1.62.0: cannot open shared object file: No such file or directory HOT 2
- macOS binary not working in High Sierra.
- could I get the waveform data from wav file๏ผ HOT 7
- Error after compile on ubuntu 20.04 aarch64
- clang: error: linker command failed with exit code 1 (mac install) HOT 1
- Build Error: missing libboost_program_options-mt.a & libsndfile.a
- Are generated images not subject to the GPL-2? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wav2png.