It looks like the problem is detected in "inv_mpu.c" which is NOT your sketch. The library is expecting the define to be in effect when inv_mpu.c is compiled. The Arduino IDE doesn't have an easy way for you to insert defines in your build so I think the best way
Have you installed the edtracker core?
NOTE: To make the build process easier, all the libraries and relevant hardware settings are packaged up and available within the separate repo here :
Issue solved.
I had installed the edtracker core but didn't realized that I had to select the EdTracker board inside the Arduino IDE.
After that, it compiled first time.