SimpleFoc minimal project using in a library

Hello,
I try to use the minimal branch.
I want to use for the first the encoder.
I create the src folder inside the Arduino folder and copy necessary folders and files.

If I use the Encoder class in the *.ino file it compile.
If i want to use the Encoder class from a library, the compiler doesn’t find the Encoder class.

Any suggestions ?
best regards