chipKIT® Development Platform

Inspired by Arduino™

trouble with my libraries for basic IO shield

Created Sat, 10 May 2014 10:14:44 +0000 by knuckles


knuckles

Sat, 10 May 2014 10:14:44 +0000

theyre always in the wrong place and dont work . even though they show up in the listings in MPIDE alongside the other examples .i cant compile as h files cant be found etc


majenko

Sat, 10 May 2014 10:16:41 +0000

What do you call the "wrong place"? Where are they, where do you think they should be, and what errors do you get?


knuckles

Sun, 11 May 2014 15:24:40 +0000

i put them in with the libs in the libraries folder where i suspect they should be .but the h files appear to be wrong as progs wont compile as i get a error message saying cant find h file


majenko

Sun, 11 May 2014 16:26:11 +0000

I'm sorry, you're going to have to come up with more detail than that. I know of at least 3 libraries folders, so which one you mean I have no idea.

Please tell us exactly where you put the libraries, and copy-and-paste the errors you get.


knuckles

Sun, 11 May 2014 19:57:25 +0000

thats the problem too many libraries and not knowing which is the right one ,when i unpack them they appear in the lib where the others are in the same formats C and h files but dont work when trying to compile


majenko

Sun, 11 May 2014 20:07:14 +0000

I'm sorry, but you're still not telling us enough information to help us. At the moment you're phoning up the garage and saying "My car won't go. I put some petrol in it but it doesn't like it, there's a light flashing on the dash board." You're not saying what light's flashing, you're not saying where you put the petrol, you're not saying even if it was petrol or diesel, or even kerosene...

Ok, so you downloaded a library.

What library? Where from? Please provide a URL.

Then you did what EXACTLY with that library? Tell us STEP BY STEP the exact operations you did with that library. Not just "I unpacked it" - tell is HOW you unpacked it, WHERE you unpacked it TO, etc.


knuckles

Mon, 12 May 2014 14:19:42 +0000

you could start with a typical file structure where each unwrapped file has to go as i cant be sure where they should be .even though they appear to be similar to the other files in the right place on the IDE file layout

this file was downloaded DSD-0000311 and unwrapped into the MPIDE library


knuckles

Mon, 12 May 2014 15:51:44 +0000

heres the error message

sketch_may12a.cpp:28:26: fatal error: IOShieldOled.h: No such file or directory compilation terminated.


majenko

Mon, 12 May 2014 16:33:33 +0000

this file was downloaded DSD-0000311

From WHERE?!?!

and unwrapped into the MPIDE library

That is a completely meaningless statement. What is the "MPIDE library"? How did you "unwrap" it?


knuckles

Mon, 12 May 2014 20:20:15 +0000

why do i bother you go back to sleep bud , what a cretin . from the chipkit website where else

do you step over the cracks in the pavement in case you fall in

i just need an example of the dir structure thats all ,like pulling teeth

no wonder they never sold if you cant get any backup


Ian_B

Mon, 12 May 2014 21:35:05 +0000

There is one place you should be putting additional libraries you download for MPIDE, and another for the ones included with MPIDE.

For ones you download (like for the Basic IO Shield), you need to extract them in "Documents\mpide\Libraries". So the final path to say, IOShieldOled.h would be "Documents\mpide\Libraries\IOShieldOled\IOShieldOled.h".

There is a more specific walk-through of using third-party libraries with chipKIT boards at chipkit.net: [url]http://chipkit.net/started/learn-basics/party-libraries/[/url]


majenko

Mon, 12 May 2014 22:52:37 +0000

why do i bother you go back to sleep bud , what a cretin . from the chipkit website where else do you step over the cracks in the pavement in case you fall in i just need an example of the dir structure thats all ,like pulling teeth no wonder they never sold if you cant get any backup

I'm sorry you feel that way, I really am.

I don't have an encyclopaedic knowledge of every library ever written and where it is. There are many places I can think of off hand where a library could have been downloaded from - github, chipkit, digilent, to name but three. Without knowing just what it is or where you downloaded it from I am unable to download the same file and check the packaged structure of it to see if it is packaged in an unfriendly way or not.

Also, I know of three locations off hand (mpide-xxx/libraries, mpide-xxx/hardware/pic32/libraries or My Documents/mpide/libraries) that could be covered by "mpide library", only one of which (the latter) is the right location, the other two having specific purposes. Which one you are using is of paramount importance, because it sounds like you may be using the wrong one, but if not, then digging deeper will be required.

Since you seem incredibly reluctant to part with even the simplest information then I am sorry but I am unable to help you any more.

I don't feel that any of my requests have been out of the ordinary, or even slightly taxing, and you would get the exact same response if you were asking similar questions on the Arduino forum.