Log in or register to post comments

Upgrade to Vuforia 9.7.4

March 2, 2021 - 3:25am #1

Hello, I have a published ios application that recently stopped working when I started the camera to recognize bookmarks. Its raises a error in the line when the camera is activated.

ios target 11.0

xcode 12.4

Vuforia version : 6.2.6 (libVuforia.a)

Enable Bitcode: NO

Iphone 8 plus with 14.4

Project also have reference to unity project (called from native ui)

Project also have a Pods project with other legacy libraries

        Vuforia::Device& device = Vuforia::Device::getInstance();

        if (!device.setMode(self.deviceMode)) {

            NSLog(@"ERROR: failed to set the device mode");

        };

        device.setViewerActive(self.stereo);

I was unable to workaround this,

Then i have tried to update to last version (9.4), in this version vuforia comes as VUFORIA.Framework. Have changed .cpp extensions to .mm extensions for work in my legacy project. I have compare/sync every property defined in the example project (that works).

With all of this i have an error when builiding in my project that refer to "ld: symbol(s) not found for architecture arm64."

Im stuck on this...

Log bellow (LibroDig is project name)

Undefined symbols for architecture arm64:

  "_loadModel", referenced from:

      LibroDig.MetalRenderer.(loadModels in _0FF930B68BF47C3A5C6A7DC7BBE21BE8)() -> () in MetalRenderer.o

  "_releaseModel", referenced from:

      LibroDig.MetalRenderer.(loadModels in _0FF930B68BF47C3A5C6A7DC7BBE21BE8)() -> () in MetalRenderer.o

  "_Models", referenced from:

      LibroDig.MetalRenderer.init(metalDevice: __C.MTLDevice, layer: __C.CAMetalLayer, library: __C.MTLLibrary?, textureDepth: __C.MTLTexture) -> LibroDig.MetalRenderer in MetalRenderer.o

      LibroDig.MetalRenderer.renderWorldOrigin(encoder: __C.MTLRenderCommandEncoder?, projectionMatrix: __C.simd_float4x4, modelViewMatrix: __C.simd_float4x4) -> () in MetalRenderer.o

      LibroDig.MetalRenderer.renderImageTarget(encoder: __C.MTLRenderCommandEncoder?, projectionMatrix: __C.simd_float4x4, modelViewMatrix: __C.simd_float4x4, scaledModelViewMatrix: __C.simd_float4x4) -> () in MetalRenderer.o

  "_prepareToRender", referenced from:

      LibroDig.VuforiaView.renderFrameVuforiaInternal() -> () in VuforiaView.o

  "_getVideoBackgroundMesh", referenced from:

      LibroDig.VuforiaView.renderFrameVuforiaInternal() -> () in VuforiaView.o

  "_getOrigin", referenced from:

      LibroDig.VuforiaView.renderFrameVuforiaInternal() -> () in VuforiaView.o

  "_getModelTargetGuideView", referenced from:

      LibroDig.VuforiaView.renderFrameVuforiaInternal() -> () in VuforiaView.o

  "_getVideoBackgroundProjection", referenced from:

      LibroDig.VuforiaView.renderFrameVuforiaInternal() -> () in VuforiaView.o

  "_getModelTargetResult", referenced from:

      LibroDig.VuforiaView.renderFrameVuforiaInternal() -> () in VuforiaView.o

  "_finishRender", referenced from:

      LibroDig.VuforiaView.renderFrameVuforiaInternal() -> () in VuforiaView.o

  "_configureRendering", referenced from:

      LibroDig.VuforiaView.configureVuforia() -> () in VuforiaView.o

  "_cameraRestoreAutoFocus", referenced from:

      LibroDig.VuforiaViewController.restoreContinuousAutoFocus() -> () in VuforiaViewController.o

  "_isCameraStarted", referenced from:

      LibroDig.VuforiaView.renderFrameVuforiaInternal() -> () in VuforiaView.o

  "_getModelTargetId", referenced from:

      LibroDig.VuforiaViewController.returnToMenu() -> () in VuforiaViewController.o

  "_cameraPerformAutoFocus", referenced from:

      LibroDig.VuforiaViewController.doFocus() -> () in VuforiaViewController.o

  "_getImagePixels", referenced from:

      LibroDig.MetalRenderer.renderModelTargetGuideView(encoder: __C.MTLRenderCommandEncoder?, modelViewProjectionMatrix: __C.MTLBuffer, guideViewImage: inout __C.VuforiaImage) -> () in MetalRenderer.o

  "_deinitAR", referenced from:

      LibroDig.VuforiaViewController.viewWillDisappear(Swift.Bool) -> () in VuforiaViewController.o

  "_getImageTargetResult", referenced from:

      LibroDig.VuforiaView.renderFrameVuforiaInternal() -> () in VuforiaView.o

  "_getImageTargetId", referenced from:

      LibroDig.VuforiaViewController.returnToMenu() -> () in VuforiaViewController.o

  "_resumeAR", referenced from:

      LibroDig.VuforiaViewController.resume() -> () in VuforiaViewController.o

  "_startAR", referenced from:

      closure #1 () -> () in closure #2 (Swift.UnsafeMutableRawPointer?) -> () in closure #2 () -> () in LibroDig.VuforiaViewController.viewDidAppear(Swift.Bool) -> () in VuforiaViewController.o

  "_pauseAR", referenced from:

      LibroDig.VuforiaViewController.pause() -> () in VuforiaViewController.o

      LibroDig.VuforiaViewController.prepare(for: __C.UIStoryboardSegue, sender: Any?) -> () in VuforiaViewController.o

  "_VUFORIA_INIT_FLAG_METAL", referenced from:

      closure #2 () -> () in LibroDig.VuforiaViewController.viewDidAppear(Swift.Bool) -> () in VuforiaViewController.o

  "_initAR", referenced from:

      closure #2 () -> () in LibroDig.VuforiaViewController.viewDidAppear(Swift.Bool) -> () in VuforiaViewController.o

  "_stopAR", referenced from:

      LibroDig.VuforiaViewController.viewWillDisappear(Swift.Bool) -> () in VuforiaViewController.o

Upgrade to Vuforia 9.7.4

March 2, 2021 - 10:34am #2

Hi again , have resolved this , my mistake. 

In my legacy project i have a bridge.h that have merged with VuforiaWrapper.h , but havent copy VuforiaWrapper.mm to my project. With this file this error goes away.

 

Now , next error show ups is ..

.../Vuforia/Vuforia.framework/Headers/Vuforia.h:22:1: Unknown type name 'namespace'

.../Vuforia/CrossPlatform/AppController.h:14:10: While building module 'Vuforia' imported from .../Vuforia/CrossPlatform/AppController.h:14:

/<module-includes>:1:9: In file included from <module-includes>:1:

 

Log in or register to post comments