dsacre/pyliblo

fatal error: 'lo/lo.h' file not found

paulirish opened this issue ยท 2 comments

I get this when easy_installing pyliblo as well as following your own install instructions.

~/pyliblo-0/pyliblo-0.9.2
$ ./setup.py build
running build
running build_ext
building 'liblo' extension
creating build
creating build/temp.macosx-10.9-intel-2.7
creating build/temp.macosx-10.9-intel-2.7/src
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/liblo.c -o build/temp.macosx-10.9-intel-2.7/src/liblo.o -fno-strict-aliasing -Werror-implicit-function-declaration -Wfatal-errors
src/liblo.c:314:10: fatal error: 'lo/lo.h' file not found
#include "lo/lo.h"
         ^
1 error generated.
error: command 'cc' failed with exit status 1

Do you have liblo (the C library on which pyliblo is based) installed?

You may also need to tell the compiler where to look for liblo headers and libraries. At least I've heard from several OS X users who had to manually set the C_INCLUDE_PATH and LIBRARY_PATH enviroment variables, because liblo's default install prefix of /usr/local was not automatically searched by the compiler.

If you've found this via Google and you're on OSX, the solution is simply:

brew install liblo