monome / libmonome

makes writing applications for Monomes easy.
ISC License
304 stars 159 forks source link

liblo not found on OS X 10.9 #39

Closed alesaccoia closed 9 years ago

alesaccoia commented 9 years ago

Hi, I have been trying to build libmonome with the following liblo:

In no way waf will find it. I printed "conf.env.LIBDIR" and it's actually pointing to the right place, /usr/local/lib. adding -vvv to configure doesn't really make a difference because it doesn't show the error code of clang. what could it be? I am on Mavericks.. cheers

wrl commented 9 years ago

could you paste me the results of build/config.log?

alesaccoia commented 9 years ago

here it is

http://pastebin.com/Lpqt0Us7

wrl commented 9 years ago

man. so, here's a weird question: have you rebooted between the time that you installed liblo and tried to build libmonome? in my experience, it takes a reboot to get OSX to rebuild the dyld cache and start using it.

worth a shot.

alesaccoia commented 9 years ago

rebooted now, it still doesn't work.. I have no clue

alesaccoia commented 9 years ago

ls /usr/local/lib/liblo. liblo.0.6.0.dylib liblo.0.dylib liblo.7.dylib liblo.a liblo.dylib liblo.la

lipo -detailed_info /usr/local/lib/liblo.a Fat header in: /usr/local/lib/liblo.a ....

same for the dylib

alesaccoia commented 9 years ago

Wow I have spent so many hours on this. still no luck now I have explicitly moved these to line 138, before check_liblo. Notice that I have explicitly added the -L and -I flags. now liblo is found

 conf.env.append_unique("CFLAGS", [
  "-I/usr/local/include",
    "-std=c99", "-Wall", "-Werror",
    "-Wno-initializer-overrides"])

conf.env.append_unique("LINKFLAGS", [
    "-L/usr/local/lib"])

But then, at build time, a function declaration in monome.h is missing when compiling src/monomeserial.c. Log here

http://pastebin.com/i0zjPTVV

So I installed libmonome from homebrew :-/. Weird that when using brew install --build-from-source libmonome everything works (it's calling ./waf configure --prefix=/usr/local/Cellar/libmonome/1.2 ) For serialosc, I have been able to compile it, after doing the same thing: adding -I and -L and moving it higher in the wscript. Still no idea... and it's the first time I use waf

alesaccoia commented 9 years ago

successfully configured with

LIBRARY_PATH=/usr/local/lib CPATH=/usr/local/include waf configure

then build and install

kaosbeat commented 6 years ago

I had to specify the path where brew install liblo LIBRARY_PATH=/usr/local/Cellar/liblo/0.29/lib/ CPATH=/usr/local/include ./waf configure but after that configure worked...

thanks