libftdi Archives

Subject: mac osx build of libftdi

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 2 Dec 2011 22:14:45 +0800
Just tried to build libftdi-1.0 git under Mac OSX Lion (Mac Mini 2011).
There are a few problems, one is probably related to boost under MacPorts,
the other may be related to libftdi-1.0 codes.

Please take a look at the log. Thanks.

Xiaofans-Mac-mini:build xiaofanc$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build type: Debug
-- checking for module 'libusb-1.0'
--   found libusb-1.0, version 1.0.8
-- Found LIBUSB: /usr/local/lib/libusb-1.0.dylib
-- Boost version: 1.47.0
-- Detected git snapshot version: v0.17-297-gaf04b0d
-- Building libftdi++
-- Found SWIG: /opt/local/bin/swig (found version "2.0.4")
-- Found PythonLibs: /usr/lib/libpython2.7.dylib
-- Found PythonInterp: /usr/bin/python (found version "2.7.1")
-- Building python bindings via swig. Will be installed under
/usr/local/lib64/python2.7/site-packages
-- checking for module 'libconfuse'
--   found libconfuse, version 2.7
-- Building ftdi_eeprom
-- Building example programs.
-- Building libftdi++ examples.
-- Boost version: 1.47.0
-- Found the following Boost libraries:
--   unit_test_framework
-- Building unit test
-- Found Doxygen: /opt/local/bin/doxygen
-- Doxygen found.
-- Generating API documentation with Doxygen
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/xiaofanc/work/libftdi/libftdi/build
Xiaofans-Mac-mini:build xiaofanc$ git pull

Xiaofans-Mac-mini:build xiaofanc$ make -i
[  8%] Built target ftdi
[ 12%] Built target ftdipp
[ 12%] Generating doc/html/index.html
[ 20%] Built target docs
[ 29%] Built target ftdi-static
[ 33%] Built target ftdipp-static
[ 41%] Built target _ftdi
[ 45%] Built target ftdi_eeprom
[ 50%] Built target baud_test
[ 54%] Built target bitbang
[ 58%] Built target bitbang2
[ 62%] Built target bitbang_cbus
[ 66%] Built target bitbang_ft2232
[ 70%] Building C object examples/CMakeFiles/eeprom.dir/eeprom.c.o
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c: In function
‘read_decode_eeprom’:
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:21: error: too
few arguments to function ‘ftdi_read_eeprom’
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:30: warning:
implicit declaration of function ‘ftdi_get_eeprom_value’
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:30: error:
‘CHIP_SIZE’ undeclared (first use in this function)
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:30: error:
(Each undeclared identifier is reported only once
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:30: error: for
each function it appears in.)
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:42: warning:
implicit declaration of function ‘ftdi_get_eeprom_buf’
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:61: warning:
passing argument 1 of ‘ftdi_eeprom_decode’ from incompatible pointer
type
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:61: warning:
passing argument 2 of ‘ftdi_eeprom_decode’ makes pointer from integer
without a cast
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:61: error: too
few arguments to function ‘ftdi_eeprom_decode’
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c: In function ‘main’:
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:218: error:
‘CHIP_TYPE’ undeclared (first use in this function)
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:235: warning:
passing argument 1 of ‘ftdi_eeprom_initdefaults’ from incompatible
pointer type
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:235: error: too
many arguments to function ‘ftdi_eeprom_initdefaults’
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:236: warning:
implicit declaration of function ‘ftdi_set_eeprom_value’
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:236: error:
‘MAX_POWER’ undeclared (first use in this function)
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:247: warning:
passing argument 1 of ‘ftdi_eeprom_build’ from incompatible pointer
type
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:247: error: too
few arguments to function ‘ftdi_eeprom_build’
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:258: warning:
passing argument 1 of ‘ftdi_eeprom_initdefaults’ from incompatible
pointer type
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:258: error: too
many arguments to function ‘ftdi_eeprom_initdefaults’
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:277: warning:
passing argument 1 of ‘ftdi_eeprom_build’ from incompatible pointer
type
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:277: error: too
few arguments to function ‘ftdi_eeprom_build’
/Users/xiaofanc/work/libftdi/libftdi/examples/eeprom.c:285: error: too
few arguments to function ‘ftdi_write_eeprom’
Linking C executable eeprom
i686-apple-darwin11-llvm-gcc-4.2: CMakeFiles/eeprom.dir/eeprom.c.o: No
such file or directory
[ 70%] Built target eeprom
Scanning dependencies of target find_all
[ 75%] Building C object examples/CMakeFiles/find_all.dir/find_all.c.o
Linking C executable find_all
[ 75%] Built target find_all
Scanning dependencies of target find_all_pp
[ 79%] Building CXX object examples/CMakeFiles/find_all_pp.dir/find_all_pp.cpp.o
Linking CXX executable find_all_pp
Undefined symbols for architecture x86_64:
  "Ftdi::Context::open(Ftdi::libusb_device*)", referenced from:
      _main in find_all_pp.cpp.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
