View Single Post
  #2   Spotlight this post!  
Unread 18-01-2016, 10:36
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,099
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Has anybody gotten NetworkTables to work on a RaspberryPi

Quote:
Originally Posted by JohnRLewis View Post
Here is my jar, but I suspect that it is going to work for you too.

https://github.com/JohnRudolfLewis/n...ntcoreblah.jar

I believe there is a difference between our environments. On your Pi, when you run ldd libntcore.so, how does your output differ from mine below?

pi@raspberrypi:~ $ ldd libntcore.so
./libntcore.so: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./libntcore.so)
./libntcore.so: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./libntcore.so)
linux-vdso.so.1 (0x7eded000)
/usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76f6d000)
libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x76e7a000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x76e4d000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76d10000)
/lib/ld-linux-armhf.so.3 (0x54aef000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x76c95000)
I get the same output too. Thats why you have to call LD_PRELOAD before you run your program. LD_PRELOAD allows you to specify a different library as the dependency. So if you LD_PRELOAD to the libstdc++.so.6 found here http://198.199.94.5/ntcore/libstdc++.so.6 it will load that one before trying to load the default one and should work.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.