x


Error Importing OpenCV Framework to Unity Project iOS

I built OpenCV using the script available here: http://aptogo.co.uk/2011/09/opencv-framework-for-ios/

Then created a Unity3d iOS project, generated the xcode project from Unity3d, added the OpenCV framework to the project and tried to compile.

I get the following error:

duplicate symbol _adler32 in /my-path/Libraries/libiPhone-lib.a(adler32.o) and /my-path/OpenCV.framework/OpenCV(adler32.o) for architecture armv7

I tried to remove http://adler32.so from the OpenCV lib, using "lipo" and "ar" then repackaged the lib, and I got another duplicated symbol. Eventually I removed a lot of objects from the OpenCV lib and it started complaining about missing symbols.

It was a fun experiment but didn't worked.

If I create a project on xcode with OpenCV it compiles without errors. Unity3d project without OpenCV also works.

xcode version: 4.3.3 unity3d version: 3.5.2 (latest) OpenCV: 2.4.1

I searched for linker option under xcode to see if I could make it more permissive but didnt found anything.

Any idea how to solve the error?

more ▼

asked Jun 26 '12 at 10:51 PM

reistiago gravatar image

reistiago
0 1 1 1

I'm researching on implementing OpenCV with unity for object detection. After you've made some progress, it'll be nice if you put up a tutorial or explain how you did the whole thing. I have never used OpenCV or any other image processing library before.

Jun 27 '12 at 08:53 AM jorjdboss
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1969
x1951
x72
x25
x11

asked: Jun 26 '12 at 10:51 PM

Seen: 609 times

Last Updated: Jun 27 '12 at 08:53 AM