compiling OpenCV (emgucv) arm

asked 2014-03-31 22:07:33 -0500

davini gravatar image

I have searched and searched, not able to find any information to help. I am trying to cross compile EmguCV 2.4.2 using CodeSourcery toolchain through a BSP shell. Really, I'm just trying to cross compile opencv through this bsp shell. No matter how I configure the cmake, this is the result:

/opt/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/lib/crt1.o: In function _start': init.c:(.text+0x30): undefined reference to `main' collect2: ld returned 1 exit status

This seems to happen around the the time it tries to compile/link libtiff. I know this has something to do with the Makefile having mis-configured link directive or possible a source file not including some header, or maybe something completely different.

Does anyone have anyway to resolve this? or is there another toolchain? I am really out of ideas, and have been stuck on this for a while.

Here's my steps:

LTIB> git clone git://git.code.sf.net/p/emgucv/code emgucv

LTIB> cd emgucv

LTIB> git checkout tags/2.4.2

LTIB> git submodule update --init --recursive

LTIB> cmake -DBUILD_NEW_PYTHON_SUPPORT:BOOL=FALSE -DBUILD_TESTS:BOOL=FALSE -DBUILD_DOCS:BOOL=FALSE -DWITH_TBB:BOOL=FALSE -DWITH_CUDA:BOOL=FALSE -DWITH_OPENCL:BOOL=FALSE .

LTIB> make

~33% it errors out.

edit retag flag offensive close merge delete