- Build platform: Windows XP SP3
- Target platform: ARM9 fixed point
- Download and prepare OpenCV library source code
- Download and prepare compiler
- Create/Modify Makefile
- Compile and link
- Run and Test
Highest quality full cycle software development.
Expert in areas of Computer Vision, Multimedia, Messaging, Networking and others. Focused on embedded software development. Competent in building cross-platform solutions and distributed SW systems.
Offer standalone custom solutions as well as integration of existing products. Opened for outsourcing services.
Visit us at: http://www.rhondasoftware.com
Here is a brief description of compiling and running OpenCV’s facedetect sample on Pocket PC.
I used Visual Studio 2005 Team Suite edition to compile OpenCV 1.1 pre 1. It compiled without any trouble for Win32.
Then I tried to compile for Pocket PC (set Platform to Pocket PC 2003 (ARMV4)). Some compilation errors occured. As I only needed to compile a facedetect sample, I decided to compile the necessary files only.
This time I compiled OpenCV library on Debian Linux installation.
I used VMWare 6.5 and Debian OS linux distribution.
I setup Virtual Machine to allocate 10GB hard drive space and 512 MB of system memory.
I setup the latest version of CodeSourcery G++ toolchain (version arm-2008q3-72-arm-none-linux-gnueabi) downloaded from http://www.codesourcery.com/sgpp/lite/arm. The installation dir was /opt/crosstool/codesourcery
OpenCV uses floating point operations a lot, but not all of the ARM processors have FP coprocessor, so developers should use either some FP library, or as in my case – use Linux kernel FP emulation. There are two types of such emulation OABI and EABI. More details can be found here and here. Kernel release 2.6.16 was the first one to include ARM EABI support.
Unfortunately, CPUs of both SBCs do not support floating point in hardware, but luckily enough, TS-7800 has Debian Linux with 2.6.21 kernel. So I had a chance to compare OpenCV performance for OABI and EABI.
Both SBCs have necessary tool-chains in package – TS-7800 has Linux and Windows(Cygwin) tool-chains, SBC-2440 – only Linux one. In addition to these I downloaded newer release of Codesourcery ARM tool-chain for Windows, because the one from TS-7800 SW package didn’t work properly with Cygwin.