UMPL Compilation options for generic platform

By dan_leland , 4 April 2012

Hi,
I tried to compile the umpl library for OMAP L-138 processor with the following compilation options:

-DCONFIG_MPU_SENSORS_MPU6050A2 -D__MPU_H_ -DUMPL_ENABLE_TEMPCOMP

but I still get errors (attached below). Furthermore, some file as packet.h, compass_debug.h are not found.

Some suggestion?

Description	Resource	Path	Location	Type
'INV_MOTION' undeclared (first use in this function) umpl-setup.c /MPU6050 line 75 C/C++ Problem
'INV_NO_MOTION' undeclared (first use in this function) umpl-setup.c /MPU6050 line 77 C/C++ Problem
'PACKET_TYPE_BIAS_X' undeclared (first use in this function) compass_debug.c /MPU6050 line 28 C/C++ Problem
'PACKET_TYPE_BIAS_Y' undeclared (first use in this function) compass_debug.c /MPU6050 line 31 C/C++ Problem
'PACKET_TYPE_BIAS_Z' undeclared (first use in this function) compass_debug.c /MPU6050 line 34 C/C++ Problem
'PACKET_TYPE_RAWMAG_X' undeclared (first use in this function) compass_debug.c /MPU6050 line 15 C/C++ Problem
'PACKET_TYPE_RAWMAG_Y' undeclared (first use in this function) compass_debug.c /MPU6050 line 18 C/C++ Problem
'PACKET_TYPE_RAWMAG_Z' undeclared (first use in this function) compass_debug.c /MPU6050 line 21 C/C++ Problem
compass_debug.h: No such file or directory compass_debug.c /MPU6050 line 7 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplDmpSetup' umpl-setup.c /MPU6050 line 92 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplDmpSetup' umpl-setup.h /MPU6050 line 15 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplInit' umpl-states.c /MPU6050 line 146 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplInit' umpl-states.h /MPU6050 line 30 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplNotifyInterrupt' umpl-states.c /MPU6050 line 97 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplNotifyInterrupt' umpl-states.h /MPU6050 line 35 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplOnTimer' umpl-states.c /MPU6050 line 120 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplOnTimer' umpl-states.h /MPU6050 line 36 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplPlatformSetup' umpl-setup.c /MPU6050 line 68 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplPlatformSetup' umpl-setup.h /MPU6050 line 12 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplSetState' umpl-states.c /MPU6050 line 72 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplStartAccelOnly' umpl-states.c /MPU6050 line 237 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplStartAccelOnly' umpl-states.h /MPU6050 line 32 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplStartAccelOnlyLowPower' umpl-states.c /MPU6050 line 276 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplStartAccelOnlyLowPower' umpl-states.h /MPU6050 line 33 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplStartMPU' umpl-states.c /MPU6050 line 183 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplStartMPU' umpl-states.h /MPU6050 line 31 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplStop' umpl-states.c /MPU6050 line 318 C/C++ Problem
expected '=', ',', ';', 'asm' or '__attribute__' before 'umplStop' umpl-states.h /MPU6050 line 34 C/C++ Problem
log.h: No such file or directory umpl-setup.c /MPU6050 line 47 C/C++ Problem
log.h: No such file or directory umpl-states.c /MPU6050 line 29 C/C++ Problem
make.exe[1]: [all] Error 2 (ignored) MPU6050 line 0 C/C++ Problem
make.exe[2]: *** [compass_debug.o] Error 1 MPU6050 line 0 C/C++ Problem
make.exe[2]: *** [umpl-setup.o] Error 1 MPU6050 line 0 C/C++ Problem
make.exe[2]: *** [umpl-states.o] Error 1 MPU6050 line 0 C/C++ Problem
ml.h: No such file or directory umpl-setup.c /MPU6050 line 31 C/C++ Problem
ml.h: No such file or directory umpl-states.c /MPU6050 line 33 C/C++ Problem
mldl_cfg.h: No such file or directory umpl-setup.c /MPU6050 line 36 C/C++ Problem
mldl.h: No such file or directory umpl-setup.c /MPU6050 line 32 C/C++ Problem
mldl.h: No such file or directory umpl-states.c /MPU6050 line 35 C/C++ Problem
mlFIFO.h: No such file or directory umpl-setup.c /MPU6050 line 34 C/C++ Problem
mlFIFO.h: No such file or directory umpl-states.c /MPU6050 line 34 C/C++ Problem
mlstates.h: No such file or directory umpl-setup.c /MPU6050 line 33 C/C++ Problem
mltypes.h: No such file or directory umpl-setup.h /MPU6050 line 9 C/C++ Problem
mltypes.h: No such file or directory umpl-states.h /MPU6050 line 5 C/C++ Problem
mpu.h: No such file or directory umpl-setup.c /MPU6050 line 35 C/C++ Problem
packet.h: No such file or directory compass_debug.c /MPU6050 line 8 C/C++ Problem
slave.h: No such file or directory umpl-setup.c /MPU6050 line 37 C/C++ Problem
temp_comp.h: No such file or directory umpl-setup.c /MPU6050 line 40 C/C++ Problem
ustore_lite_fusion_delegate.h: No such file or directory umpl-states.c /MPU6050 line 38 C/C++ Problem
ustore_manager.h: No such file or directory umpl-states.c /MPU6050 line 37 C/C++ Problem

guy_mcilroy

13 years 11 months ago

The UMPL library has a number of options for different sensor choices and compiler environments. The #defs you point to configure which MPU device is populated, and may be defined as a precompiler definitions within your eclipse environment
Please ensure that your header file locations are correctly configured in your build environment. For example, it appears you are receiving "no such file" errors for all header files distributed within directory

phpbb Post ID
19692
phpbb Topic ID
14256