Find missing file or library

Hi

I know this sounds silly but I somehow lost track of a library.

I am in the process of copying my projects to a new pc ,on the old pc the sketch compiles and work.

On the new pc I need a LIBRARY or FILE that was added and i cannot remember what file.

I did copy the files added in the library from the old pc to the new pc ,but i still need some file.

The library contains color for TFT like LLBLUE(light light blue) which I spend hours to modify.

My question.

Is there a way to see what files is added for a sketch except the INCLUDE files shown in the sketch itself?

Thanks.

If the "library" was included in your sketch enclosed in quotes e.g. #include "myLib1.h" then you should find it in the same folder as the sketch.
If it was included with angel brackets, e.g. #include <myLib1.h> it should be in the standard library folder. You should be able to find the path by File->preferences in the IDE.

Otherwise do a system wide search for myLib1.h

mikedb:
Is there a way to see what files is added for a sketch except the INCLUDE files shown in the sketch itself?

Do this

  • File > Preferences > Show verbose output during: > compilation (check) > OK
  • Sketch > Verify/Compile
  • After the compilation finishes, examine the contents of the black console window at the bottom of the Arduino IDE window. You will need to scroll up to see it all. You will find the path of the libraries somewhere in that output. You can copy and paste the output to a text editor to do a Find operation on it to make it quicker to find what you're looking for.

On the new pc I need a LIBRARY or FILE that was added and i cannot remember what file.

If you compile the program on the new PC the error message will tell you which file is missing.

Thanks

The problem gets worse!!

By looking at the error window I see the main problem is only the define of the colors that is missing.

When i open the library file in NOTEPAD and open the same file with WINAVR the color definitions is not the same.

I can also see only 1 file in the library but there must be 2 with the same name ,folder options is ''show hidden files''.

Sorry for this post this is more of a PC problem that i created myself.

Who cares about colors :slight_smile: Actually I do, but the only ones that I care about are the ones in the output window when I compile :wink: I never knew that notepad had colours except for black and white (if those are actually colours).

Anyway

The normal locations
Standard Arduino libraries in C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries and C:\Program Files (x86)\Arduino\libraries

3rd party libraries
C:\Users\YourUserName\Documents\Arduino\libraries

Your own libraries
C:\Users\YourUserName\Documents\Arduino\YourSketch and C:\Users\YourUserName\Documents\Arduino\YourSketch\src; you might not have the latter as it needs to be created manually.

PS
No experience with WinAvr (whatever that is).

Hi

I solved the problem ,there was 2 files with the same name in the folder.

When I open the folder there is only 1 file but if I use winavr there is also 1 file but they were different in size.

The winavr one is the one I needed so I opened the file with winavr and saved it as a text document.

This text doc was copyed to the new PC and the sketch compiled.

When I modified the library I did it with winavr and saved it to the arduino library where the file already exsist winavr locked the file

That's why the file was only visible with winavr.