[OSX] libftdi include <ftdi.h> compilation error
derekolson opened this issue · comments
Derek Olson commented
Cannot compile library on osx due to the library not using the correct libftdi1 include path. I believe this is due to the generated config.h
file being included after the mpsse.h
include here: https://github.com/l29ah/libmpsse/blob/master/src/mpsse.c#L15
Would it make sense to instead include the config.h
defines within mpsse.h
since it is used amongst many parts of this library?
➜ src git:(master) make
cp -f support.c pyswig_support.c
cp -f mpsse.c pyswig_mpsse.c
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in .
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -fPIC -fno-strict-aliasing -g -O2 -g -O2 -g -O2 -MT mpsse.lo -MD -MP -MF .deps/mpsse.Tpo -c -o mpsse.lo mpsse.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wall -Wextra -fPIC -fno-strict-aliasing -g -O2 -g -O2 -g -O2 -MT mpsse.lo -MD -MP -MF .deps/mpsse.Tpo -c mpsse.c -fno-common -DPIC -o .libs/mpsse.o
In file included from mpsse.c:13:
./mpsse.h:9:10: fatal error: 'ftdi.h' file not found
#include <ftdi.h>
^~~~~~~~
1 error generated.
make[2]: *** [mpsse.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2