By lexvandersluijs
on Wed, 06/20/2012 - 17:05
Hi,
while the native samples are compiling and running perfectly on both our iPad 2 and iPhone 4, I'm having some trouble getting things to work from Unity.
For example, when I load the ImageTargets sample, open the build settings, set up the bundle identifier, Unity does its thing and launches Xcode. So far so good. But after compiling I get 24 Linker errors, a couple of which are here:
[CODE] "_OBJC_CLASS_$_AVCaptureDevice", referenced from:
objc-class-ref in libQCAR.a(libQCAR.a-armv6-master.o)
"_kCVPixelBufferPixelFormatTypeKey", referenced from:
l2777 in libQCAR.a(libQCAR.a-armv6-master.o)
"_CMSampleBufferGetImageBuffer", referenced from:
l2795 in libQCAR.a(libQCAR.a-armv6-master.o)
"_OBJC_CLASS_$_AVCaptureDeviceInput", referenced from:
objc-class-ref in libQCAR.a(libQCAR.a-armv6-master.o)
"_OBJC_CLASS_$_AVCaptureVideoDataOutput", referenced from:[/CODE]
I Googled a bit, and found that when I manually add these frameworks to the project, the linker errors go away:
- AVFoundation.framework
- CoreMedia.framework
- CoreVideo.framework
But then, after installing and running, this message appears in the status bar: GDB: Program received signal: "EXC_BAD_ACCESS"
The console log shows this:
[CODE]Running…
[Switching to thread 11779]
[Switching to thread 11779]
sharedlibrary apply-load-rules all
continue
2011-08-11 15:00:00.690 QCARTestProject[3226:707] -> registered mono modules 0xe76744
-> applicationDidFinishLaunching()
Renderer: PowerVR SGX 535
Vendor: Imagination Technologies
Version: OpenGL ES 2.0 IMGSGX535-58.6
GL_OES_depth_texture GL_OES_depth24 GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_shader_texture_lod GL_EXT_texture_filter_anisotropic GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_IMG_read_format GL_IMG_texture_compression_pvrtc
Creating OpenGLES2.0 graphics device
Non platform assembly: data-0x5f67000 (this message is harmless)
Non platform assembly: data-0x5f09000 (this message is harmless)
Non platform assembly: /private/var/mobile/Applications/11235A88-ED49-4E9E-BB27-FC51C79BFCC1/QCARTestProject.app/Data/Managed/System.dll (this message is harmless)
Non platform assembly: /private/var/mobile/Applications/11235A88-ED49-4E9E-BB27-FC51C79BFCC1/QCARTestProject.app/Data/Managed/Mono.Security.dll (this message is harmless)
StartQCAR
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)
2011-08-11 15:00:03.165 QCARTestProject[3226:707] 2011-08-11 15:00:03: ERROR: Camera can't initialize while QCAR is not operational
viewport:
(left:320.00, top:0.00, width:0.00, height:960.00)
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)
2011-08-11 15:00:03.239 QCARTestProject[3226:707] 2011-08-11 15:00:03: WARNING: Changing video mode while the camera is running
2011-08-11 15:00:03.244 QCARTestProject[3226:707] CameraImpl: stopCapturing already called, capture session already stopped?
2011-08-11 15:00:03.248 QCARTestProject[3226:707] 2011-08-11 15:00:03: ERROR: Camera can't select video mode while QCAR is not operational
2011-08-11 15:00:03.252 QCARTestProject[3226:707] 2011-08-11 15:00:03: ERROR: Camera can't start while QCAR is not operational
2011-08-11 15:00:03.256 QCARTestProject[3226:707] 2011-08-11 15:00:03: ERROR: Camera can't start while QCAR is not operational
projection:
NaN NaN NaN NaN
NaN NaN NaN NaN
0.00000 0.00000 -1.00080 -4.00160
0.00000 0.00000 -1.00000 0.00000
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)
Error: Trackable named stones does not exist.
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)
Error: Trackable named chips does not exist.
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)
Absolute number of trackables: 0
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)
Trackable stones lost
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)
Trackable chips lost
(Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)
Program received signal: “EXC_BAD_ACCESS”.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found).[/CODE]
Unity version: 3.4.0f5
QCAR iOS version 1.0.0beta1
Mac version: OS X 10.6.8
XCode version: 3.2.6
Device model: final error happens on both iPhone 4 and iPod 2 (but is likely the result of earlier problem)
iOS version of iPhone: 4.3.3 (8J2)
Any idea what could be the problem?
Lex
Re: Linker errors
Re: Linker errors
Re: Linker errors
Re: Linker errors
Linker errors
Hi,