Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-08-2009, 05:25 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 7
Default Does OS matter when compiling static lib for iPhone?

Hi,

I fairly new on iPhone development and I'm currently trying to add some static libraries to my project but I get the "Symbol(s) not found" error.

I've googled the issue and tried different solutions without any luck. The libraries are compiled on a PC and not on a Mac so my questions are:

Do I need to compile the code on a Mac? What tool(s) do I need to be able to compile them?

I have included the headers to the project. The code I'm trying to link to are written in c and are compiled for ARM GCC 4.2.

I get the following errorcode:

ld warning: in /Users/<>/Playground/Collage/libbaseapi.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/capseng.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/excodecs.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/fmautorama.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/fmclearshot.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/fmexif.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/fmextencoder.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/fmfacewarp.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/fmfxplugin.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/fmimageenhance.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/fmimagefusion.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/fmjpegsqueeze.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/fmjpegtools.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/fmphotoart.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/fmredaway.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/fmsemc.a, file is not of required architecture ld warning: in /Users/<>/Playground/Collage/fmspeedview.a, file is not of required architecture

Undefined symbols: "_caps_destroyBuffer", referenced from: -[CollageMainView drawRect:]
in CollageMainView.o ld:
'symbol(s) not found
collect2: ld returned 1 exit status
"_caps_destroyBuffer", referenced from:
-[CollageMainView drawRect:] in CollageMainView.o ld:
symbol(s) not found
collect2: ld returned 1 exit status Build failed (1 error)

BR, drisse
drisse is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone app, static library

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 236
14 members and 222 guests
ADY, AragornSG, Dani77, Dattee, Duncan C, HDshot, HemiMG, Promo Dispenser, Punkjumper, Rudy, sacha1996, sneaky, spiderguy84, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,231
Posts: 380,768
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:18 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0