Log in or register to post comments

ld: library not found for -lQCAR

April 9, 2014 - 11:49am #1

ld: library not found for -lQCAR

clang: error: linker command failed with exit code 1 (use -v to see invocation)

(null): Library not found for -lQCAR

 

 
==
How can I fix that

ld: library not found for -lQCAR

August 1, 2014 - 9:51am #9

It also happened to me when upgrading my project to Vuforia SDK v3.0. In case anyone hasn't read the v3.0 Release Notes, the Vuforia library is now called libVuforia.a instead of libQCAR.a

Below are what I did and it works:

1. Remove the 'libQCAR.a' from 'Link Binary With Libraries' in the project's Targets ' 'Build Phases' and delete the same 'libQCAR.a' under the Frameworks folder in Project Navigator.

2. In the project Targets' 'Build Phases' > 'Link Binary With Libraries', click 'Add Other...' button to add 'libVuforia.a' library . 'libVuforia.a' library is in the 'build/lib/arm/' folder of the Vuforia SDK v3.0.

3. Tidy up the 'Library Search Paths' value in 'Build Settings'  if necessary.

 

Hope it helps.

ld: library not found for -lQCAR

May 3, 2014 - 8:37pm #8

Well, this is embarrasing and weird....it worked now.

What I did:

 

Perform a Clean on the Project

Removed the libQCAR from the "Link Binary with Libraries" phase.

Added again the library as a Framework to the above phase.

Compiled, and running in the iphone as a charm....

 

ld: library not found for -lQCAR

May 3, 2014 - 8:12pm #7

Same error here....tried all the above tips, search paths, etc.... Library is included a a Framework to the project....etc.....

 

 

Ld /Users/fabiangoncalves/Library/Developer/Xcode/DerivedData/VuforiaSamples-fnextfpzahnziphbytbwxlrjxmgs/Build/Products/Debug-iphoneos/Vuforia.app/Vuforia normal armv7s
    cd "/Users/fabiangoncalves/Documents/Carrera Ingenieria en Informatica - UNIACC/2014/Modulo 15/Proyecto de Titulo/Codigo/vuforia-sdk-ios-2-8-7/samples"
    export IPHONEOS_DEPLOYMENT_TARGET=7.1
    export 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 armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -L/Users/fabiangoncalves/Library/Developer/Xcode/DerivedData/VuforiaSamples-fnextfpzahnziphbytbwxlrjxmgs/Build/Products/Debug-iphoneos -Lbuild/lib/arm -F/Users/fabiangoncalves/Library/Developer/Xcode/DerivedData/VuforiaSamples-fnextfpzahnziphbytbwxlrjxmgs/Build/Products/Debug-iphoneos -filelist /Users/fabiangoncalves/Library/Developer/Xcode/DerivedData/VuforiaSamples-fnextfpzahnziphbytbwxlrjxmgs/Build/Intermediates/VuforiaSamples.build/Debug-iphoneos/VuforiaSamples.build/Objects-normal/armv7s/Vuforia.LinkFileList -dead_strip -fobjc-link-runtime -miphoneos-version-min=7.1 -framework CoreVideo -framework CoreMedia -framework AVFoundation -framework SystemConfiguration -framework OpenGLES -framework CoreMotion -framework Security -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -lQCAR -Xlinker -dependency_info -Xlinker /Users/fabiangoncalves/Library/Developer/Xcode/DerivedData/VuforiaSamples-fnextfpzahnziphbytbwxlrjxmgs/Build/Intermediates/VuforiaSamples.build/Debug-iphoneos/VuforiaSamples.build/Objects-normal/armv7s/Vuforia_dependency_info.dat -o /Users/fabiangoncalves/Library/Developer/Xcode/DerivedData/VuforiaSamples-fnextfpzahnziphbytbwxlrjxmgs/Build/Products/Debug-iphoneos/Vuforia.app/Vuforia

ld: library not found for -lQCAR
clang: error: linker command failed with exit code 1 (use -v to see invocation)

ld: library not found for -lQCAR

May 2, 2014 - 5:30am #6

I don't know if it's only the Vuforia/QCAR that has this problem, but I have found that when I add this library it adds TWO entries in the linker commands. You can't see this anywhere in the UI.

Do a Show Package Contents on your xcodeproj and then open the project.pbxproj inside that with a text editor. Look for "QCAR"  and "vuforia" and see if you see anything weird. In my case it was added twice in one long line, and another lirbary already in the list was added again after it.

ld: library not found for -lQCAR

April 28, 2014 - 9:25pm #5

open xcode project -> build settings -> library search paths -> library path (looks like $root or somethin)g double click that set non recursive to recursive. helped to me

ld: library not found for -lQCAR

April 28, 2014 - 4:24pm #4

Same problem here - after adding the Admob plugin, I get this linker error!

 

Were you able to solve this?

ld: library not found for -lQCAR

April 23, 2014 - 5:45am #3

today tried to add admob ios part of plugin from here https://github.com/googleads/googleads-mobile-plugins/tree/master/unity iafter that xcode project cant build with same library linker error without admob plugin no error and project succesfully builds. maybe its somehow related, cheers.

 

also try library search paths in build settings set to recursive

ld: library not found for -lQCAR

April 10, 2014 - 3:00am #2

Library not found for -lQCAR

Make sure that XCode can find the library by ensuring the library path can pick it up.

 

N

Log in or register to post comments