Compilation of telldus-core 2.0.4 on OpenWRT / TellStick DUO

Moderator: Telldus

Post Reply
rclsilver
Posts: 4
Joined: Fri Mar 17, 2023 9:45 am

Compilation of telldus-core 2.0.4 on OpenWRT / TellStick DUO

Post by rclsilver »

Hi!

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've enabled ftdi library and kernel module in make menuconfig.

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}
Anyone could help me about this issue ?

Thanks a lot :)
rclsilver
Posts: 4
Joined: Fri Mar 17, 2023 9:45 am

Re: Compilation of telldus-core 2.0.4 on OpenWRT / TellStick

Post by rclsilver »

Hi...

I've added -DFTDI_LIBRARY=ftdi in the Makefile and now, i've the following error:

Code: Select all

make[6]: Entering directory `/home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/build_dir/target-cris_uClibc-0.9.30.1/telldus-core-2.0.4'
[  4%] Building CXX object driver/libtelldus-core/CMakeFiles/telldus-core.dir/telldus-core.cpp.o
In file included from /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/telldus-core.cpp:13:
/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/TellStickDuo.h:15:19: error: QThread: No such file or 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/TellStickDuo.h:16:18: error: QMutex: No such file or directory
make[6]: *** [driver/libtelldus-core/CMakeFiles/telldus-core.dir/telldus-core.cpp.o] Error 1
make[6]: Leaving directory `/home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/build_dir/target-cris_uClibc-0.9.30.1/telldus-core-2.0.4'
make[5]: *** [driver/libtelldus-core/CMakeFiles/telldus-core.dir/all] Error 2
make[5]: Leaving directory `/home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/build_dir/target-cris_uClibc-0.9.30.1/telldus-core-2.0.4'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/build_dir/target-cris_uClibc-0.9.30.1/telldus-core-2.0.4'
make[3]: *** [/home/thomas.betrancourt/Documents/Work/FoxBoard/openwrt-r21959/build_dir/target-cris_uClibc-0.9.30.1/telldus-core-2.0.4/.built] Error 2
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
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Compilation of telldus-core 2.0.4 on OpenWRT / TellStick

Post by micke.prag »

2.0.4 does not support TellStick Duo. You must use > 2.1.0.
Micke Prag
Software
Telldus Technologies
rclsilver
Posts: 4
Joined: Fri Mar 17, 2023 9:45 am

Re: Compilation of telldus-core 2.0.4 on OpenWRT / TellStick

Post by rclsilver »

Hi,

Thanks for your answer, i'm just trying to build telldus-core-2.1.1 on trunk of OpenWRT (in a first time).

In a second time, i'll try to configure the build for the FoxBoard ( :banghead: )

If you have any advice... :)

Thankyou
niclasf
Posts: 163
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Compilation of telldus-core 2.0.4 on OpenWRT / TellStick

Post by niclasf »

Did you get the telldus-core to compile in the end?
I will soon try to compile telldus-core as well but for openwrt running on mips (wr703n)

/N
stickman
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

Re: Compilation of telldus-core 2.0.4 on OpenWRT / TellStick

Post by stickman »

I just built the telldus-core package for a mips target (same as yours, actually) with no issues whatsoever.

Haven't had the chance to test it in actual hardware since my TL-WR703N is on its way and my TL-MR3020 is on stock firmware...
cosmo61
Posts: 2
Joined: Fri Mar 17, 2023 9:45 am

Re: Compilation of telldus-core 2.0.4 on OpenWRT / TellStick

Post by cosmo61 »

I running telldus-core on a TL-WR703N for a while without problem.
I switched to 8mb (harware hack). Installed a stript version of python and run remotestick-server on it with remotestick-webgui.
So far it's working very well.
https://github.com/pakerfeldt/remotestick-server
https://github.com/morkeleb/remotestick-webgui
niclasf
Posts: 163
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Compilation of telldus-core 2.0.4 on OpenWRT / TellStick

Post by niclasf »

stickman wrote:I just built the telldus-core package for a mips target (same as yours, actually) with no issues whatsoever.

Haven't had the chance to test it in actual hardware since my TL-WR703N is on its way and my TL-MR3020 is on stock firmware...
Excellent news!
As I understand it I will need an openwrt Makefile for the package that will in turn call the telldus-package-included Makefile. It would be great if you could provide me with that Makefile.

/Niclas
stickman
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

Re: Compilation of telldus-core 2.0.4 on OpenWRT / TellStick

Post by stickman »

There is no need for that as telldus-core is already included in openwrt trunk.

You just have to build it as any other package for your target.
Post Reply