chipKIT® Development Platform

Inspired by Arduino™

Cant compile sketches becourse libraries arent found

Created Thu, 01 Dec 2011 10:17:19 +0000 by gharryh


gharryh

Thu, 01 Dec 2011 10:17:19 +0000

As i am new to chipkit imediate i ran into a problem. I bought the I/O shield and would like to test it using the I/O shield sketches.

I followed the instruction by placinf the shields libraries in the chipkit libraries folder.

Then i loaded one of the supplied sketches and tryed to upload them to the board. But i get the error message that the libraries cant be found.

If i start a new sketch and want the libraries to be included using the Sketch-Import Libraries function, the I/O shield libraries dont show up.

I must be doing something wrong but what?


slayer1991

Fri, 02 Dec 2011 00:00:50 +0000

Have you restarted MPIDE after copied the libraries?


KurtE

Fri, 02 Dec 2011 00:51:15 +0000

It may be what I stumbled on at first. That is for example if you install the MPIDE at lets say: C:\mpide-0022-windows

I first tried putting my libraries at: C:\mpide-0022-windows\libraries Which when you comple for something like UNO32 it does not find them. I now put them n the directory at: C:\mpide-0022-windows\hardware\pic32\libraries

And now it is happy.

Hope that helps Kurt


majenko

Sat, 03 Dec 2011 11:53:39 +0000

In the mpide tree there are two libraries folders, each with a different function.

..mpide..\libraries

This is used for ATMEL libraries. Libraries placed in here will work on the ATMEL based Arduinos, like the UNO, MEGA, etc.

..mpide..\hardware\pic32\libraries

This is used for PIC32 based libraries. Libraries you want to use on the chipKITâ„¢ Uno32â„¢ or Mega32â„¢ should be placed in here.

If you want a library to work with both the original ATMEL based Arduinos AND the chipKITâ„¢ boards, you will have to place the library in BOTH locations. Of course, this can only be done with a library which is capable of working with BOTH board types.

This was done to allow the easy separation of libraries for the two disparate architectures.

If you use Linux or a similar UNIX-like operating system you can place the library in one location and create a symbolic link to the other location. It doesn't matter which way round you do it.