iOS SDK 5.1 linker error for non_lazy_ptr in Xcode 4.4.1

macOS specific usage questions
LeafsFan47
New Cone
New Cone
Posts: 2
Joined: 14 Aug 2012 19:29

iOS SDK 5.1 linker error for non_lazy_ptr in Xcode 4.4.1

Postby LeafsFan47 » 14 Aug 2012 19:36

I am trying to build the MobileVLC project for iOS. I have gone through the command line process to build the project, and after a couple of tweaks as described in viewtopic.php?f=12&t=103331 and viewtopic.php?f=12&t=103271, the build script runs almost to completion. It errors out when it tries to get Xcode to build the final project. So I load it into Xcode and try to build, and I can see the error, here is what I get when I use the -v linker flag:

Code: Select all

Ld /Users/bp/Library/Developer/Xcode/DerivedData/MobileVLC-ctcjnpeqzuhulxcmjlhrjnyzpzil/Build/Products/Debug-iphoneos/VLC.app/VLC normal armv7 cd /Users/bp/Desktop/vlc/MobileVLC setenv IPHONEOS_DEPLOYMENT_TARGET 5.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -L/Users/bp/Library/Developer/Xcode/DerivedData/MobileVLC-ctcjnpeqzuhulxcmjlhrjnyzpzil/Build/Products/Debug-iphoneos -L/Users/bp/Desktop/vlc/MobileVLC/External/MobileVLCKit -L/Users/bp/Desktop/vlc/MobileVLC/External/MediaLibraryKit -F/Users/bp/Library/Developer/Xcode/DerivedData/MobileVLC-ctcjnpeqzuhulxcmjlhrjnyzpzil/Build/Products/Debug-iphoneos -filelist /Users/bp/Library/Developer/Xcode/DerivedData/MobileVLC-ctcjnpeqzuhulxcmjlhrjnyzpzil/Build/Intermediates/MobileVLC.build/Debug-iphoneos/MobileVLC.build/Objects-normal/armv7/VLC.LinkFileList -dead_strip -Wl,-no_pie,-v -fobjc-link-runtime -miphoneos-version-min=5.1 -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -framework AudioToolbox -framework QuartzCore -liconv -lz /Users/bp/Library/Developer/Xcode/DerivedData/MobileVLC-ctcjnpeqzuhulxcmjlhrjnyzpzil/Build/Products/Debug-iphoneos/libMobileMediaLibraryKit.a -lsqlite3 -lstdc++.6 -lbz2 -lxml2 -framework CoreData -framework CoreText -framework MediaPlayer /Users/bp/Library/Developer/Xcode/DerivedData/MobileVLC-ctcjnpeqzuhulxcmjlhrjnyzpzil/Build/Products/Debug-iphoneos/libMobileVLCKit.a -o /Users/bp/Library/Developer/Xcode/DerivedData/MobileVLC-ctcjnpeqzuhulxcmjlhrjnyzpzil/Build/Products/Debug-iphoneos/VLC.app/VLC @(#)PROGRAM:ld PROJECT:ld64-133.3 configured to support archs: armv6 armv7 i386 x86_64 Library search paths: /Users/bp/Library/Developer/Xcode/DerivedData/MobileVLC-ctcjnpeqzuhulxcmjlhrjnyzpzil/Build/Products/Debug-iphoneos /Users/bp/Desktop/vlc/MobileVLC/External/MobileVLCKit /Users/bp/Desktop/vlc/MobileVLC/External/MediaLibraryKit /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/lib Framework search paths: /Users/bp/Library/Developer/Xcode/DerivedData/MobileVLC-ctcjnpeqzuhulxcmjlhrjnyzpzil/Build/Products/Debug-iphoneos /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/ LLVM version 3.1svn, from Apple Clang 4.0 (build 421.0.60) ld: 'non_lazy_ptr' in /Users/bp/Library/Developer/Xcode/DerivedData/MobileVLC-ctcjnpeqzuhulxcmjlhrjnyzpzil/Build/Products/Debug-iphoneos/libMobileVLCKit.a(libdeinterlace_plugin_la-deinterlace.o) contains undefined reference for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
As far as I can tell, the libMobileVLCKit.a file is linked into the MobileVLC project, so I am unsure what to look for next, as I cannot find any references to non_lazy_ptr anywhere in any code. Thanks.

devia
New Cone
New Cone
Posts: 1
Joined: 06 Jan 2012 04:23

Re: iOS SDK 5.1 linker error for non_lazy_ptr in Xcode 4.4.1

Postby devia » 27 Aug 2012 06:36

I meet this same problem
who can help? Many thanks@

kc.chen
Blank Cone
Blank Cone
Posts: 25
Joined: 30 Jul 2012 10:23

Re: iOS SDK 5.1 linker error for non_lazy_ptr in Xcode 4.4.1

Postby kc.chen » 27 Aug 2012 09:16

I also meet the same problem but still no help comes!! : (

LeafsFan47
New Cone
New Cone
Posts: 2
Joined: 14 Aug 2012 19:29

Re: iOS SDK 5.1 linker error for non_lazy_ptr in Xcode 4.4.1

Postby LeafsFan47 » 27 Aug 2012 15:18

The Stack Overflow community so far is no help on this issue either. If anything comes of this issue on Stack Overflow, I will post here as well...

http://stackoverflow.com/questions/1201 ... code-4-4-1

Great sadness... :cry:

dongyafeiying
Blank Cone
Blank Cone
Posts: 22
Joined: 17 Aug 2012 03:36

Re: iOS SDK 5.1 linker error for non_lazy_ptr in Xcode 4.4.1

Postby dongyafeiying » 28 Aug 2012 10:16

I also meet the same problem,who can help?

dongyafeiying
Blank Cone
Blank Cone
Posts: 22
Joined: 17 Aug 2012 03:36

Re: iOS SDK 5.1 linker error for non_lazy_ptr in Xcode 4.4.1

Postby dongyafeiying » 30 Aug 2012 07:47

I got another problem:


[info] Building MobileVLC (MobileVLC)
Build settings from command line:
SDKROOT = iphoneos5.0

=== BUILD NATIVE TARGET MobileVLC OF PROJECT MobileVLC WITH CONFIGURATION Release ===
Check dependencies

Ld build/Release-iphoneos/VLC.app/VLC normal armv7
cd /Users/**/MobileVLC
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/Users/**/Documents/android-sdk-macosx/tools"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -L/Users/**/MobileVLC/build/Release-iphoneos -L/Users/**/MobileVLC/External/MobileVLCKit -L/Users/**/MobileVLC/External/MediaLibraryKit -F/Users/**/MobileVLC/build/Release-iphoneos -filelist /Users/**/MobileVLC/build/MobileVLC.build/Release-iphoneos/MobileVLC.build/Objects-normal/armv7/VLC.LinkFileList -dead_strip -Wl,-no_pie -miphoneos-version-min=5.0 -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -framework AudioToolbox -framework QuartzCore -liconv -lz /Users/**/MobileVLC/ImportedSources/VLCKit/build/Release-iphoneos/libMobileVLCKit.a /Users/**/MobileVLC/ImportedSources/MediaLibraryKit/build/Release-iphoneos/libMobileMediaLibraryKit.a -lsqlite3 -lstdc++.6 -lbz2 -lxml2 -framework CoreData -framework CoreText -framework MediaPlayer -o /Users/**/MobileVLC/build/Release-iphoneos/VLC.app/VLC
ld: '_AmplifyFloat' in /Users/**/MobileVLC/ImportedSources/VLCKit/build/Release-iphoneos/libMobileVLCKit.a(libvolume_neon_plugin_la-volume.o) contains undefined reference for architecture armv7

pengjaycn
New Cone
New Cone
Posts: 2
Joined: 24 Jul 2012 14:24

Re: iOS SDK 5.1 linker error for non_lazy_ptr in Xcode 4.4.1

Postby pengjaycn » 30 Aug 2012 17:24

I got another problem:


[info] Building MobileVLC (MobileVLC)
Build settings from command line:
SDKROOT = iphoneos5.0

=== BUILD NATIVE TARGET MobileVLC OF PROJECT MobileVLC WITH CONFIGURATION Release ===
Check dependencies

Ld build/Release-iphoneos/VLC.app/VLC normal armv7
cd /Users/**/MobileVLC
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/Users/**/Documents/android-sdk-macosx/tools"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -L/Users/**/MobileVLC/build/Release-iphoneos -L/Users/**/MobileVLC/External/MobileVLCKit -L/Users/**/MobileVLC/External/MediaLibraryKit -F/Users/**/MobileVLC/build/Release-iphoneos -filelist /Users/**/MobileVLC/build/MobileVLC.build/Release-iphoneos/MobileVLC.build/Objects-normal/armv7/VLC.LinkFileList -dead_strip -Wl,-no_pie -miphoneos-version-min=5.0 -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -framework AudioToolbox -framework QuartzCore -liconv -lz /Users/**/MobileVLC/ImportedSources/VLCKit/build/Release-iphoneos/libMobileVLCKit.a /Users/**/MobileVLC/ImportedSources/MediaLibraryKit/build/Release-iphoneos/libMobileMediaLibraryKit.a -lsqlite3 -lstdc++.6 -lbz2 -lxml2 -framework CoreData -framework CoreText -framework MediaPlayer -o /Users/**/MobileVLC/build/Release-iphoneos/VLC.app/VLC
ld: '_AmplifyFloat' in /Users/**/MobileVLC/ImportedSources/VLCKit/build/Release-iphoneos/libMobileVLCKit.a(libvolume_neon_plugin_la-volume.o) contains undefined reference for architecture armv7

anybody kown why? i got it too..

dongyafeiying
Blank Cone
Blank Cone
Posts: 22
Joined: 17 Aug 2012 03:36

Re: iOS SDK 5.1 linker error for non_lazy_ptr in Xcode 4.4.1

Postby dongyafeiying » 31 Aug 2012 02:27

is it posible the error of global $PATH?

jinlsg
Blank Cone
Blank Cone
Posts: 26
Joined: 11 Aug 2012 11:38

Re: iOS SDK 5.1 linker error for non_lazy_ptr in Xcode 4.4.1

Postby jinlsg » 09 Oct 2012 10:00

some one fix this promble?
i meet the same problem

jinlsg
Blank Cone
Blank Cone
Posts: 26
Joined: 11 Aug 2012 11:38

Re: iOS SDK 5.1 linker error for non_lazy_ptr in Xcode 4.4.1

Postby jinlsg » 10 Oct 2012 04:21

i fix the problem
ld: 'non_lazy_ptr' in /Users/bp/Library/Developer/Xcode/DerivedData/MobileVLC-ctcjnpeqzuhulxcmjlhrjnyzpzil/Build/Products/Debug-iphoneos/libMobileVLCKit.a(libdeinterlace_plugin_la-deinterlace.o) contains undefined reference for architecture armv7
by
http://stackoverflow.com/questions/1201 ... ve#tab-top
Hurdle 4
but
i got other problem
(null): Internal error: atom not found in symbolIndex(__ZTIi) for architecture armv7

jinlsg
Blank Cone
Blank Cone
Posts: 26
Joined: 11 Aug 2012 11:38

Re: iOS SDK 5.1 linker error for non_lazy_ptr in Xcode 4.4.1

Postby jinlsg » 11 Oct 2012 18:44

i start over build vlc on iOS
got the problem
ld: '_CloseDecoder' in /Users/lsg/Library/Developer/Xcode/DerivedData/MobileVLC-hcuziamfsoqasuhlhgnfkcwwcuhw/Build/Products/Debug-iphoneos/libMobileVLCKit.a(libopus_plugin_la-opus.o) contains undefined reference for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

jinlsg
Blank Cone
Blank Cone
Posts: 26
Joined: 11 Aug 2012 11:38

Re: iOS SDK 5.1 linker error for non_lazy_ptr in Xcode 4.4.1

Postby jinlsg » 16 Oct 2012 05:37

i fix the problem
ld: 'non_lazy_ptr' in /Users/bp/Library/Developer/Xcode/DerivedData/MobileVLC-ctcjnpeqzuhulxcmjlhrjnyzpzil/Build/Products/Debug-iphoneos/libMobileVLCKit.a(libdeinterlace_plugin_la-deinterlace.o) contains undefined reference for architecture armv7
by
http://stackoverflow.com/questions/1201 ... ve#tab-top
Hurdle 4
but
i got other problem
(null): Internal error: atom not found in symbolIndex(__ZTIi) for architecture armv7
the problem plugins is demux。


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 8 guests