billmccord / OpenCV-Android

A project for porting and optimizing OpenCV for Google's Android OS
http://billmccord.github.com/OpenCV-Android/
444 stars 162 forks source link

how can compile it with cygwin #20

Closed patrickzhu8 closed 13 years ago

patrickzhu8 commented 13 years ago

!. OpecnCV can pass in Ubutu,but when work in cygwin,compile error information is ..bin/ld.exe:cannot find -lcxcore.

2.I am so confuse that the following in android.mk

LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -ldl -llog \ L$(TARGET_OUT) -lcxcore -lcv -lcvaux -lcvml -lcvhighgui as NDK document,LOCAL_LDLIBS should link a *.so lib,but the above of OpenCV lib is a static lib. 3.but if I delete the above OpenCV,ndk-build can compile,but show so mang error. I have try so many idea to solve it,but no any progress,hope someone can help me.

patrickzhu8 commented 13 years ago

I have solved this problems to modify android.mk the releated sentence as below. LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -ldl \ -L$(SYSROOT)/usr/lib -llog \ -L$(TARGRT_OUT) -lcvhighgui \ -L$(TARGRT_OUT) -lcvml \ -L$(TARGRT_OUT) -lcvaux \ -L$(TARGRT_OUT) -lcv \ -L$(TARGRT_OUT) -lcxcore

LOCAL_SRC_FILES := \ WLNonFileByteStream.cpp \ cvjni.cpp

LOCAL_STATIC_LIBRARIES := cvhighgui cvml cvaux cv cxcore

but I didn't find the exectly explaintion,hope someone can show me.