-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Having difficulty linking, getting $non_lazy_ptr #2
Comments
Hi timwnitram, Are you building the application for the simulator or the device? What version of the iPhone SDK are you using? Are you include the AVFoundation.framework in your project? Sorry I responded to your question with more questions. I'm just trying to get a better sense of your build environment so I can try to reproduce your issue. Derek |
Totally fine, my fault for not being more specific. Alrighty answers to the questions: versions: notes: I went ahead and grabbed the 3.5 version of SGAREnv and modified it to build with 4.1 and that is working perfectly for me, but it would be super to get the latest version working. |
Thanks for the info. I'm looking into the issue right now. Hopefully I'll have a commit for you soon. |
It looked like there was a patch that went out after 0.3.7 that wasn't tagged. I tagged the new version as 0.3.8. The new version should address the problem you were having. Derek |
Bad news, even with the latest 3.8 build I'm getting the same build error. I'm running the build_dist script and it's not populating the iphoneos and iphonesimulator directories with the libraries consistently. When I try to link against the resulting libraries I still get the lazy_ptr issue. here's the output of the build script if that helps: Last login: Thu Oct 14 19:38:17 on ttys002 2010-10-14 19:57:24.592 xcodebuild[32535:60f] warning: compiler 'com.apple.compilers.gcc.4_0' is based on missing compiler 'com.apple.compilers.gcc.4_0' Clean.Remove clean build/libSGAREnvironment.a Clean.Remove clean /var/folders/3N/3NxvN0F0EvCCB9h5vcjWiE+++TQ/-Caches-/com.apple.Xcode.503/SharedPrecompiledHeaders/SGAREnvironment_Prefix-hkdmmiyhhrnnmofnlicwkteqyuhi/SGAREnvironment_Prefix.pch.gch Clean.Remove clean /var/folders/3N/3NxvN0F0EvCCB9h5vcjWiE+++TQ/-Caches-/com.apple.Xcode.503/SharedPrecompiledHeaders/SGAREnvironment_Prefix-frwijkfgktmdemajvqzboxpqddxk_ast/SGAREnvironment_Prefix.pch.pth Clean.Remove clean /var/folders/3N/3NxvN0F0EvCCB9h5vcjWiE+++TQ/-Caches-/com.apple.Xcode.503/SharedPrecompiledHeaders/SGAREnvironment_Prefix-grhruzkfnwlibngapyjampfmdeyh/SGAREnvironment_Prefix.pch.gch Clean.Remove clean /var/folders/3N/3NxvN0F0EvCCB9h5vcjWiE+++TQ/-Caches-/com.apple.Xcode.503/SharedPrecompiledHeaders/SGAREnvironment_Prefix-ajwzmuatocooiecyafuxfcuhjovw_ast/SGAREnvironment_Prefix.pch.pth Clean.Remove clean /var/folders/3N/3NxvN0F0EvCCB9h5vcjWiE+++TQ/-Caches-/com.apple.Xcode.503/SharedPrecompiledHeaders/SGAREnvironment_Prefix-fvxjvwzkbqxdfdbgkhxoyeyntogn/SGAREnvironment_Prefix.pch.gch Clean.Remove clean /var/folders/3N/3NxvN0F0EvCCB9h5vcjWiE+++TQ/-Caches-/com.apple.Xcode.503/SharedPrecompiledHeaders/SGAREnvironment_Prefix-gwhenfisfivmtoagspgfbaxmnffa_ast/SGAREnvironment_Prefix.pch.pth Clean.Remove clean /var/folders/3N/3NxvN0F0EvCCB9h5vcjWiE+++TQ/-Caches-/com.apple.Xcode.503/SharedPrecompiledHeaders/SGAREnvironment_Prefix-culewtiukkmtcndedyemxllgvujy/SGAREnvironment_Prefix.pch.gch Clean.Remove clean /var/folders/3N/3NxvN0F0EvCCB9h5vcjWiE+++TQ/-Caches-/com.apple.Xcode.503/SharedPrecompiledHeaders/SGAREnvironment_Prefix-aejmdnaokodyjybheajwbqnjipil_ast/SGAREnvironment_Prefix.pch.pth Clean.Remove clean build/SGAREnvironment.build/SGAREnvironment.build ** CLEAN SUCCEEDED ** === BUILD NATIVE TARGET SGAREnvironment OF PROJECT SGAREnvironment WITH THE DEFAULT CONFIGURATION (Release) === ProcessPCH /var/folders/3N/3NxvN0F0EvCCB9h5vcjWiE+++TQ/-Caches-/com.apple.Xcode.503/SharedPrecompiledHeaders/SGAREnvironment_Prefix-hkdmmiyhhrnnmofnlicwkteqyuhi/SGAREnvironment_Prefix.pch.gch Resources/SGAREnvironment_Prefix.pch normal armv6 objective-c com.apple.compilers.gcc.4_2 ProcessPCH /var/folders/3N/3NxvN0F0EvCCB9h5vcjWiE+++TQ/-Caches-/com.apple.Xcode.503/SharedPrecompiledHeaders/SGAREnvironment_Prefix-grhruzkfnwlibngapyjampfmdeyh/SGAREnvironment_Prefix.pch.gch Resources/SGAREnvironment_Prefix.pch normal armv6 c com.apple.compilers.gcc.4_2 ProcessPCH /var/folders/3N/3NxvN0F0EvCCB9h5vcjWiE+++TQ/-Caches-/com.apple.Xcode.503/SharedPrecompiledHeaders/SGAREnvironment_Prefix-culewtiukkmtcndedyemxllgvujy/SGAREnvironment_Prefix.pch.gch Resources/SGAREnvironment_Prefix.pch normal armv7 c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/SGMath.o Classes/Utilities/SGMath.c normal armv6 c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv7/SGMath.o Classes/Utilities/SGMath.c normal armv7 c com.apple.compilers.gcc.4_2 ProcessPCH /var/folders/3N/3NxvN0F0EvCCB9h5vcjWiE+++TQ/-Caches-/com.apple.Xcode.503/SharedPrecompiledHeaders/SGAREnvironment_Prefix-fvxjvwzkbqxdfdbgkhxoyeyntogn/SGAREnvironment_Prefix.pch.gch Resources/SGAREnvironment_Prefix.pch normal armv7 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/SGARViewController.o Classes/Controllers/SGARViewController.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/SGEnvironmentConstants.o Classes/Environment/SGEnvironmentConstants.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/SG3DOverlayEnvironment.o Classes/Environment/SG3DOverlayEnvironment.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/SGTexture.o Classes/Utilities/SGTexture.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/SG3DOverlayView.o Classes/Views/SG3DOverlayView.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/SGAnnotationView.o Classes/Views/SGAnnotationView.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/SGAnnotationViewContainer.o Classes/Views/SGAnnotationViewContainer.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/SGHeadingView.o Classes/Views/SGHeadingView.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/SGARView.o Classes/Views/SGARView.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/SGMovableStack.o Classes/Views/SGMovableStack.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/CLLocationAdditions.o Classes/Additions/CLLocationAdditions.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/AccelerometerFilter.o Resources/3rd-Party/AccelerometerFilter.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/SGRadar.o Classes/Views/SGRadar.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/GLU+iPhone.o Resources/3rd-Party/GLU+iPhone.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/SGPinAnnotationView.o Classes/Views/SGPinAnnotationView.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv6/SGGlassAnnotationView.o Classes/Views/SGGlassAnnotationView.m normal armv6 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv7/SGARViewController.o Classes/Controllers/SGARViewController.m normal armv7 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv7/SGEnvironmentConstants.o Classes/Environment/SGEnvironmentConstants.m normal armv7 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv7/SGTexture.o Classes/Utilities/SGTexture.m normal armv7 objective-c com.apple.compilers.gcc.4_2 CompileC build/SGAREnvironment.build/Release-iphoneos/SGAREnvironment.build/Objects-normal/armv7/SG3DOverlayEnvironment.o Classes/Environment/SG3DOverlayEnvironment.m normal armv7 objective-c com.apple.compilers.gcc.4_2 |
Hrm, I'm a little puzzled. The build script isn't even getting to the libtool portion of the command and I don't see any indication that there is an error in the output you've provided. Is this the complete output? By the way, thanks for providing all of this information. |
I realize this is an archaic thread, but does anyone know why these |
Looks like there something the compiler and linker isn't liking with the latest release. When I try to include the library and build against the device, I get a number of linker errors. I tried running ranlib -c against the compiled library and re-compiling but I'm getting the same error. Any help would be super.
Undefined symbols:
"_AVLayerVideoGravityResizeAspectFill", referenced from:
_AVLayerVideoGravityResizeAspectFill$non_lazy_ptr in libSGAREnvironment.a(SGARView.o)
(maybe you meant: _AVLayerVideoGravityResizeAspectFill$non_lazy_ptr)
"OBJC_CLASS$_AVCaptureVideoPreviewLayer", referenced from:
objc-class-ref-to-AVCaptureVideoPreviewLayer in libSGAREnvironment.a(SGARView.o)
"OBJC_CLASS$_AVCaptureDevice", referenced from:
objc-class-ref-to-AVCaptureDevice in libSGAREnvironment.a(SGARView.o)
"OBJC_CLASS$_AVCaptureSession", referenced from:
objc-class-ref-to-AVCaptureSession in libSGAREnvironment.a(SGARView.o)
"OBJC_CLASS$_AVCaptureDeviceInput", referenced from:
objc-class-ref-to-AVCaptureDeviceInput in libSGAREnvironment.a(SGARView.o)
"_AVMediaTypeVideo", referenced from:
_AVMediaTypeVideo$non_lazy_ptr in libSGAREnvironment.a(SGARView.o)
(maybe you meant: _AVMediaTypeVideo$non_lazy_ptr)
The text was updated successfully, but these errors were encountered: