oksunp / vvopensource

Automatically exported from code.google.com/p/vvopensource
0 stars 0 forks source link

Xcode 4 "ld: library not found for -lVVOSC" #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. replaced all instances of "build/" with "${SYMROOT}/" in OpenSource project
2. changed all targets base SDK's to latest (latest iOS or latest Mac)
3. Changed all iPhone target devices to iPhone/iPad
4. Changed scheme for run to release build
5. set target to Build for iOS Dev (with my iPad device selected as target)
6. Ran (a few errors but build successful)
7. Followed these steps:

"Find the "Additional SDKs" option, and add 
"$HOME/Library/SDKs/VVOSC/$(PLATFORM_NAME).sdk"
Still in the "Additional SDKs" option, add 
"$HOME/Library/SDKs/VVBasics/$(PLATFORM_NAME).sdk"
Find the "Other Linker Flags" option, and add "-ObjC -lVVOSC -lVVBasics""

8. Imported frameworks and created copy phase according to instructions on main 
page of site
9. added headers and setup basic implementation
10. attempted to build and get the following error:

"Ld 
"/Users/n8chur/Library/Developer/Xcode/DerivedData/Particle_OSC-ehmcgbbqgcrgprgy
snaelzqeiqjf/Build/Intermediates/Particle OSC.build/Debug-iphoneos/Particle 
OSC.build/Objects-normal/armv6/Particle OSC" normal armv6
    cd "/Users/n8chur/Documents/Xcode Projects/ParticleOSC/ParticleOSC"
    setenv IPHONEOS_DEPLOYMENT_TARGET 4.2
    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 -arch armv6 -isysroot /var/folders/ji/jiJzQxesGk8VgG2CRZx05k+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphoneos-iPhoneOS4.3-eirurhdzcgwiitcfsctsemzqldsl -L/Users/n8chur/Library/Developer/Xcode/DerivedData/Particle_OSC-ehmcgbbqgcrgprgysnaelzqeiqjf/Build/Products/Debug-iphoneos -L/Users/n8chur/Library/Developer/Xcode/DerivedData/VVOpenSource-cyolnwluqxxlhqekkgugudlayill/Build/Products/Release -F/Users/n8chur/Library/Developer/Xcode/DerivedData/Particle_OSC-ehmcgbbqgcrgprgysnaelzqeiqjf/Build/Products/Debug-iphoneos "-F/Users/n8chur/Documents/Xcode Projects/ParticleOSC/ParticleOSC" -filelist "/Users/n8chur/Library/Developer/Xcode/DerivedData/Particle_OSC-ehmcgbbqgcrgprgysnaelzqeiqjf/Build/Intermediates/Particle OSC.build/Debug-iphoneos/Particle OSC.build/Objects-normal/armv6/Particle OSC.LinkFileList" -Xlinker -rpath -Xlinker @loader_path/../Frameworks -Xlinker -rpath -Xlinker @executable_path/../Frameworks -dead_strip -lz -ObjC -lVVOSC -lVVBasics -miphoneos-version-min=4.2 -framework QuartzCore -framework OpenGLES -framework OpenAL -framework AudioToolbox -framework AVFoundation -framework UIKit -framework Foundation -framework CoreGraphics -framework VVBasics -framework VVOSC -o "/Users/n8chur/Library/Developer/Xcode/DerivedData/Particle_OSC-ehmcgbbqgcrgprgysnaelzqeiqjf/Build/Intermediates/Particle OSC.build/Debug-iphoneos/Particle OSC.build/Objects-normal/armv6/Particle OSC"

ld: library not found for -lVVOSC
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 
failed with exit code 1"

I am using Xcode 4.0 Build 4A304a, Mac OSX 10.6.7, and attempting to build for 
a device running iOS 4.3.1

Would love to get this SDK working, or if anyone knows an easier way to get 
basic OSC receiving to iOS devices working, a recommendation would be greatly 
appreciated. I really expected implementation OSC support to be much simpler!

Original issue reported on code.google.com by wnewel...@gmail.com on 10 May 2011 at 2:58

GoogleCodeExporter commented 8 years ago
i don't know if this is still an issue or not with xcode 4 after the last 
update (r.125-ish), but this is an xcode 3 project file.

at some point i had the project converted to xcode 4 and everything was 
compiling and working, but i wound up scrapping x4 (lack of support for IB 
plugins, among other less-critical annoyances) and going back to x3 for my 
production environment, so this project will remain x3-bound for the time being.

that said....yes, it's entirely possible for this to compile and run on Xcode 
4.  if you're still having errors, post the compiler error here again and i'll 
take a look at it.

Original comment by raycut...@gmail.com on 31 Aug 2011 at 4:06