Var tvungen att testa själv...
Jag drog ner den nya versionen av Telldus Core 2.0.2 och gjorde följande:
Code: Select all
cmake -DBUILD_LIBTELLDUS-CORE=1 -DBUILD_TDTOOL=1 -DBUILD_RFCMD_WITH_LIBFTDI=1 -DGENERATE_MAN=1 .
-- Configuring done
-- Generating done
-- Build files have been written to: /home/krra/tellstick/telldus-core-2.0.2
bubba:/home/krra/tellstick/telldus-core-2.0.2# make
[ 81%] Built target telldus-core
[ 86%] Built target tdtool
[ 90%] Building C object rfcmd/CMakeFiles/find_telldus.dir/find_telldus.o
/home/krra/tellstick/telldus-core-2.0.2/rfcmd/find_telldus.c:9:18: error: ftdi.h: Filen eller katalogen finns inte
/home/krra/tellstick/telldus-core-2.0.2/rfcmd/find_telldus.c: In function ‘main’:
/home/krra/tellstick/telldus-core-2.0.2/rfcmd/find_telldus.c:14: error: storage size of ‘ftdic’ isn’t known
/home/krra/tellstick/telldus-core-2.0.2/rfcmd/find_telldus.c:22: error: ‘EXIT_FAILURE’ undeclared (first use in this function)
/home/krra/tellstick/telldus-core-2.0.2/rfcmd/find_telldus.c:22: error: (Each undeclared identifier is reported only once
/home/krra/tellstick/telldus-core-2.0.2/rfcmd/find_telldus.c:22: error: for each function it appears in.)
/home/krra/tellstick/telldus-core-2.0.2/rfcmd/find_telldus.c:30: error: dereferencing pointer to incomplete type
/home/krra/tellstick/telldus-core-2.0.2/rfcmd/find_telldus.c:35: error: dereferencing pointer to incomplete type
/home/krra/tellstick/telldus-core-2.0.2/rfcmd/find_telldus.c:41: error: ‘EXIT_SUCCESS’ undeclared (first use in this function)
make[2]: *** [rfcmd/CMakeFiles/find_telldus.dir/find_telldus.o] Fel 1
make[1]: *** [rfcmd/CMakeFiles/find_telldus.dir/all] Fel 2
make: *** [all] Fel 2
Samma fel som du fick. Jag får uppdatera min guide, för nästa gång gick det bättre!
Code: Select all
bubba:/home/krra/tellstick/telldus-core-2.0.2# cmake -DBUILD_LIBTELLDUS-CORE=1 -DBUILD_TDTOOL=1 -DBUILD_RFCMD_WITH_LIBFTDI=0 -DGENERATE_MAN=1 .
-- Configuring done
-- Generating done
-- Build files have been written to: /home/krra/tellstick/telldus-core-2.0.2
bubba:/home/krra/tellstick/telldus-core-2.0.2# make
[ 90%] Built target telldus-core
[ 95%] Built target tdtool
Scanning dependencies of target rfcmd
[100%] Building C object rfcmd/CMakeFiles/rfcmd.dir/rfcmd.o
Linking C executable rfcmd
Generating man file rfcmd.1
[100%] Built target rfcmd
bubba:/home/krra/tellstick/telldus-core-2.0.2# make install
[ 90%] Built target telldus-core
[ 95%] Built target tdtool
[100%] Built target rfcmd
Install the project...
-- Install configuration: ""
-- Up-to-date: /usr/local/lib/libtelldus-core.so.2.0.2
-- Up-to-date: /usr/local/lib/libtelldus-core.so.2
-- Up-to-date: /usr/local/lib/libtelldus-core.so
-- Up-to-date: /usr/local/include/telldus-core.h
-- Up-to-date: /etc/tellstick.conf
-- Up-to-date: /var/state/telldus-core.conf
-- Up-to-date: /etc/udev/rules.d/99-tellstick.rules
-- Up-to-date: /usr/local/share/man/man1/tdtool.1
-- Up-to-date: /usr/local/bin/tdtool
-- Installing: /usr/local/bin/rfcmd
-- Installing: /usr/local/share/man/man1/rfcmd.1
bubba:/home/krra/tellstick/telldus-core-2.0.2#
Testar med min upplärda Tellstick:
Code: Select all
tdtool -l
/var/state/telldus-core.conf:1: ingen flagga 'deviceNode' finns
Number of devices: 1
1 Example device OFF
Tadaa! Nåja, ett lite varningsmeddelande går ju att trolla bort:
Code: Select all
bubba:/home/krra/tellstick/telldus-core-2.0.2# cp /dev/null /var/state/telldus-core.conf
bubba:/home/krra/tellstick/telldus-core-2.0.2# tdtool -l
Number of devices: 1
1 Example device OFF
bubba:/home/krra/tellstick/telldus-core-2.0.2#
Tadaaa - nu med änglakör i bakgrunden!
Ett litet steg till:
Editera din enhet i /etc/tellstick.conf (om jag kommer ihåg rätt...)