Sean, it was impossible to compile your fork, lots of errors:
when setting RTIMULibFusionComparison to OFF on CmakeList.txt compiling is OK
Code:
git clone https://github.com/seandepagnier/RTIMULib2.git
cd RTIMULib2/Linux
mkdir build
cd build
cmake ..
Quote:CMake Error at CMakeLists.txt:88 (ADD_SUBDIRECTORY):
add_subdirectory given source "RTIMULibFusionComparison" which is not an
existing directory.
when setting RTIMULibFusionComparison to OFF on CmakeList.txt compiling is OK
Code:
cd ..
cd RTIMULibCal
make -j4
Quote:objects/RTIMU.o: In function `RTIMU::createIMU(RTIMUSettings*)':
RTIMU.cpp.text+0x78): undefined reference to `RTIMU5883L::RTIMU5883L(RTIMUSettings*)'
RTIMU.cpp.text+0x1cc): undefined reference to `RTIMULSM6DS33LIS3MDL::RTIMULSM6DS33LIS3MDL(RTIMUSettings*)'
objects/RTIMU.o: In function `RTIMU::RTIMU(RTIMUSettings*)':
RTIMU.cpp.text+0x2dc): undefined reference to `FusionMahony::FusionMahony()'
RTIMU.cpp.text+0x31c): undefined reference to `FusionMadgwick::FusionMadgwick()'
collect2: error: ld returned 1 exit status
Makefile:120: recipe for target 'Output/RTIMULibCal' failed
make: *** [Output/RTIMULibCal] Error 1
Code:
cd ..
cd RTIMULibDemo
qmake
make -j4
Quote:objects/RTIMU.o: In function `RTIMU::createIMU(RTIMUSettings*)':
RTIMU.cpp.text+0x78): undefined reference to `RTIMU5883L::RTIMU5883L(RTIMUSettings*)'
RTIMU.cpp.text+0x1cc): undefined reference to `RTIMULSM6DS33LIS3MDL::RTIMULSM6DS33LIS3MDL(RTIMUSettings*)'
objects/RTIMU.o: In function `RTIMU::RTIMU(RTIMUSettings*)':
RTIMU.cpp.text+0x2dc): undefined reference to `FusionMahony::FusionMahony()'
RTIMU.cpp.text+0x31c): undefined reference to `FusionMadgwick::FusionMadgwick()'
collect2: error: ld returned 1 exit status
Makefile.Release:184: recipe for target 'Output/RTIMULibDemo' failed
make[1]: *** [Output/RTIMULibDemo] Error 1
make[1]: Leaving directory '/home/pi/RTIMULib2/Linux/RTIMULibDemo'
Makefile:34: recipe for target 'release' failed
make: *** [release] Error 2
Code:
cd ..
cd RTIMULibDemoGL
qmake
make -j4
Quote:objects/RTIMU.o: In function `RTIMU::createIMU(RTIMUSettings*)':
RTIMU.cpp.text+0x78): undefined reference to `RTIMU5883L::RTIMU5883L(RTIMUSettings*)'
RTIMU.cpp.text+0x1cc): undefined reference to `RTIMULSM6DS33LIS3MDL::RTIMULSM6DS33LIS3MDL(RTIMUSettings*)'
objects/RTIMU.o: In function `RTIMU::RTIMU(RTIMUSettings*)':
RTIMU.cpp.text+0x2dc): undefined reference to `FusionMahony::FusionMahony()'
RTIMU.cpp.text+0x31c): undefined reference to `FusionMadgwick::FusionMadgwick()'
collect2: error: ld returned 1 exit status
Makefile.Release:222: recipe for target 'Output/RTIMULibDemoGL' failed
make[1]: *** [Output/RTIMULibDemoGL] Error 1
make[1]: Leaving directory '/home/pi/RTIMULib2/Linux/RTIMULibDemoGL'
Makefile:34: recipe for target 'release' failed
make: *** [release] Error 2