Page 1 of 2

Unable to link Phidget21 Library in XCode 4.4.1

Posted: Sat Aug 25, 2012 2:38 pm
by musanim
After upgrading from XCode 4.3.x to 4.4.1, I'm unable to link my Phidgets-based application. The symptoms are:

1. When I try to add the Phidgets21 library/framework to the project, it doesn't appear in the provided list of frameworks, and has to added manually (from /Library/Frameworks/Phidget21.framework).

2. When I try to build the application (with the framework added manually), the build fails with a link error:

ld: framework not found Phidget21

Does anybody have any experience with this? A fix and/or work-around?

Stephen

Re: Unable to link Phidget21 Library in XCode 4.4.1

Posted: Sun Aug 26, 2012 8:45 pm
by musanim
I solved this problem by copying Phidget21.framework to /Developer/Library/Frameworks and referring to this in XCode.

Re: Unable to link Phidget21 Library in XCode 4.4.1

Posted: Thu Dec 20, 2012 8:45 am
by dejeroen
I have the same issue.
/Developer/Library/Frameworks
isn't a folder on OS X 10.8 so i can't try that. When adding the phidget21.framework to my project (Build Phases -> Link Binary With Libraries) It already gives an error when building the the app. I haven't even included the header file yet...

Have this issue on OS X 10.8.2, Xcode 4.4.1. The example code from cocoa isn't working either.

Re: Unable to link Phidget21 Library in XCode 4.4.1

Posted: Thu Dec 20, 2012 9:50 am
by Patrick
Make sure your SDK is set as the current os, otherwise it won't look in /Library/Frameworks.

-Patrick

Re: Unable to link Phidget21 Library in XCode 4.4.1

Posted: Thu Dec 20, 2012 10:22 am
by dejeroen
Patrick wrote:Make sure your SDK is set as the current os, otherwise it won't look in /Library/Frameworks.

-Patrick
How do I do this? Sorry i'm new with programming on mac

EDIT: I'm using Xcode 4.5.2
EDIT2: Base SDK in my project is set to "Latest OS X (OS X 10.8)"

Re: Unable to link Phidget21 Library in XCode 4.4.1

Posted: Thu Feb 14, 2013 11:36 pm
by ebya
Hi,

Got exactly the same linker problem.

I've double checked the framework location

OS X : 10.7.5
Xcode : 4.4.1

Remembers me some troubles I got time ago with other frameworks... too long ago to still have the answer.

EDIT : I tried to compile by command lines, still perfectly works. But I'd love to to dit in xcode :/
EDIT2 : try to cpy to Dev/Lib/Fram but still go the same errors; update xcode to 4.6 (for cuda issues) still not working.

Re: Unable to link Phidget21 Library in XCode 4.4.1

Posted: Sun Feb 17, 2013 8:50 pm
by Bvis222
I'm getting the same error ('Phidget21/phidget21.h' file not found). I've tried all the suggestions that I could actually do but have had no luck. I'm on OSX 10.8.2 and Xcode 4.6.

I sure would like to get this solved.

Re: Unable to link Phidget21 Library in XCode 4.4.1

Posted: Sun Feb 17, 2013 9:26 pm
by ebya
If the file is not found, it just came from your frameworks search path, in building settings just add /Library/Frameworks ine the search path, the file will be found.


If it's a linker error just wait and hope someone will figure it out.

Re: Unable to link Phidget21 Library in XCode 4.4.1

Posted: Sun Feb 17, 2013 10:28 pm
by Bvis222
tried the search path thing already and that did not work

Re: Unable to link Phidget21 Library in XCode 4.4.1

Posted: Mon Feb 18, 2013 12:10 am
by ebya
Is your include #include <Phidget21/phidget21.h> ?

have you checked that the framework is in the good directory?

Did the example runs on terminal?
(cd to example directory, gcc exmaple_you_want_to_run.c -o name_of_your_choice -framework Phidget21 -I/Library/Frameworks/Phidget21.framework/Headers and then run the .exe generated, if it doesn't works your framework should be in another directory, just move it to the good one, if it works, you may have made a mistake on xcode, fix it, and you will just have linker's error instead... :/)