Created
March 3, 2017 16:55
-
-
Save ollewelin/b74d7a5e1081cf96df8d2900ed396581 to your computer and use it in GitHub Desktop.
My Raspberry pi 3 installation jessie, I/O pins bcm2835, OpenCV, Raspicam, Codeblocks, wxSmith, wxWidgets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step by step installation I made on my Rasperry pi 3 | |
This will install: | |
I/O pins bcm2835, OpenCV, Raspicam, Codeblocks, wxSmith, wxWidgets | |
Here we go.. | |
Install Windisk32 on your ordernary computer | |
download RASPBIAN JESSIE WITH PIXEL disk image from | |
https://www.raspberrypi.org/downloads/raspbian/ | |
to a 16Gb micro SD card use Windisk32 | |
sudo raspi-config | |
Extend partition on SD disk | |
(Only If you have swedish keyboard) change keyboard to generic 105 and swedish | |
Enable camera (so you can use Raspicam) | |
reboot | |
Download, compile, and install the Broadcom BCM 2835 library for the Raspberry Pi | |
http://www.airspayce.com/mikem/bcm2835/ | |
/home/pi/bcm2835-1.50 | |
./configure | |
make | |
sudo make check | |
sudo make install | |
sudo apt-get install cmake | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo rpi-update | |
sudo reboot | |
Release some diskspace: | |
sudo apt-get purge wolfram-engine | |
Install OpenCV: | |
http://raspberrypi.stackexchange.com/questions/49668/how-do-i-install-open-cv-easily-onto-my-raspberry-pi-and-so-that-it-works | |
Step 1: Go openCv site opencv.org and download the latest version for Linux arch. You could possibly get a package downloaded. | |
Step 2: Extract it into a separate folder. Initially there would be two folders , one would be Source and the other one I barely remember. | |
Step 3: Create a new folder called release in the OpenCv directory. | |
Step 4: Go to terminal and type sudo apt-get cmake-gui. This a software used to build up the libraries of OpenCv. | |
Step 5: Cmake-gui application will be present on the start command. So once it opened, it will ask for the directories.. For the source directory select the source folder in the OpenCv installation directory. For the build , select the release folder that you have created in the OpenCv installation directory. | |
Step 6: Then click the configure button.It will ask for build type select the Linux archi. First time once the configuration finished the list view will be red. Again click the configure button. This time the list view will white.. Then click the generate button. | |
Step 7: Once the generate finished. Go to terminal, navigate to release folder in the OpenCv installation directory. Type make and press enter. It take quite some time to build the libraries of OpenCv..once the 100% completed.. type make install or make-install and press enter. Once it done , OpenCv is successfully installed. | |
/home/pi/OpenCV/opencv-3.2.0/release | |
sudo apt-get install cmake-gui | |
sudo cmake-gui | |
sudo make install | |
sudo make | |
/home/pi/raspicam-0.1.6 | |
mkdir build | |
cd build | |
sudo cmake .. | |
sudo make | |
sudo make install | |
=================== | |
Code::blocks och wxSmith och wxWidgets | |
sudo apt-get install codeblocks | |
Install wxSmith tool to codeblocks do | |
sudo apt-get install codeblocks-contrib | |
Install wxWidgets | |
https://www.wxwidgets.org/downloads/ | |
/home/pi/wxWidgets-3.0.2 | |
./configure | |
https://wiki.wxwidgets.org/Installing_and_configuring_under_Ubuntu | |
sudo apt-get install wx3.0-headers libwxgtk3.0-0 libwxgtk3.0-dev | |
Do settings in codeblocks IDE | |
complier settings/ search directory | |
/usr/include/wx-3.0 | |
/home/pi/wxWidgets-3.0.2/include | |
complier settings/linker settings | |
/usr/local/lib/ | |
attach all libopencv files | |
================= | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment