Compiling Problem using Example Sketch LSM9DS1_Basic_I2C of the Arduino Sparkfun LSM9DS1_IMU Library

I'm using a Arduino Portenta H7 Lite board and Sparkfun LSM9DS1 accelerometer. I downloaded the library for the accelerometer however when I open the LSM9DS1_Basic_I2C file, and verify the code, I am met with this error:C:\Users\Hunor\OneDrive\Documents\Arduino\libraries\SparkFun_LSM9DS1_IMU\src\SparkFunLSM9DS1.cpp: In member function 'void LSM9DS1::initSPI()':C:\Users\Hunor\OneDrive\Documents\Arduino\libraries\SparkFun_LSM9DS1_IMU\src\SparkFunLSM9DS1.cpp:1141:6: error: 'class arduino::MbedSPI' has no member named 'setClockDivider'SPI.setClockDivider(SPI_CLOCK_DIV2);^~~~~~~~~~~~~~~C:\Users\Hunor\OneDrive\Documents\Arduino\libraries\SparkFun_LSM9DS1_IMU\src\SparkFunLSM9DS1.cpp:1141:22: error: 'SPI_CLOCK_DIV2' was not declared in this scopeSPI.setClockDivider(SPI_CLOCK_DIV2);^~~~~~~~~~~~~~C:\Users\Hunor\OneDrive\Documents\Arduino\libraries\SparkFun_LSM9DS1_IMU\src\SparkFunLSM9DS1.cpp:1141:22: note: suggested alternative: 'FDCAN_CLOCK_DIV2'SPI.setClockDivider(SPI_CLOCK_DIV2);^~~~~~~~~~~~~~FDCAN_CLOCK_DIV2C:\Users\Hunor\OneDrive\Documents\Arduino\libraries\SparkFun_LSM9DS1_IMU\src\SparkFunLSM9DS1.cpp:1143:6: error: 'class arduino::MbedSPI' has no member named 'setBitOrder'SPI.setBitOrder(MSBFIRST);^~~~~~~~~~~C:\Users\Hunor\OneDrive\Documents\Arduino\libraries\SparkFun_LSM9DS1_IMU\src\SparkFunLSM9DS1.cpp:1146:6: error: 'class arduino::MbedSPI' has no member named 'setDataMode'SPI.setDataMode(SPI_MODE0);^~~~~~~~~~~exit status 1Compilation error: exit status 1

Did you install the library after downloading it? Usually a zip file.
IDE -> Sketch -> Include Library -> Add .ZIP Library

Sparkfun (among others) has a library for that IC in the Arduino repository. Maybe you'll have better luck with it.

It worked! Thank you!