[ 79%] Built target find_all_pp
Scanning dependencies of target serial_test
[ 83%] Building C object examples/CMakeFiles/serial_test.dir/serial_test.c.o
Linking C executable serial_test
[ 83%] Built target serial_test
Scanning dependencies of target simple
[ 87%] Building C object examples/CMakeFiles/simple.dir/simple.c.o
/Users/xiaofanc/work/libftdi/libftdi/examples/simple.c: In function ‘main’:
/Users/xiaofanc/work/libftdi/libftdi/examples/simple.c:16: error:
storage size of ‘version’ isn’t known
/Users/xiaofanc/work/libftdi/libftdi/examples/simple.c:23: warning:
implicit declaration of function ‘ftdi_get_library_version’
/Users/xiaofanc/work/libftdi/libftdi/examples/simple.c:16: warning:
unused variable ‘version’
Linking C executable simple
i686-apple-darwin11-llvm-gcc-4.2: CMakeFiles/simple.dir/simple.c.o: No
such file or directory
[ 87%] Built target simple
Scanning dependencies of target stream_test
[ 91%] Building C object examples/CMakeFiles/stream_test.dir/stream_test.c.o
/Users/xiaofanc/work/libftdi/libftdi/examples/stream_test.c:72: error:
expected declaration specifiers or ‘...’ before ‘FTDIProgressInfo’
/Users/xiaofanc/work/libftdi/libftdi/examples/stream_test.c: In
function ‘readCallback’:
/Users/xiaofanc/work/libftdi/libftdi/examples/stream_test.c:125:
error: ‘progress’ undeclared (first use in this function)
/Users/xiaofanc/work/libftdi/libftdi/examples/stream_test.c:125:
error: (Each undeclared identifier is reported only once
/Users/xiaofanc/work/libftdi/libftdi/examples/stream_test.c:125:
error: for each function it appears in.)
/Users/xiaofanc/work/libftdi/libftdi/examples/stream_test.c: In function ‘main’:
/Users/xiaofanc/work/libftdi/libftdi/examples/stream_test.c:217:
warning: implicit declaration of function ‘ftdi_readstream’
Linking C executable stream_test
i686-apple-darwin11-llvm-gcc-4.2:
CMakeFiles/stream_test.dir/stream_test.c.o: No such file or directory
[ 91%] Built target stream_test
Scanning dependencies of target test_libftdi
[ 95%] Building CXX object test/CMakeFiles/test_libftdi.dir/basic.cpp.o
/Users/xiaofanc/work/libftdi/libftdi/test/basic.cpp:17:36: error:
boost/test/unit_test.hpp: No such file or directory
/Users/xiaofanc/work/libftdi/libftdi/test/basic.cpp:21: error:
expected constructor, destructor, or type conversion before ‘(’ token
/Users/xiaofanc/work/libftdi/libftdi/test/basic.cpp:33: error:
expected constructor, destructor, or type conversion at end of input
[100%] Building CXX object test/CMakeFiles/test_libftdi.dir/baudrate.cpp.o
/Users/xiaofanc/work/libftdi/libftdi/test/baudrate.cpp:18:36: error:
boost/test/unit_test.hpp: No such file or directory
/Users/xiaofanc/work/libftdi/libftdi/test/baudrate.cpp:19:29: error:
boost/foreach.hpp: No such file or directory
/Users/xiaofanc/work/libftdi/libftdi/test/baudrate.cpp:49: error:
expected constructor, destructor, or type conversion before ‘(’ token
Linking CXX executable test_libftdi
i686-apple-darwin11-llvm-g++-4.2:
CMakeFiles/test_libftdi.dir/basic.cpp.o: No such file or directory
i686-apple-darwin11-llvm-g++-4.2:
CMakeFiles/test_libftdi.dir/baudrate.cpp.o: No such file or directory
[100%] Built target test_libftdi


-- 
Xiaofan

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx

Current Thread