Page 1 of 1

Problem med kompilering av tellstick.net firmware

Posted: Fri Mar 17, 2023 9:45 am
by fajihfaujf
Försöker kompilera tellstick.net-firmware för lokal access men jag lyckas inte. Har installerat rätt version av PICC18 men något verkar spöka där ändå..
pi@raspberrypi ~/tellstick-net/build $ cmake ../firmware/ -DPICC18_PATH=/usr/hitech/picc-18/pro/9.63PL3/bin/picc18 -DDEBUG=n -DDEVICE_ADDRESS=192.168.1.124
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/tellstick-net/build
pi@raspberrypi ~/tellstick-net/build $ make
[ 1%] Compiling common.c
/usr/hitech/picc-18/pro/9.63PL3/bin/picc18: 1: /usr/hitech/picc-18/pro/9.63PL3/bin/picc18: Syntax error: "(" unexpected
make[2]: *** [common.p1] Error 2
make[1]: *** [CMakeFiles/TellStickNet.dir/all] Error 2
make: *** [all] Error 2
pi@raspberrypi ~/tellstick-net/build $
Några idéer på vad som kan vara fel?

Re: Problem med kompilering av tellstick.net firmware

Posted: Fri Mar 17, 2023 9:45 am
by fajihfaujf
Gav upp att försöka kompilera på raspberry pi:n och försökte genom Debian istället. Den hittade inte arctech.c och blev först tvungen att lägga till i FindRF.cmake:
SET(CMAKE_CURRENT_LIST_DIR ${CMAKE_SOURCE_DIR}/../rf)
och i FindTCPIP.cmake
SET(CMAKE_CURRENT_LIST_DIR ${CMAKE_SOURCE_DIR}/../tcpip)

Nu får jag istället detta felmeddelande:

Code: Select all

[  0%] Compiling /root/tellstick-net/tcpip/Hashes.c
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Sun, 09 Jun 2013
[  0%] Linking TellStickNet.hex
HI-TECH C PRO for the PIC18 MCU Family  V9.63PL3
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Sun, 09 Jun 2013
/root/tellstick-net/tcpip/ETH97J60.c: 338: (765) degenerate unsigned comparison (warning)
plib/i2c/i2c1eeap.c: 24: (766) degenerate signed comparison (warning)
plib/i2c/i2c1eeap.c: 36: (766) degenerate signed comparison (warning)
/root/tellstick-net/tcpip/TCP.c: 2009: (1257) local variable "_buffer" is used but never given a value (warning)
/root/tellstick-net/firmware/tellsticknet.c: 54: (712) can't generate code for this expression
(908) exit status = 1
make[2]: *** [TellStickNet.hex] Fel 1
make[1]: *** [CMakeFiles/TellStickNet.dir/all] Fel 2
make: *** [all] Fel 2
Några idéer vad som kan vara fel nu?