|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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 Last edited by FRC2501 : 21-04-2015 at 18:37. |
|
#2
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
|||||
|
|||||
|
Re: Raspberry Pi C++
You can statically link the library on the compiler end.
|
|
#5
|
||||
|
||||
|
Re: Raspberry Pi C++
And how would I do this?
|
|
#6
|
|||||
|
|||||
|
Re: Raspberry Pi C++
That depends on your environment... how are you building code for the pi?
|
|
#7
|
||||
|
||||
|
Re: Raspberry Pi C++
I am using Eclipse
|
|
#8
|
|||||
|
|||||
|
Re: Raspberry Pi C++
Did you follow a guide? Please link it. The more detail you can provide the better.
|
|
#9
|
||||
|
||||
|
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
|
||||
|
||||
|
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. |
|
#11
|
||||
|
||||
|
Re: Raspberry Pi C++
Quote:
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
|
||||
|
||||
|
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. |
|
#13
|
||||
|
||||
|
Re: Raspberry Pi C++
Quote:
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. |
|
#14
|
||||
|
||||
|
Re: Raspberry Pi C++
Quote:
|
|
#15
|
||||
|
||||
|
Re: Raspberry Pi C++
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|