Go to Post And then the judges joined in and did the wave! - Basel A [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 21-04-2015, 18:29
FRC2501's Avatar
FRC2501 FRC2501 is offline
Registered User
FRC #2501 (Bionic Poalrs)
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Minnesota
Posts: 52
FRC2501 is an unknown quantity at this point
Raspberry Pi C++

I am trying to get team 2168's vision tracking working on a Raspberry Pi 2, but I get this error:
Code:
./2168_Vision_Example: error while loading shared libraries: libstdc++.so.6.0.20: cannot open shared object file: No such file or directory
I have had little experience with code outside of writing it and hitting compile and send to rio, could someone help me get this working

Last edited by FRC2501 : 21-04-2015 at 18:37.
  #2   Spotlight this post!  
Unread 21-04-2015, 18:36
SoftwareBug2.0's Avatar
SoftwareBug2.0 SoftwareBug2.0 is offline
Registered User
AKA: Eric
FRC #1425 (Error Code Xero)
Team Role: Mentor
 
Join Date: Aug 2004
Rookie Year: 2004
Location: Tigard, Oregon
Posts: 486
SoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant future
Re: Raspberry Pi C++

Do you see something named "libstdc++..." on your device? I don't have a Raspberry Pi to look at but it would be typically in something like /usr/lib. If you find it, see if the version number matches.
  #3   Spotlight this post!  
Unread 21-04-2015, 18:48
FRC2501's Avatar
FRC2501 FRC2501 is offline
Registered User
FRC #2501 (Bionic Poalrs)
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Minnesota
Posts: 52
FRC2501 is an unknown quantity at this point
Re: Raspberry Pi C++

There isn't a libstdc++ in that folder, I'm assuming that means that I have to get that library?
If so how would I get that library?
  #4   Spotlight this post!  
Unread 21-04-2015, 19:03
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: Raspberry Pi C++

You can statically link the library on the compiler end.
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK
  #5   Spotlight this post!  
Unread 21-04-2015, 20:06
FRC2501's Avatar
FRC2501 FRC2501 is offline
Registered User
FRC #2501 (Bionic Poalrs)
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Minnesota
Posts: 52
FRC2501 is an unknown quantity at this point
Re: Raspberry Pi C++

Quote:
Originally Posted by connor.worley View Post
You can statically link the library on the compiler end.
And how would I do this?
  #6   Spotlight this post!  
Unread 21-04-2015, 20:09
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: Raspberry Pi C++

Quote:
Originally Posted by FRC2501 View Post
And how would I do this?
That depends on your environment... how are you building code for the pi?
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK
  #7   Spotlight this post!  
Unread 21-04-2015, 20:25
FRC2501's Avatar
FRC2501 FRC2501 is offline
Registered User
FRC #2501 (Bionic Poalrs)
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Minnesota
Posts: 52
FRC2501 is an unknown quantity at this point
Re: Raspberry Pi C++

I am using Eclipse
  #8   Spotlight this post!  
Unread 21-04-2015, 20:41
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: Raspberry Pi C++

Quote:
Originally Posted by FRC2501 View Post
I am using Eclipse
Did you follow a guide? Please link it. The more detail you can provide the better.
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK
  #9   Spotlight this post!  
Unread 21-04-2015, 20:50
FRC2501's Avatar
FRC2501 FRC2501 is offline
Registered User
FRC #2501 (Bionic Poalrs)
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Minnesota
Posts: 52
FRC2501 is an unknown quantity at this point
Re: Raspberry Pi C++

I followed this guide:
https://github.com/Team2168/2168_Vision_Example

and to be honest I have no idea how the code I typed becomes the thing that runs on the roboRIO
  #10   Spotlight this post!  
Unread 21-04-2015, 21:26
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: Raspberry Pi C++

I would remove what installation you have of opencv, and start fresh.

Glancing at the code, or rather what's in the repo. If you haven't, try installing opencv separate from here: https://github.com/Itseez/opencv, or by simply typing sudo apt-get install opencdv-lib. You aren't losing anything by not using their altered opencv that can change one camera's internal settings. V4L2 does this for ANY camera, well, for the most part.

Once you think it is done, run the following program to ensure everything is working:

https://github.com/rr1706/sample

Then I would try to run their program if you desire.

So in your first post you say you are using the Pi, but on your latest one you say the roboRIO....

As for your last comment indirectly about compilers: grab a book about compilers and read it. The general cs courseload for any university should include a class on compilers.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
  #11   Spotlight this post!  
Unread 21-04-2015, 21:50
FRC2501's Avatar
FRC2501 FRC2501 is offline
Registered User
FRC #2501 (Bionic Poalrs)
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Minnesota
Posts: 52
FRC2501 is an unknown quantity at this point
Re: Raspberry Pi C++

Quote:
Originally Posted by faust1706 View Post
I would remove what installation you have of opencv, and start fresh.

Glancing at the code, or rather what's in the repo. If you haven't, try installing opencv separate from here: https://github.com/Itseez/opencv, or by simply typing sudo apt-get install opencdv-lib. You aren't losing anything by not using their altered opencv that can change one camera's internal settings. V4L2 does this for ANY camera, well, for the most part.

Once you think it is done, run the following program to ensure everything is working:

https://github.com/rr1706/sample

Then I would try to run their program if you desire.

So in your first post you say you are using the Pi, but on your latest one you say the roboRIO....

As for your last comment indirectly about compilers: grab a book about compilers and read it. The general cs courseload for any university should include a class on compilers.

Sorry about confusing you, I am running this on a Pi, but I have the most experience with the rios, I reinstall the OpenCV, but it seems to be another C++ library not the OpenCV one that it needs.
  #12   Spotlight this post!  
Unread 22-04-2015, 08:20
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: Raspberry Pi C++

I figured your installation of opencv wasn't the problem, but you never know. I don't really trust getting the opencv source from anywhere but from the repo I shared.

I think this terminal command with solve all your problems:

sudo apt-get install lib32stdc++6
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
  #13   Spotlight this post!  
Unread 23-04-2015, 19:01
FRC2501's Avatar
FRC2501 FRC2501 is offline
Registered User
FRC #2501 (Bionic Poalrs)
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Minnesota
Posts: 52
FRC2501 is an unknown quantity at this point
Re: Raspberry Pi C++

I tried to install it with apt-get and this came up, I did find that it has libstdc++ on it but not lib32stdc++
Code:
E: Unable to locate package lib32stdc++6
E: Couldn't find any package by regex 'lib32stdc++'

Last edited by FRC2501 : 23-04-2015 at 19:03.
  #14   Spotlight this post!  
Unread 24-04-2015, 21:32
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: Raspberry Pi C++

Um....shot in the dark here: sudo apt-get build-essential. Sorry for the rather delayed response.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
  #15   Spotlight this post!  
Unread 28-04-2015, 18:59
FRC2501's Avatar
FRC2501 FRC2501 is offline
Registered User
FRC #2501 (Bionic Poalrs)
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Minnesota
Posts: 52
FRC2501 is an unknown quantity at this point
Re: Raspberry Pi C++

Ok a few things:
1. build-essential is already the newest version
2. lib32stdc++6 is not available
3. libstdc++6 is already the newest version

Doe anybody know how to fix this?
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 19:53.

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