Go to Post Fame is a funny thing, you can do nothing and get it, and do everything and get none. For me, it's not fame, but infamy that follows me. - Joe Matt [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
  #16   Spotlight this post!  
Unread 02-05-2015, 18:37
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++

Quote:
Originally Posted by FRC2501 View Post
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?
What is the output if you run "apt show libstdc++6"?
  #17   Spotlight this post!  
Unread 04-05-2015, 00:34
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: Raspberry Pi C++

That's quite a simple problem to understand, but I don't know how to fix it.

If you notice, in the error, there's some version info about the shared object file.
If this isn't the same, you will often get an error.

I guess that you can try getting that shared object from the system which compiled the code and place it in the libraries folder in your system. You'll need to run ldconfig to flush the changes. After that, it should work magically.

Ideally, you would want to just compile the software on your Pi. OpenCV's CMakeLists.txt is very smart and will automatically optimize your build for what's available for it to use. This way, it can add optimizations such as better GPU acceleration, etc.

Compiling on your Pi will also get rid of the error because you will have compiled your software using libraries already present on your system.
  #18   Spotlight this post!  
Unread 02-06-2015, 22:01
dubiousSwain's Avatar
dubiousSwain dubiousSwain is offline
The ride never ends
AKA: Christian Steward
FRC #5420 (Velocity)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2011
Location: USA
Posts: 304
dubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond repute
Re: Raspberry Pi C++

This is a little bit off topic, but I'm trying to get rudimentary tracking (nothing crazy like NN or 900's code) with the Raspberry Pi and Python, im just having trouble figuring out how to configure it to automatically run on the robot without having to be interfaced with

1. What distros can I use/should be using?
2. How do I run code without logging in?

After I figure out the answer to question 1, I can use my limited knowledge of GNU/Linux to disable GNOME/X, install OpenCV, and autorun my scripts, but those two questions are my current hangups. Any and all advice would be greatly appreciated.
__________________
2015 MAR District Champions




  #19   Spotlight this post!  
Unread 02-06-2015, 23:05
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++

Quote:
Originally Posted by dubiousSwain View Post
1. What distros can I use/should be using?
2. How do I run code without logging in?
.
1. I would recommend a linux distro as they are generally the lightest (and FREE!). A common OS is ubuntu.

2. You can set up any program (or script) to run upon boot in a linux. What 1706 has done for many years now is simply don't require a login and then set up the program to run on boot. This way, as soon as the board gets power (and maybe a press of the power button to start the booting process of the board), the program will start automatically.
__________________
"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."
  #20   Spotlight this post!  
Unread 03-06-2015, 08:43
dubiousSwain's Avatar
dubiousSwain dubiousSwain is offline
The ride never ends
AKA: Christian Steward
FRC #5420 (Velocity)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2011
Location: USA
Posts: 304
dubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond repute
Re: Raspberry Pi C++

Quote:
Originally Posted by faust1706 View Post
1. I would recommend a linux distro as they are generally the lightest (and FREE!). A common OS is ubuntu.

2. You can set up any program (or script) to run upon boot in a linux. What 1706 has done for many years now is simply don't require a login and then set up the program to run on boot. This way, as soon as the board gets power (and maybe a press of the power button to start the booting process of the board), the program will start automatically.
Thank you. I have Raspbian on my RPi right now and the time it takes to log in is atrocious. Is it necessary to disable X if I'm not connected to a display? I want to maximize the resources that my code has available. Also, how does one make Ubuntu not require a login?
__________________
2015 MAR District Champions




  #21   Spotlight this post!  
Unread 03-06-2015, 10:08
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++

Quote:
Originally Posted by dubiousSwain View Post
Is it necessary to disable X if I'm not connected to a display?
Um...you could try only showing terminal. I'm not sure how much that would speed up boot time and I do not recommend unless you are a hardened linux user.
__________________
"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."
  #22   Spotlight this post!  
Unread 26-06-2015, 21:38
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++

So I had some issues with my Pi not booting, so I bought another and the new one works great, I had to restart my OS but now I have it back to operational.

apt show libstdc++ returns command not found

I had tried compiling on the Pi but then the Pi started asking for the FRC libraries.
  #23   Spotlight this post!  
Unread 27-06-2015, 16:28
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 802
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Raspberry Pi C++

Quote:
Originally Posted by FRC2501 View Post
So I had some issues with my Pi not booting, so I bought another and the new one works great, I had to restart my OS but now I have it back to operational.

apt show libstdc++ returns command not found

I had tried compiling on the Pi but then the Pi started asking for the FRC libraries.
apt-cache show libstdc++
dpkg -l libstdc++6

From looking at your initial error message, and this statement, it looks like you are trying to use the FRC toolchains to target the Pi. (The .20 is the version of libstdc++v3 built for the roboRIO) This isn't going to work like you are hoping. I'd recommend either building your code directly on the pi with compilers on the Pi, or finding a good tutorial on building code for the Pi.
  #24   Spotlight this post!  
Unread 30-06-2015, 15:07
nick4130 nick4130 is offline
4130 Mechanical Lead
AKA: Nick
FRC #4130 (The Blue Devils)
Team Role: Human Player
 
Join Date: Apr 2015
Rookie Year: 2015
Location: Richmond, Michigan
Posts: 48
nick4130 is an unknown quantity at this point
Re: Raspberry Pi C++

Does anyone have Raspberry Pi drive train code that i can copy and paste into it? Im doing a side project with one of my friends from 1718
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:54.

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