Unable to link Phidget21 Library in XCode 4.4.1

Supporting 10.7 and up
Bvis222
Fresh meat
Posts: 4
Joined: Sun Feb 17, 2013 8:45 pm
Contact:

Re: Unable to link Phidget21 Library in XCode 4.4.1

Postby Bvis222 » Mon Feb 18, 2013 10:17 am

The Framework is in a good directory. If I remove it from that directory the precompiled examples don't work.

I have not written a single line of Xcode...this is a project from the examples and should just compile or what use are they?

ebya
Phidgetsian
Posts: 10
Joined: Thu Feb 14, 2013 11:28 pm
Contact:

Re: Unable to link Phidget21 Library in XCode 4.4.1

Postby ebya » Mon Feb 18, 2013 11:06 am

I've no troubles with example files on terminal, only linker error on xcode, and I can run my own code on makefile.

So if you can't run example from terminal you've something wrong with the fw /:

IDE's update can make example code to fail during compilation, it happens, that's all.

Just have to wait an answer to this.

NB : the precompiled example? I just checked the downloaded file there isn't any precompiled example, have you tried to use a terminal or makefile to check if you got everything good with the fw?

Bvis222
Fresh meat
Posts: 4
Joined: Sun Feb 17, 2013 8:45 pm
Contact:

Re: Unable to link Phidget21 Library in XCode 4.4.1

Postby Bvis222 » Mon Feb 18, 2013 1:21 pm

there is a precompiled example for every phidgets board. If you go to http://www.phidgets.com/docs/Language_- ... _Downloads and download the Example Code you will find precompiled examples and corresponding example code for the precompiled examples.

ebya
Phidgetsian
Posts: 10
Joined: Thu Feb 14, 2013 11:28 pm
Contact:

Re: Unable to link Phidget21 Library in XCode 4.4.1

Postby ebya » Mon Feb 18, 2013 10:59 pm

ok I never downloaded this one, only the driver one with sources.
I've you tried to make them run with a terminal? If they don't work just try to delete the fw and redo the instal, and just copy the error send by the terminal (may give me a clue of what is going wrong for you).

Still trying to figure out why I got linker errors.

User avatar
kahht
Phidgetsian
Posts: 5
Joined: Wed Feb 12, 2014 2:20 pm
Location: Calgary, Alberta
Contact:

Re: Unable to link Phidget21 Library in XCode 4.4.1

Postby kahht » Mon Mar 24, 2014 3:50 pm

You can also use this command line to compile:
gcc example.c -o example -I/Library/Frameworks/Phidget21.framework/Headers -F/Library/Frameworks -framework Phidget21

The -F has the path to your frameworks folder where the Phidget21.framework folder is located.

Steven
Fresh meat
Posts: 2
Joined: Tue Apr 04, 2017 11:58 pm
Contact:

Re: Unable to link Phidget21 Library in XCode 4.4.1

Postby Steven » Wed Apr 05, 2017 5:34 am

ebya wrote: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.


I met the same condition with you, Have you solved it? I have no idea why the linker fails
I'll appreciate if you can share your solution with me :)


Return to “macOS”

Who is online

Users browsing this forum: No registered users and 1 guest