Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C++ Coding Magpi#66
#10
(10-29-2018, 03:41 PM)jomoengineer Wrote: /usr/lib

With the libs set as I listed and adding -lpthread to the Other linker options.seems to solve the build issue.

...
Thanks 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!

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.
Reply


Messages In This Thread
C++ Coding Magpi#66 - by Brian Beuken - 01-26-2018, 04:37 PM
RE: C++ Coding Magpi#66 - by jomoengineer - 10-29-2018, 07:35 AM
RE: C++ Coding Magpi#66 - by Brian Beuken - 10-29-2018, 10:00 AM
RE: C++ Coding Magpi#66 - by Brian Beuken - 10-29-2018, 10:02 AM
RE: C++ Coding Magpi#66 - by jomoengineer - 10-29-2018, 03:41 PM
RE: C++ Coding Magpi#66 - by RobertG - 09-30-2020, 10:31 AM
RE: C++ Coding Magpi#66 - by Brian Beuken - 10-29-2018, 03:48 PM
RE: C++ Coding Magpi#66 - by jomoengineer - 10-30-2018, 06:53 AM
RE: C++ Coding Magpi#66 - by Brian Beuken - 10-30-2018, 08:32 AM
RE: C++ Coding Magpi#66 - by jomoengineer - 10-30-2018, 02:45 PM
RE: C++ Coding Magpi#66 - by Brian Beuken - 09-30-2020, 12:33 PM
RE: C++ Coding Magpi#66 - by RobertG - 10-01-2020, 01:34 PM
RE: C++ Coding Magpi#66 - by Brian Beuken - 10-01-2020, 06:41 PM
RE: C++ Coding Magpi#66 - by jomoengineer - 10-05-2020, 06:03 PM
RE: C++ Coding Magpi#66 - by Brian Beuken - 10-06-2020, 10:56 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)