|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
Re: Raspberry Pi C++
What is the output if you run "apt show libstdc++6"?
|
|
#17
|
||||
|
||||
|
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
|
||||
|
||||
|
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. |
|
#19
|
||||
|
||||
|
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. |
|
#20
|
||||
|
||||
|
Re: Raspberry Pi C++
Quote:
|
|
#21
|
||||
|
||||
|
Re: Raspberry Pi C++
Quote:
|
|
#22
|
||||
|
||||
|
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
|
|||
|
|||
|
Re: Raspberry Pi C++
Quote:
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
|
|||
|
|||
|
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
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|