View Single Post
  #6   Spotlight this post!  
Unread 21-11-2016, 12:58
kmckay's Avatar
kmckay kmckay is offline
Registered User
FRC #5401 (Fightin' Robotic Owls)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Bensalem, PA
Posts: 39
kmckay will become famous soon enough
Re: GRIP Deploy Not Working

Quote:
Originally Posted by SamCarlberg View Post
You need to set the "LD_LIBRARY_PATH" environment variable to have the directory you put the ntcore libraries. You can do this either by the method on the wiki:

Code:
$ env LD_LIBRARY_PATH=/home/pi/vision/grip:$LD_LIBRARY_PATH java -jar ...
or by setting it in the .bashrc file in your home directory by adding this line:

Code:
export LD_LIBRARY_PATH=/home/pi/vision/grip:$LD_LIBRARY_PATH
You can edit this file with "$ nano ~/.bashrc".
Speaking on behalf of the amateur programmers, seeing this answer and others like it, I think I've found the problem.
I think we missed this line in the wiki guide:
"From the deploy window, click deploy. Once it's finished deploying just hit stop as GRIP will fail to run properly due to library issues."

We're supposed to get the errors when we deploy, its normal, we should ignore it, and continue down the wiki where we run GRIP from the command line using the "env". I understand this is an RTFM error on mine and others' parts, but it might eliminate some questions if this was highlighted a bit more in the wiki.
Correct?

Well, I did that, and from the command line I'm getting:
Code:
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct null not valid
Reply With Quote