Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C++ Coding Magpi#66
#5
Yeah, I compared the Project code from the MagPi github repository with mine but the one posted is for an older version of Raspbian. I'm running the latest with a RasPi 3B+.

The images you provided do not match what is in the magazine article but make more sense. The article did not mention /usr/lib and suggestion keeping the selections relative.

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

Also, I had set 'gpu_mem=256' and 'dtoverlay=vc4-fkms-v3' in '/boot/config.txt' to run other OpenGL games but this seems to cause an issue with the MagPi code. This is the error I see from gdb:

(gdb) run
Starting program: /home/pi/development/MagPi/ed65/HelloWorld/bin/Debug/HelloWorld
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Hello my name is Bobby1and my Xpos is1.4013e-45
* failed to add service - already in use?
[New Thread 0x76bbf450 (LWP 1473)]
[Thread 0x76ff4000 (LWP 1470) exited]
[Inferior 1 (process 1470) exited with code 01]

After removing (commenting) out 'gpu_mem=256' and 'dtoverlay=vc4-fkms-v3' and rebooting the Pi this solved the issue and the example runs just fine now. However, my HelloTriangle example from the Fundamentals book still does not run but that is another issue.

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