09-30-2020, 10:31 AM
(10-29-2018, 03:41 PM)jomoengineer Wrote: /usr/libThanks so much for your helpful post! I had just tried the example and run into exactly the same problems before coming here to see if someone had already found a solution... Thanks to your hints my Hello_Triangle example from MagPi is running now!
With the libs set as I listed and adding -lpthread to the Other linker options.seems to solve the build issue.
...
The article did mention a different set of libs for systems after 2017, but obviously the libs have been changed again... This is a bit of a hassel for beginners like myself, because one can expect that ones code wont compile every two to three years due to changes in libs and I would not know how to identify the relevant libs myself at the time being... (I saw that there is a Hello_Triangle example delivered with the OS under /opt/vc/src/hello_pi/ , maybe with more experience I would be able to extract the relevant information from there...)
I could locate all libs in the snapshot provided by Brian except "pthread", but adding the "other compiler option" -lpthread just did the trick...
Also, I still specified the libs with full name and relative path as advised in the article, which worked... e.g.
../../../../../opt/vc/lib/libbcm_host.so
etc.