Go to Post Wow I am old. How did that happen? - Paul Copioli [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-01-2016, 08:52
JohnRLewis JohnRLewis is offline
Registered User
FRC #1294 (TopGun)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Washington
Posts: 7
JohnRLewis is an unknown quantity at this point
Re: Has anybody gotten NetworkTables to work on a RaspberryPi

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)

Last edited by JohnRLewis : 18-01-2016 at 09:07.
  #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,087
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.
  #3   Spotlight this post!  
Unread 18-01-2016, 12:18
JohnRLewis JohnRLewis is offline
Registered User
FRC #1294 (TopGun)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Washington
Posts: 7
JohnRLewis is an unknown quantity at this point
Re: Has anybody gotten NetworkTables to work on a RaspberryPi

I believe I am following your instructions properly, this is the command I am running to launch my jar:

env LD_PRELOAD=/home/pi/libstdc++.so.6 java -jar ntcoreblah.jar

But I still get the error. Is my syntax wrong? Is there yet another dependency that I need to preload? Is there something I need to install on my Pi in order for that environment variable to take effect?

Thank you so much for continuing to reply and not giving up on me!
  #4   Spotlight this post!  
Unread 18-01-2016, 12:22
JohnRLewis JohnRLewis is offline
Registered User
FRC #1294 (TopGun)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Washington
Posts: 7
JohnRLewis is an unknown quantity at this point
Re: Has anybody gotten NetworkTables to work on a RaspberryPi

D'oh.... I already had a version of libstdc++.so.6 in my folder from some previous troubleshooting. When I did a wget on your version, it was not overwriting it for some reason. Gah... I feel like an idiot. Error resolved.


THANK YOU so much for spending so much time with me on this.
  #5   Spotlight this post!  
Unread 24-03-2016, 19:19
axton900's Avatar
axton900 axton900 is offline
Programming Co-Captain
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: New Jersey USA
Posts: 45
axton900 has a spectacular aura aboutaxton900 has a spectacular aura aboutaxton900 has a spectacular aura about
Re: Has anybody gotten NetworkTables to work on a RaspberryPi

Hey guys!
I am currently trying to do what you were doing and was wondering how you were able to be successful. I was able to get NetworkTables working well in C++ but not Java. I try doing what you did where you loaded the ntcore library but I keep getting a NoClassDefFoundError.
Thanks! I really appreciate it!!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi