Page 1 of 1

confirming library extract and configure for raspberry pi

Posted: Tue Feb 14, 2017 8:58 am
by bluwavguy
All,

Its been over 20 years since I was in a unix and c programming environment so I'm not unfamiliar but not at all current...

I've been reading and following the directions and believe the new pi setup is ok, and I can edit and create and run the gcc...with the simple file creation of hello world...but not the phidget HelloWorld as of now..

I've downloaded and extracted the library tar file into a directory under pi/Cprog/Phidget21/libphidget2.1.8.20151217. I can ls and see all of the extracted files.

Following the directions i executed the ./configure command and the output shows all of the checking responses and the last output line is the mssg "configure: error: missing libusb!"

The next step is to run the make command and did so and I get the following:
make: *** No targets specified and no makefile found. Stop.

so either the ./configure did not complete or I've missed something. I do not see the phidget21.h file but do see the phidget21int.h file.

Any help is greatly appreciated and I'm sure I'll have more questions as I move forward.

Thank you,
Brian

Re: confirming library extract and configure for raspberry p

Posted: Tue Feb 14, 2017 9:05 am
by frodegill
bluwavguy wrote:Following the directions i executed the ./configure command and the output shows all of the checking responses and the last output line is the mssg "configure: error: missing libusb!"
sudo apt-get install libusb-1.0-0-dev

( http://www.phidgets.com/docs/OS_-_Linux ... with_Linux )

Re: confirming library extract and configure for raspberry p

Posted: Tue Feb 14, 2017 9:33 am
by bluwavguy
Thank you, what I missed was extracting all files into the same dir...vs distinct folders.
It appears that I'm back on track as I ran the ./configure in the libusb folder....then the make, then the sudo make install....with no errors....
VR, Brian

Re: confirming library extract and configure for raspberry p

Posted: Tue Feb 14, 2017 10:04 am
by bluwavguy
Was able to compile and run the HelloWorld file with no errors...I did not have the 1067 connected but received the mssg...Phidget Simple Playground (plug and unplug devices), press enter to end anytime...thank you again. Brian