0

In these days, I'm learning joy of open-source world. With Homebrew package build management system on Mac OS X. Building software for my purpose was so easy and simple.

Anyway, those package systems are designed for host system only. If I want to build a library (for an example OpenCV) for other system (for an example, iOS, Android or Ubuntu), is there any option?

*The cross-compile means compiling for target system B on host system A.

durron597
  • 31,968
  • 17
  • 99
  • 158
eonil
  • 83,476
  • 81
  • 317
  • 516

2 Answers2

1

OpenCV already has ports to Android and iOS - Android port is officially released with OpenCV 2.3.1; iOS port is currently available in OpenCV trunk only.

Both ports are using cmake for cross-compiling. You can download the sources and see how this is done. Instructions for building Android port are available on OpenCV wiki

Andrey Kamaev
  • 29,582
  • 6
  • 94
  • 88
0

See CMake project: http://www.cmake.org/

Alex F
  • 42,307
  • 41
  • 144
  • 212
  • I could be wrong, but I think the OP wants to *cross-compile*, which requires more than just a cross-platform build system. – Paul R Sep 12 '11 at 10:19