echoprint-codegen-ios failed for arm6

226 views
Skip to first unread message

teguh

unread,
Jun 23, 2011, 11:49:07 PM6/23/11
to echoprint
Hello,

When trying to build ios example got this error :

Undefined symbols for architecture armv6:
"Whitening::Compute()", referenced from:
Codegen::Codegen(float const*, unsigned int, int)in libechoprint-
codegen-ios.a(Codegen.o)
"Whitening::Whitening(float const*, unsigned int)", referenced from:
Codegen::Codegen(float const*, unsigned int, int)in libechoprint-
codegen-ios.a(Codegen.o)
ld: symbol(s) not found for architecture armv6
collect2: ld returned 1 exit status

event already successfully build the echoprint-codegen-ios.a :

Libtool /Users/teguh/Library/Developer/Xcode/DerivedData/echoprint-
codegen-ios-fttqkxafcagvsvgkgylqfglbaxhs/Build/Products/Debug-iphoneos/
libechoprint-codegen-ios.a normal armv6
cd /Users/teguh/lib/echonest-echoprint-codegen-8ad93d4/src/
echoprint-codegen-ios
setenv IPHONEOS_DEPLOYMENT_TARGET 3.0
setenv PATH "/Developer/SDK_4/Platforms/iPhoneOS.platform/
Developer/usr/bin:/Developer/SDK_4/usr/bin:/usr/bin:/bin:/usr/sbin:/
sbin"
/Developer/SDK_4/Platforms/iPhoneOS.platform/Developer/usr/bin/
libtool -static -arch_only armv6 -syslibroot /Developer/SDK_4/
Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -L/Users/
teguh/Library/Developer/Xcode/DerivedData/echoprint-codegen-ios-
fttqkxafcagvsvgkgylqfglbaxhs/Build/Products/Debug-iphoneos -filelist /
Users/teguh/Library/Developer/Xcode/DerivedData/echoprint-codegen-ios-
fttqkxafcagvsvgkgylqfglbaxhs/Build/Intermediates/echoprint-codegen-
ios.build/Debug-iphoneos/echoprint-codegen-ios.build/Objects-normal/
armv6/echoprint-codegen-ios.LinkFileList -ObjC -framework Foundation -
o /Users/teguh/Library/Developer/Xcode/DerivedData/echoprint-codegen-
ios-fttqkxafcagvsvgkgylqfglbaxhs/Build/Products/Debug-iphoneos/
libechoprint-codegen-ios.a


please advice.

Best Regards
Teguh hardiansah


PS Neville

unread,
Jun 24, 2011, 9:14:39 AM6/24/11
to echo...@googlegroups.com
Hi,

Three things which may help:

(1) In the XCode project used to build the codegen lib, Whitening is not included. You need to 'Add Existing Files' to the project to add the header and implementation files and then rebuild. That's the source for your Whitening ref errors in the ios sample.

(2) When you build the codegen lib for the iPhone simulator, you must reference it in the iOS sample targeted at the simulator. If you're building for the device, make sure you're referencing a version of the lib also built for the device, not the simulator. These will show up as invalid architecture errors in XCode.

(3) I also noticed that the library linkage settings in the sample are wacky, I would just delete all of them and re-add your built version of the lib to the sample project to avoid XCode referencing the wrong one. XCode metadata gets out of wack very easily when XCode projects are shared across computers, I doubt the EN guys are seeing any trouble at all with this since the refs are probably valid for them.

One BIG word of warning...

If you are not profiling songs but rather trying to identify and match songs: the current dataset seems extremely limited for now, so you will probably see a lot of successful fingerprinting resulting in no matches and empty metadata returned. I believe I read there were 150k or songs available, but there's no word on any test data or a small list of what some of those might actually be other than the one code snip which showed Elvis Costello's "Accidents Will Happen," so if you need some test data the best thing might be to ingest your own into a server you set up for now. That or always use that Elvis Costello song in your tests. :)

I don't work for EN, btw -- these are just things I noticed while tinkering for a few minutes last night.

Cheers,
Sean

Brian Whitman

unread,
Jun 24, 2011, 9:16:14 AM6/24/11
to echo...@googlegroups.com
Added whitening to the xcode proj this a.m.  thanks sean

Basavaraj Doddabidari

unread,
May 20, 2013, 11:08:32 PM5/20/13
to echo...@googlegroups.com, ps.ne...@gmail.com
When trying to build echonest example got this error : 
 

Undefined symbols for architecture i386:

  "Codegen::Codegen(float const*, unsigned int)", referenced from:

      codegen_wrapper(float const*, int) in Codegen_wrapper.o

ld: symbol(s) not found for architecture i386

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


Can u explain me to how to trace it 


Reply all
Reply to author
Forward
0 new messages