(1). CPU: Andes RISC CPU core_N12.
(2). 平台: ADP-XC5FF676 V1.1.
(3). Linux OS: Ubuntu9.04.
(4). Toolchains: AndeSight v1.3.3 for Linux.
(5). Embedded Linux2.6.18
(6). Qt Creator 1.3 IDE .
(7). Qt for embedded Linux 4.6.1.
2. 輸入〝source bashrc.nds32le-linux-V0〞指定交叉編譯路徑,這的步驟請參照setup步驟.
3. 輸入〝tar -xjf OpenCV-2.0.0.tar.bz2〞解壓縮.
4. 輸入〝cd OpenCV-2.0.0〞至目錄下.
5. 在編譯前須先修改一些程式,至開啟目錄〝autotools/config.sub〞檔案.
6. 修改程式,增加line 246,
與line 327(注意有Tab鍵與空白鍵的差異).
7. 開啟目錄〝include/opencv/cxoperations.hpp〞程式.
8. 修改程式line 68 ,修改成〝#if __GNUC__ >= 4 __linux〞,增加的參數為CMake編譯環境參數.
9. 輸入〝./configure --host=nds32le-linux --without-gtk --without-carbon --without-quicktime --without-1394libs --without-v4l --without-ffmpeg --without-python --without-swig --enable-static --disable-shared --disable-apps CXX=nds32le-linux-g++ CPPFLAGS=-I/usr/include〞設定編譯參數.
10. 輸入〝make〞開始編譯.
11. 編譯完成後,輸入〝sudo PATH=/home/acer/Andestech/AndeSight133/toolchains/nds32le-linux-glibc-V0/bin:$PATH make install〞,再輸入password,安裝產生函式庫.
12. 結果產生在根目錄〝/usr/local〞的〝lib〞與〝include〞附錄下.
4. 將上一章節的範例程式複製至Qt Creator,開啟OpenCV路徑〝
5. 開啟歨驟2~3所創造的New Project,使用滑鼠點選〝
下載完整程式:
7. 使用滑鼠點選〝
8. 按〝
4. 輸入〝
5. 輸入〝
6. 輸入〝
*注意: 編譯前要先使用〝Synaptic Package Manager〞安裝〝
7. 輸入〝
8. 安裝完畢,測試程式,輸入〝
9. 輸入〝
10. 輸入〝
