From 648bfb25498985c8313718937a83d1f917082c6d Mon Sep 17 00:00:00 2001 From: yonatanp Date: Sat, 18 Oct 2014 13:39:48 +0300 Subject: [PATCH 1/3] bugfix: now it can compile on Mac OS X --- libcodegen/File.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcodegen/File.h b/libcodegen/File.h index e277f34..d1732ad 100644 --- a/libcodegen/File.h +++ b/libcodegen/File.h @@ -9,6 +9,8 @@ #include #ifdef _WIN32 #include "win_unistd.h" +#else +#include "unistd.h" #endif /* This makes file writing a bit easier (makes sure we don't forget to fclose, basically). Use it like this: From 0be5dcf52f846efa1d403a34a2b83656e97c1893 Mon Sep 17 00:00:00 2001 From: yonatanp Date: Sat, 18 Oct 2014 13:51:15 +0300 Subject: [PATCH 2/3] mac os x compilation fix: uint was undefined --- echoprint.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/echoprint.cpp b/echoprint.cpp index 25a32f5..dd2de5f 100644 --- a/echoprint.cpp +++ b/echoprint.cpp @@ -2,6 +2,10 @@ #include #include +#ifndef uint +define uint unsigned int +#endif + static PyObject * echoprint_codegen(PyObject *self, PyObject *args) { PyObject *py_samples; int start_offset = 0; From c7b8d66572db97886b3adb19ef1d781b005a3c3d Mon Sep 17 00:00:00 2001 From: yonatanp Date: Sat, 18 Oct 2014 13:54:13 +0300 Subject: [PATCH 3/3] Mac OS X compilation: added a comment in readme with build instructions --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index acf0acf..e133307 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,10 @@ Then as root or in a virtualenv: python setup.py install +On OS X, you may need to add the taglib header folder into the include path, similar to the following example: + + CPATH=:/usr/local/Cellar/taglib/1.9.1/include/taglib python setup.py install + Usage -----