Jag har letat och sökt i forument och
http://developer.telldus.se/browser
men inte hittat telldus-core.h.
Så vänligen var kan jag få tag i den?
Var hittar jag telldus-core.h
Moderator: Telldus
-
- Site Admin
- Posts: 2243
- Joined: Fri Mar 17, 2023 9:45 am
- Location: Lund
- Contact:
Re: Var hittar jag telldus-core.h
Beroende på operativsystem så installeras den med TelldusCenter.
Micke Prag
Software
Telldus Technologies
Software
Telldus Technologies
Re: Var hittar jag telldus-core.h
ubuntu 12.04 LTS
TelldusCenter 2.1.2_beta8
tdtool 2.1.2_beta8
TelldusCenter 2.1.2_beta8
tdtool 2.1.2_beta8
-
- Site Admin
- Posts: 2243
- Joined: Fri Mar 17, 2023 9:45 am
- Location: Lund
- Contact:
Re: Var hittar jag telldus-core.h
Då ska du installera telldus-core-dev.
Micke Prag
Software
Telldus Technologies
Software
Telldus Technologies
Re: Var hittar jag telldus-core.h
Det fungerar ej men jag skall kanske installera på annat sätt?
Code: Select all
sudo apt-get install telldus-core-dev
...
E: Unable to locate package telldus-core-dev
-
- Site Admin
- Posts: 2243
- Joined: Fri Mar 17, 2023 9:45 am
- Location: Lund
- Contact:
Re: Var hittar jag telldus-core.h
Testa libtelldus-core-dev
Micke Prag
Software
Telldus Technologies
Software
Telldus Technologies
Re: Var hittar jag telldus-core.h
Det fungerar nu!
Tack!
Tack!
Re: Var hittar jag telldus-core.h
Jag fick problem i alla fall. Det verkar som jag saknar ett bibliotek för en del funktioner. Jag har letet på min burk men inte hittat något lämpligt.
Den file jag försöker kompilera kommer från
http://developer.telldus.com/browser#ex ... ing/main.c
--EDIT----------------------------------------------------------------------------------------------
Nu är helgen räddad!
Gjorde susen.
Jag visste tydligen inte hur make-filen skall användas på rätt sätt. Trodde att det bara var att skriva "make" utan argument. Jag får läsa på om make.
Code: Select all
erik@eeePC:~/Tellstick/c-ex$ make
gcc -o sensor -Wall -ltelldus-core main.o
main.o: In function `main':
main.c:(.text+0x121): undefined reference to `tdInit'
main.c:(.text+0x19b): undefined reference to `tdSensorValue'
main.c:(.text+0x236): undefined reference to `tdSensorValue'
main.c:(.text+0x2c7): undefined reference to `tdSensor'
main.c:(.text+0x2d4): undefined reference to `tdClose'
collect2: ld returned 1 exit status
make: *** [all] Error 1
http://developer.telldus.com/browser#ex ... ing/main.c
--EDIT----------------------------------------------------------------------------------------------
Nu är helgen räddad!
Code: Select all
gcc main.c -ltelldus-core
Jag visste tydligen inte hur make-filen skall användas på rätt sätt. Trodde att det bara var att skriva "make" utan argument. Jag får läsa på om make.
Code: Select all
CC=gcc
CFLAGS=-Wall -ltelldus-core
OBJS = main.o
all: ${OBJS}
${CC} -o sensor ${CFLAGS} ${OBJS}
main.c:
${CC} ${CFLAGS} -c main.c
clean:
rm -f sensor main.o