ARKitExperiments icon indicating copy to clipboard operation
ARKitExperiments copied to clipboard

Arm64 build issue

Open Juntano opened this issue 7 years ago • 4 comments

Hi, i am currently working on a AR project for my school, and what u did with this project looks cool ! I tried to build your project ( on a Virtual machine / Os 10.12). When i try to build it, it gives me this error : d: warning: ' file was built for unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6F 0x6E 0x73 0x2F 0x43 0x75 0x72 0x72 0x65 0x6E 0x74 ) which is not the architecture being linked (arm64): /Users/test/ARKitExperiments/opencv/Frameworks/Plugins/iOS/OpencvProcessing/opencv2.framework/opencv2 "

i was wondering if u have any idea to solve this problem? i am using the same Unity version as you, as well as ios 11 for my cellphone etc...

Thanks a lot ! ( sorry for my english, i am a baguette (Vive la France !) )

Juntano avatar Sep 18 '17 13:09 Juntano

Hi,

This looks like an issue with the opencv framework file that was copied to the OpencvProcessing folder.

Did you use the opencv2.framework file from here? https://sourceforge.net/projects/opencvlibrary/files/opencv-ios/3.3.0/opencv-3.3.0-ios-framework.zip/download

Bon Chance!

realityenhanced avatar Sep 19 '17 01:09 realityenhanced

Hi, I'm working with my friend, I used the link you gave but we still encounter the same problem.

We also didn't mention but with the warning given, we have 20 errors with this kind of message:

Undefined symbols for architecture arm64: "cv::String::allocate(unsigned long)", referenced from: cv::Mat::Mat(int, int, int, void*, unsigned long) in libopencvprocessing.a(matchdescriptors.o)

For what it's worth, building the project on Unity 2017.1.1f1 doesn't give us any errors or warnings. We are using the latest Xcode (Version 9.0 (9A235)). I read on some forums that it might be some library linking problem did you have this kind of issue before ?

Thank you for your support.

Please forgive us for our poor knowledge of Xcode, we are new to the iOS/OSX stuff :)

ghost avatar Sep 19 '17 08:09 ghost

I haven't hit this issue, but I am using Xcode Version 9.0 beta 5 (9M202q)

realityenhanced avatar Sep 19 '17 15:09 realityenhanced

I updated to the Xcode version you are using (Version 9.0 (9A235)), but have no issues compiling in Xcode.

realityenhanced avatar Sep 21 '17 04:09 realityenhanced