"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

arm64 linker error

Hello!

 

I've been trying to integrate the Vuforia SDK into a preexisting iOS app, but I keep getting errors that seem to be related to the 64-bit architecture. Here is what I'm getting (also attached a screenshot):

Undefined symbols for architecture arm64:
  "_fcvV5w_1", referenced from:
      l6862 in libVuforia.a(libVuforia.a-arm64-master.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

Also, if I remove arm64 from "Valid Architectures" the app seems to compile. However, arm64 is now required so I can't do that.

 

Thanks

AlessandroB

Mon, 03/16/2015 - 12:00

Make sure your Deployment Target is set to iOS 7.0 or higher (in Xcode > Build Settings ...)

I tried doing that, but it still does not work. I attached a new screenshot where you can see

export IPHONEOS_DEPLOYMENT_TARGET=7.0

and It still gives an error. Any other ideas?

I've probably went through the build settings 5 times now, but nothing seems to do it :(

also, I'm not using Unity, if that's what you're refering to as plugins.

 

I was not referring to Unity, just meant "libraries" for "plugins"

 

I'm attaching some screenshots that show the most important settings of a Vuforia Sample;

 

Have you selected your USB-connected device as the target device  ? (i.e. make sure not to build for the "iOS Simulator")

see screenshot.

deleurapps

Tue, 03/17/2015 - 16:51

Everything seems correct there as well.

 

And I only started developing with Vuforia a week ago, so I wouldn't have 2.x or 3.x

 

 

deleurapps

Thu, 03/19/2015 - 18:34

Is there any way I can download an older version of Vuforia 4.0? Maybe its just a problem in this build..?

If you have downloaded Vuforia 4.0 (not the Beta), that should be fine;  for example, you should be able to verify that the Vuforia Samples project can be built and run without problems.

 

deleurapps

Fri, 03/20/2015 - 17:33

Yes the sample works for me.

 

I am just running out of possible reasons for why it's not working. Is there anything else that could be causing this? It's just a single error, which is weird.

 

 

Does you project use some 3rd party libraries that do not support 64bit ?

If so, you may want to check if by removing / disabling some of those libs, things start to work.

 

deleurapps

Fri, 03/20/2015 - 18:15

The project works perfectly before I add Vuforia, so it can't be any other library

Hello,

I got same error.

So,i can't settle a problem yet, either.

Can someone have an opinion?

thank you.

Hello,

I probably found the cause...

xcode -> Build Setting -> dead code stripping -> NO to change YES

So, "_fcvV5w_1" is dead part?

But my project doesn't build without "dead code stripping->NO" setting...

Hi,

 

I'm getting the same problem, and I also can't seem to use the dead code stripping flag as it breaks other parts of my build.

 

Hi,
 
Make a module separate.
 
And exclude dead code.(_fcvV5w_1)
 
When carrying out, it may be settled.
 
http://atnan.com/blog/2012/01/12/avoiding-duplicate-symbol-errors-during-linking-by-rem

Hi Eiyo,

 

Thanks for the suggestion. Unfortunately the libVuforia.a file only contains one objfile.

 

Do you know how I could split the symbol out, or perhaps use the strip command on the .a file for only that symbol?

 

Cheers
Indigo