English 中文(简体)
Is it possible to construct build environment for cross-compiling for different target environment?
原标题:

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.

问题回答

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

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





相关问题
Legacy C++ project using Makefile ..moving to Eclipse IDE?

I have a legacy C++ project on Linux which uses the typical: ./configure make make install to build and install. I would really like to build it instead with an IDE like Eclipse. Is this doable? Is ...

Setting up OpenGL on Linux for gtkmm and cross-compilation

I am starting learning OpenGL and I am not sure, how to set it up on (Ubuntu) Linux. I think that this could be a way: OpenGL is only a graphics language specification (or interface) and to properly ...

How to cross compile from Mac OS X to Linux x86?

I m running Mac OS X 10.5.8 and want to compile for target CentOS 5.3 with GCC 4.1.2. How could I: Compile GCC 4.1.2 toolchain and related tools? Use that tool to cross compile for target CentOS 5.3? ...

Cross compiler exception handling - Can it be done safely?

I am doing some maintenance on a C++ windows dll library that is required to work with different VC++ compilers (as I don’t want to address different mangling schemes). I have already eliminated any ...

Compiling windows binaries from Ubuntu?

I am doing a cross-platform C (not ++) game with both linux (main) and windows (alternate) binaries. Until now I used devcpp to compile in windows, but I have trouble getting some libraries to work ...

热门标签