Freematics compiling error

viacom123410 months ago

I just bought 2 freematics traccar edition trackers. I get an error during compiling the code. This is with freematics builder 1.2.3 V5 telelogger

c:/program files (x86)/freematics builder/hardware/tools/esp32/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Admin\AppData\Local\Temp/FreematicsBuilder/telelogger.ino.o: in function `TeleClientHTTP::ping()':
C:\Users\Admin\Documents\2_Misc\freematics\Freematics-master\firmware_v5\telelogger/telelogger.ino:669: multiple definition of `TeleClientHTTP::ping()'; C:\Users\Admin\AppData\Local\Temp/FreematicsBuilder/teleclient.cpp.o:C:\Users\Admin\Documents\2_Misc\freematics\Freematics-master\firmware_v5\telelogger/teleclient.cpp:669: first defined here
c:/program files (x86)/freematics builder/hardware/tools/esp32/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Admin\AppData\Local\Temp/FreematicsBuilder/telelogger.ino.o: in function `TeleClientUDP::shutdown()':
C:\Users\Admin\Documents\2_Misc\freematics\Freematics-master\firmware_v5\telelogger/telelogger.ino:499: multiple definition of `TeleClientUDP::shutdown()'; C:\Users\Admin\AppData\Local\Temp/FreematicsBuilder/teleclient.cpp.o:C:\Users\Admin\Documents\2_Misc\freematics\Freematics-master\firmware_v5\telelogger/teleclient.cpp:499: first defined here
c:/program files (x86)/freematics builder/hardware/tools/esp32/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Admin\AppData\Local\Temp/FreematicsBuilder/telelogger.ino.o: in function `TeleClientHTTP::shutdown()':
C:\Users\Admin\Documents\2_Misc\freematics\Freematics-master\firmware_v5\telelogger/telelogger.ino:674: multiple definition of `TeleClientHTTP::shutdown()'; C:\Users\Admin\AppData\Local\Temp/FreematicsBuilder/teleclient.cpp.o:C:\Users\Admin\Documents\2_Misc\freematics\Freematics-master\firmware_v5\telelogger/teleclient.cpp:674: first defined here
c:/program files (x86)/freematics builder/hardware/tools/esp32/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Admin\AppData\Roaming/Freematics Builder/Build/esp32/core_160.a(main.cpp.o):(.literal._Z8loopTaskPv+0x8): undefined reference to `setup()'
c:/program files (x86)/freematics builder/hardware/tools/esp32/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Admin\AppData\Roaming/Freematics Builder/Build/esp32/core_160.a(main.cpp.o):(.literal._Z8loopTaskPv+0xc): undefined reference to `loop()'
c:/program files (x86)/freematics builder/hardware/tools/esp32/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Admin\AppData\Roaming/Freematics Builder/Build/esp32/core_160.a(main.cpp.o): in function `loopTask(void*)':
C:\Program Files (x86)\Freematics Builder/hardware/arduino/esp32/cores/esp32/main.cpp:42: undefined reference to `setup()'
c:/program files (x86)/freematics builder/hardware/tools/esp32/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Program Files (x86)\Freematics Builder/hardware/arduino/esp32/cores/esp32/main.cpp:48: undefined reference to `loop()'
collect2.exe: error: ld returned 1 exit status

Error occurred during compiliation

Anton Tananaev10 months ago

Are you using the steps from the documentation?

https://www.traccar.org/freematics-configuration/

viacom123410 months ago

Well except I downloaded the freematics builder exe instead of using the Visual studio code because that didnt work.

Anton Tananaev10 months ago

Are you saying both didn't work?

viacom123410 months ago

Also config.h cannot be edited (reverts back to default every time). Config.xml is the one that changes the configuration.

viacom123410 months ago

Freematics builder produces a compiler error.

Visual studio code is to create the freematics builder. There is no instructions on what to do after platformIO has been installed. For example what board needs to be selected?