![InstallingOpenCVonARMboard_第1頁](http://file3.renrendoc.com/fileroot_temp3/2022-2/25/df637635-ef1f-4cd6-9772-8a9e9cad8e67/df637635-ef1f-4cd6-9772-8a9e9cad8e671.gif)
![InstallingOpenCVonARMboard_第2頁](http://file3.renrendoc.com/fileroot_temp3/2022-2/25/df637635-ef1f-4cd6-9772-8a9e9cad8e67/df637635-ef1f-4cd6-9772-8a9e9cad8e672.gif)
![InstallingOpenCVonARMboard_第3頁](http://file3.renrendoc.com/fileroot_temp3/2022-2/25/df637635-ef1f-4cd6-9772-8a9e9cad8e67/df637635-ef1f-4cd6-9772-8a9e9cad8e673.gif)
![InstallingOpenCVonARMboard_第4頁](http://file3.renrendoc.com/fileroot_temp3/2022-2/25/df637635-ef1f-4cd6-9772-8a9e9cad8e67/df637635-ef1f-4cd6-9772-8a9e9cad8e674.gif)
![InstallingOpenCVonARMboard_第5頁](http://file3.renrendoc.com/fileroot_temp3/2022-2/25/df637635-ef1f-4cd6-9772-8a9e9cad8e67/df637635-ef1f-4cd6-9772-8a9e9cad8e675.gif)
版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、Installing OpenCV on ARM board1. IntroductionThis document detailed the steps of installing OpenCV on the ARM board which is running an embedded linux, so that you can run those powerful OpenCV routines on the arm board. Since from OpenCV2.1, cmake is employed to configure the installation of OpenCV
2、 on various of platforms, in this guide, we will talk about how to use cmake to install OpenCV on ARM board.Actually, we not just compiling the OpenCV source code with cross-platform compiler “arm-linux-gcc” and then generated the OpenCV library and include files compatible with the embedded linux s
3、ystem on ARM, such libraries files should also be copied to be arm board. Our own OpenCV program is actually compiled on the ubuntu system with cross-compilers linked with such libraries, and then the generated executable binaries will be copied to the arm board to run. 2. Software and hardware requ
4、irementsARM board: Friendly ARM installed with embedded linux.Compile source: Ubuntu 9.0.4 or higher; CMake2.6.2 or higher; OpenCV 2.1.0; arm-linux-gcc 4.3.2 or higherOther useful libraries: zlib, libpng, libjpeg, libz3. Installation stepsa. Install Ubuntu 9.0.4 on your computer as a virtual machine
5、 or a secondary operating system. The source can be downloaded from: b. If you are in the department network, set the proxy of your system according to the guidance on the CSE corner. Make sure that your system can get internet access and can run the Synaptic Package Manager. c. Change your role to
6、rooti. Set the root password: Go to System> Administration> Users and Groups. Select “root”. Click Unlock, enter the password for the account you are logged into as, and hit close. Then, click Properties, select “Set password by hand”, and set the root password.ii. Enable the root login: Go to
7、 System> Administration> Login Window. Click Security tab. Check “Allow local administrator login”. Click on OK.iii. Log out, then enter root for user name and the password you set in the first step and click Login.d. Install arm-linux-gcc cross compiler. i. Get the arm-linux-gcc 4.3.2 from th
8、e CD come with FriendlyARM or from the internet, ii. Place the arm-linux-gcc 4.3.2 in some folder, say /root/Desktopiii. Launch the terminal, cd to Desktop directoryiv. Unzip the arm-linux-gcc4.3.2.tgz to the root directory “/”, since within this archive, the architecture is like this “/usr/local/ar
9、m/4.3.2/”. Using the command like this:tar -xf arm-linux-gcc-4.3.2.tgz -C /v. Having finished the above operations, you should be able to see the installed files in the /usr/local/arm directoryvi. Then add the installing directory of the arm-linux-gcc to system bash so that the arm-linux-gcc/arm-lin
10、ux-g+ command can be recognized. Open the bashrc file, type in terminal: vim /etc/bash.bashrcIn the opened bashrc file, go to the last line and add: export PATH=$PATH:/usr/local/arm/4.3.2/bin/vii. Test that the arm-linux-gcc is already included in the default path, in the terminal, type : arm-linux-
11、gcc vAnd you should be able to see a set of information about the cross compiler. Now the compiler is ready for use.e. Install the extra libpng, libjpeg, libz librariesi. Open the Synaptic Package Manager via System->Administration->Synaptic Package Manager, and the GUI window appear, click re
12、load to update the database. Typii. Type in the quick search, type in “l(fā)ibpng”, and then in the search result, theres a “l(fā)ibpng12-0” runtime library. On this item, right click and select “mark for installation”, then click “Apply” on top of the GUI.iii. For libjpeg, type in “l(fā)ibjpeg” and then apply
13、similar actions on the “l(fā)ibjpeg62” library. For zlib, type in “zlib” and then apply similar actions on the “zlib1g” library. f. Install cmake and the cmakgui on your ubuntu. Again, in the synaptic package manager, type in “cmake” and then apply similar actions on the “cmake” and “cmakegui” library t
14、o install the two. g. Download OpenCV source for ubuntu from place it on the desktop directory. And use tar command to decompress it to some directory, say /root/Desktop: tar -xf OpenCV-2.1.0.tar.bz2h. Use CMake to configure the OpenCV installation.i. Open the cmakegui by type “cmake-gui” in the ter
15、minal.ii. In the gui window, for the source code location, choose the Opencv folder generated last step. For the “where to build the binaries”, create a temporary folder in the system first, say, /root/opencv, and then select this directory. iii. At the bottom of the GUI window, theres a Configure b
16、utton, click it. And a configuration window will appear. First choose the unix Makefile system, then choose Cross Compiler Setup, do not select Use ToolChain File, and then fill in the corresponding arm-linux cross compiler information as follows. (This configuration is supposing that the arm-linux-
17、gcc is installed exactly in the directory specified in step f). And click OK.iv. Then a list of available configurations will appear on the GUI window, and you can carry out detail configuration toward the installation of the OpenCV library. For example, we can choose to install OpenCV and generate
18、the static libraries or shared libraries (detailed explanation on static and shared library can be found at : work-theory.co.uk/docs/gccintro/gccintro_25.html) . For the options, “with-png” and “with-jpeg” please make sure to select them so that our OpenCV program can handle such image formats. The
19、option “CMAKE_INSTALL_PREFIX” indicates where you want to place the generated OpenCV executable, library and include files, in this guide, we set it to /root/cv-lib. (Make sure you have created such directory, please.)v. Click “Conigure” again, and you can see a summary of the configuration, then cl
20、ick “Generate”. vi. Use terminal to cd to the building path specified in the cmake gui. You will be able to see the generated files and “Makefile” file for actually installing the OpenCV.vii. Open the CMakeCache.txt file with gedit or vim, and set the parameter “CMAKE_EXE_LINKER_FLAGS”to be -lpthrea
21、d -lrt (two extra system library needed for OpenCV). So that the source code can be compiled correctly.viii. In the terminal, type “make”, after the make operation finishes, type in “make install” to finish the installation. Then in the preset install directory “/root/cv-lib” you should be able to s
22、ee the generated libraries and include files. OpenCV have been successfully installed on the linux system and you can use the libraries to compile OpenCV programs that can run on the embedded linux system.ix. Copy all the library files (*.so) in the /root/cv-lib/lib directory to the /lib directory i
23、n the embedded linux system on your arm board so that the executable binaries can run on the system. If possible, please also copy the lib files for the libpng, libjpeg to the embedded system. 4. Communication between the arm-board and PC(running ubuntu)a. Install mincom (an application for controll
24、ing serial port on ubuntu) on your unbutu system either by typing “sudo apt-get install minicom” in the terminal or install it from the synaptic package manager.b. Connect the FriendlyARM system with your PC via serial port and then open the minicom program from terminal. If everything goes smoothly, you should be able to see the following:c. The work
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 昆明2025年云南昆明市生態(tài)環(huán)境局所屬事業(yè)單位引進高層次人才筆試歷年參考題庫附帶答案詳解
- 2025年中國雙人翻轉座椅骨架市場調(diào)查研究報告
- 廣西2025年廣西合浦儒艮國家級自然保護區(qū)管理中心招聘筆試歷年參考題庫附帶答案詳解
- 2025至2031年中國鋁合金絲編織管行業(yè)投資前景及策略咨詢研究報告
- 2025至2031年中國精密交流脈沖焊接機行業(yè)投資前景及策略咨詢研究報告
- 2025至2031年中國玻璃衛(wèi)浴產(chǎn)品行業(yè)投資前景及策略咨詢研究報告
- 2025至2031年中國汽車前大燈鏡片行業(yè)投資前景及策略咨詢研究報告
- 惠州2025年廣東惠州龍門縣市容環(huán)境衛(wèi)生事務中心招聘編外環(huán)衛(wèi)工人14人筆試歷年參考題庫附帶答案詳解
- 2025年平移大門驅(qū)動系統(tǒng)項目可行性研究報告
- 2025年合金鋼襯項目可行性研究報告
- 婚內(nèi)財產(chǎn)債務協(xié)議書(通用)
- 血液透析流程圖
- DB11∕T 1653-2019 供暖系統(tǒng)能耗指標體系
- 齒輪箱振動信號和故障診斷
- 小學生急救常識(課件)主題教育班會
- 信息光學試卷試題及答案
- 文化差異及跨文化交際試題集
- PC-Ф800×800錘式破碎機結構設計
- 慢病患者隨訪服務記錄表
- 雙溪課程評量表完整優(yōu)秀版
- 最新社工服務部組織架構
評論
0/150
提交評論