Replies: 4 comments
-
I think you are trying to compile the library as a program. You should compile one of the examples (create your own based on the examples) and use the library. |
Beta Was this translation helpful? Give feedback.
-
yes, You are right, because as a 60yo noob I followed and execute your install instractions here step by step: Depend on it
However, Okay, I understand, there are basics on how to use platformio. Would you? |
Beta Was this translation helpful? Give feedback.
-
Are you using linux natively or via WSL? I'm asking because this library uses serial communication. This is (imho) rather complicated in WSL and requires extra steps. Do these steps for native development.
Now you should be able to compile the program. |
Beta Was this translation helpful? Give feedback.
-
Using Linux native, already up to date build tools, Program successfully built! When I have an Optolink I will test it. |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing this work!
Install Problems:
-pthread error (can be solved with -lpthread)
g++ error: No such File or Dir... path problem,
I abondoned this way.
So I installed VSCode, Platformio on Linux Debian Bookworm,
not familiar with this OS I get error that I`m not able to solve:
Processing native (platform: native)
Verbose mode can be enabled via
-v, --verbose
optionLDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 1 compatible libraries
Scanning dependencies...
Dependency Graph
|-- VitoWiFi @ 3.0.1
Building in debug mode
Compiling .pio/build/native/src/Datapoint/Converter.o
Compiling .pio/build/native/src/Datapoint/Datapoint.o
Compiling .pio/build/native/src/GWG/GWG.o
Compiling .pio/build/native/src/GWG/PacketGWG.o
Compiling .pio/build/native/src/Interface/HardwareSerialInterface.o
Compiling .pio/build/native/src/Interface/LinuxSerialInterface.o
Compiling .pio/build/native/src/Interface/SoftwareSerialInterface.o
Compiling .pio/build/native/src/VS1/PacketVS1.o
Compiling .pio/build/native/src/VS1/VS1.o
Compiling .pio/build/native/src/VS2/PacketVS2.o
Compiling .pio/build/native/src/VS2/ParserVS2.o
Compiling .pio/build/native/src/VS2/VS2.o
Compiling .pio/build/native/libce6/VitoWiFi/Datapoint/Converter.o
Compiling .pio/build/native/libce6/VitoWiFi/Datapoint/Datapoint.o
Compiling .pio/build/native/libce6/VitoWiFi/GWG/GWG.o
Compiling .pio/build/native/libce6/VitoWiFi/GWG/PacketGWG.o
Compiling .pio/build/native/libce6/VitoWiFi/Interface/HardwareSerialInterface.o
Compiling .pio/build/native/libce6/VitoWiFi/Interface/LinuxSerialInterface.o
Compiling .pio/build/native/libce6/VitoWiFi/Interface/SoftwareSerialInterface.o
Compiling .pio/build/native/libce6/VitoWiFi/VS1/PacketVS1.o
Compiling .pio/build/native/libce6/VitoWiFi/VS1/VS1.o
Compiling .pio/build/native/libce6/VitoWiFi/VS2/PacketVS2.o
Compiling .pio/build/native/libce6/VitoWiFi/VS2/ParserVS2.o
Compiling .pio/build/native/libce6/VitoWiFi/VS2/VS2.o
Archiving .pio/build/native/libce6/libVitoWiFi.a
Indexing .pio/build/native/libce6/libVitoWiFi.a
Linking .pio/build/native/program
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/Scrt1.o: in function
_start': (.text+0x17): undefined reference to
main'collect2: error: ld returned 1 exit status
*** [.pio/build/native/program] Error 1
Please, how to solve it.
Happy New Year!!!
Beta Was this translation helpful? Give feedback.
All reactions