Topic locked

Building with Vuforia 4.0 but still getting linker issues for arm64?

March 2, 2015 - 8:49am #1

Does any one else have issues building 64bit with the new Vuforia 4.0.
I am building a project using Vuforia 4.0. I put together the skeleton project and it builds ok before I add in vuforia. But after I add in libVuforia.a, set up the Library Search path and add the Header Search Path I get these linker issues.
 

Undefined symbols for architecture arm64:
  "std::__1::__next_prime(unsigned long)", referenced from:
      l19725 in libVuforia.a(libVuforia.a-arm64-master.o)
      l20300 in libVuforia.a(libVuforia.a-arm64-master.o)
      l20307 in libVuforia.a(libVuforia.a-arm64-master.o)
  "std::__1::__vector_base_common<true>::__throw_length_error() const", referenced from:
      l19376 in libVuforia.a(libVuforia.a-arm64-master.o)
      l19585 in libVuforia.a(libVuforia.a-arm64-master.o)
      l19586 in libVuforia.a(libVuforia.a-arm64-master.o)
      l20281 in libVuforia.a(libVuforia.a-arm64-master.o)
      l20282 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)

Has anyone come accross this? Any solutions?
 

Building with Vuforia 4.0 but still getting linker issues for ar

March 16, 2015 - 1:42am #11

Thanks kaibd for sharing this.

Very good point: indeed, the iOS deploymeny target must be set to 7.0 or higher for 64bit to work.

Building with Vuforia 4.0 but still getting linker issues for ar

March 16, 2015 - 1:37am #10

For anyone still having problems with this, I found that for me the issue was being caused when using other frameworks or plugins. Those plugins would default the "iOS Deployment Target" back to 6.0.

This would happen for me when using Unity with plugins or when using phonegap/cordova out the box. Projects set to a deployment target before iOS7 will not build 64bit and cause the error I originally described. You can change this setting in xcode under Build Settings > Deployment > iOS Deployment Target. It must be set to 7.0 or higher. I hope this helps.

Building with Vuforia 4.0 but still getting linker issues for ar

March 15, 2015 - 5:12pm #9

Any updates on this? I'm getting arm64 linker issues as well

Building with Vuforia 4.0 but still getting linker issues for ar

March 13, 2015 - 2:55am #8

Ok, great to hear the progress ;-)

Building with Vuforia 4.0 but still getting linker issues for ar

March 13, 2015 - 2:29am #7

Hi,

Thanks for the help. Just before I left work I stripped the project right back, and found out that one of the other plugins I have in the project is causing the issue. It must be modifying the project as well. Ill have to look into it and see whats being changed!

Adam

Building with Vuforia 4.0 but still getting linker issues for ar

March 12, 2015 - 10:59am #6

"...It was working fine for a couple of builds, and now it will not build and instead gives me the errors shown by the OP..."

Sounds like you might have (perhaps involontarily) changed something in your project; is that possible..?

Also, try to do a complete "cleanup", i.e.:

- delete the Xcode project 

- close Unity

- delete the /Library folder under your Project folder

- reopen Unity > your project

- rebuild the project in Unity, making sure that the IL2CPP Scripting Backend is selected, and that Architecture is set to Universal in Unity Player Settings

 

If that does not solve, try re-importing the Vuforia unity-package into the project

 

Building with Vuforia 4.0 but still getting linker issues for ar

March 12, 2015 - 10:32am #5

I am getting the same issues. It was working fine for a couple of builds, and now it will not build and instead gives me the errors shown by the OP. Any help on this would be apprecaited. I will check against the sample project shortly. I am using Unity to build the project.

Building with Vuforia 4.0 but still getting linker issues for ar

March 6, 2015 - 2:37am #4

Have you tried comparing your Xcode project settings with the settings of a Vuforia Sample (which are already configured to build and run on 64bit) ?

That might help identifying any difference that might cause your project to fail to link on 64bit 

 

Building with Vuforia 4.0 but still getting linker issues for ar

March 6, 2015 - 1:07am #3

I am using the naitive C++ API with Xcode 6 and Vuforia 4.0. Thank you for your response but the link you have provided is for Vuforia 3 and the instructions are for removing 64bit support from the build. I can't use this solution as you can no longer submit apps that do not support 64bit to the app store.

Building with Vuforia 4.0 but still getting linker issues for ar

March 4, 2015 - 9:35pm #2

Are you using the native C++ API and Xcode or compiling an Xcode project from Unity?

There's some 64-bit compiling tips in this FAQ:

https://developer.vuforia.com/forum/ios/ios-8-xcode-6-and-vuforia-30-compatibility

 

Topic locked