I'm trying to build telldus-core 2.0.4 for OpenWRT for a FoxBoard (http://www.acmesystems.it/FOXLX).
When i build without TellStick support, telldus-core is built fine. But when i enable the TellStick DUO support, i've the following error:
Code: Select all
touch /home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/build_dir/target-cris_uClibc-0.9.30.1/telldus-core-2.0.4/.prepared_3d8686e38d48783495a7a515b4c77c6c
cd /home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/build_dir/target-cris_uClibc-0.9.30.1/telldus-core-2.0.4 && AR=cris-openwrt-linux-uclibc-ar AS="cris-openwrt-linux-uclibc-gcc -c -Os -pipe -funit-at-a-time -fhonour-copts" LD=cris-openwrt-linux-uclibc-ld NM=cris-openwrt-linux-uclibc-nm CC="cris-openwrt-linux-uclibc-gcc" GCC="cris-openwrt-linux-uclibc-gcc" CXX="cris-openwrt-linux-uclibc-g++" RANLIB=cris-openwrt-linux-uclibc-ranlib STRIP=cris-openwrt-linux-uclibc-strip OBJCOPY=cris-openwrt-linux-uclibc-objcopy OBJDUMP=cris-openwrt-linux-uclibc-objdump SIZE=cris-openwrt-linux-uclibc-size cmake -DBUILD_RFCMD=0 -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_LIBTELLDUS-CORE=1 -DBUILD_TDTOOL=1 -DSUPPORT_TELLSTICK_DUO=1 -DSUPPORT_USB=0 -DGENERATE_MAN=0 -DUSE_QT_SETTINGS_BACKEND=0
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/staging_dir/toolchain-cris_gcc-4.3.3_uClibc-0.9.30.1/usr/bin/cris-openwrt-linux-uclibc-gcc
-- Check for working C compiler: /home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/staging_dir/toolchain-cris_gcc-4.3.3_uClibc-0.9.30.1/usr/bin/cris-openwrt-linux-uclibc-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/staging_dir/toolchain-cris_gcc-4.3.3_uClibc-0.9.30.1/usr/bin/cris-openwrt-linux-uclibc-g++
-- Check for working CXX compiler: /home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/staging_dir/toolchain-cris_gcc-4.3.3_uClibc-0.9.30.1/usr/bin/cris-openwrt-linux-uclibc-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FTDI_LIBRARY
linked by target "telldus-core" in directory /home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/build_dir/target-cris_uClibc-0.9.30.1/telldus-core-2.0.4/driver/libtelldus-core
-- Configuring incomplete, errors occurred!
make[3]: *** [/home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/build_dir/target-cris_uClibc-0.9.30.1/telldus-core-2.0.4/.configured_] Error 1
make[3]: Leaving directory `/home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/package/telldus-core'
make[2]: *** [package/telldus-core/compile] Error 2
make[2]: Leaving directory `/home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959'
make[1]: *** [/home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/staging_dir/target-cris_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959'
make: *** [world] Erreur 2
I tried to patch telldus-core/driver/libtelldus-core/CMakeList.txt with following but this didn't work:
Code: Select all
--- a/driver/libtelldus-core/CMakeLists.txt 2012-09-03 19:52:20.000000000 +0200
+++ b/driver/libtelldus-core/CMakeLists.txt 2012-09-03 19:52:47.000000000 +0200
@@ -67,7 +67,7 @@
#### TellStickDuo ####
IF (SUPPORT_TELLSTICK_DUO)
#Only build library agains libftdi for TellStick Duo
- FIND_LIBRARY(FTDI_LIBRARY ftdi)
+ FIND_LIBRARY(FTDI_LIBRARY ftdi PATHS "$ENV{STAGING_DIR}/usr/lib" NO_DEFAULT_PATH)
SET( telldus-core_LIBRARIES
${telldus-core_LIBRARIES}
${FTDI_LIBRARY}
Thanks a lot