Hi Joseph I finally figured it out my clang version was 3.13.2 and I upgrded it to 3.20.3 and it finally got me going. I think some hints on dependencies may be useful for versions and so on.
thanks for all your help and look forward to your course next week.
compiles great but complains when I execute the binary pingable-node: error while loading shared libraries: libzt.so: cannot open shared object file: No such file or directory
I included the /lib/libzt.so location in the path but when i run the binary complains about not finding the libzt.so
Glad youāve made progress. Iāll test that dependency and update the docs, thanks.
An important concept: A shared library (.so) isnāt linked, but rather loaded at runtime. A static library (.a) is linked at compile-time. Basically think of a static library as a set of object (.o) files all smashed together. How it operates is very different than a shared library.
Is actually trying to link against libzt.a found at the location specified with -L
In order to use a shared library libzt.so/dylib you need to explicitly load it using something like dlopen, but I wouldnāt recommend that. Iād just focus on using the libzt.a static library.
But I would just try to get the libzt.a linking working first. Thatās easiest. Iāll be doing a little extended Q&A session on discord after the talk so I can help you get this sorted out if the above doesnāt help.
Thanks for the info Joseph, thatās really helpful and looking forward to your conference. I am happy to have it stable and working, I was able to make some minor modifications and chack that I was compiling ok with a few new printf statements. The .so .a clear up why I was getting the errors thanks.
I have taken a break to reset my head lol. I will take a look at that page, I have a few talented programmers and I am reviewing from an architecture point of view. I hope your tutorial helps others to get going, it just takes a bit of patience.
I will have a go at the static library and take a fresh look some time through the week. Many thanks for all the quick responses, very much appreciated.
Hi,Iāve spent my time porting the zerotier(Libzt) on ESP32 using ESP-IDF framework these days.But Iāve enconunter serveral problems on CMake cross compile for this project.
Iāve finish the component with some struggling & debuging on CMake.Everything goes fine(ESP-IDF built finish) until cross build for libzt(100ERROR,36WARNING!)ā¦haha
The compiler says āMutexā does not name a type ā (Maybe The thread lock in FreeRTOS isāt compatible with libzt itself)
Anyone could help me these errors?OR you can go on for my works on the project,thanks
I looked at this some tikme bback and you may have to find a compatible library that interacts with lwip for it to work natively. Iām not ure if the architecture is suited for MCU, depends on what you want to achieve, it will be use case specific. Thanks for posting the git repo will try and take a look as I am always interested in zerotier.