TINYGPS-GNGGA and NEO GPS libraries wont compile

Here’s the error:

Processing gps3.ino
Checking library NeoGPS…
Checking library Arduino…
Checking library TinyGPS-gngga…
Installing library Arduino 0.0.10 to lib/Arduino …
Installing library TinyGPS-gngga 1.0.3 to lib/TinyGPS-gngga …
Installing library NeoGPS 4.1.3 to lib/NeoGPS …
Library Arduino 0.0.10 installed.
Library TinyGPS-gngga 1.0.3 installed.
Library NeoGPS 4.1.3 installed.
make -C …/modules/electron/user-part all
make[1]: Entering directory '/firmware/modules/electron/user-part’
make -C …/…/…/user
make[2]: Entering directory '/firmware/user’
Building cpp file: src/gps3.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p …/build/target/user/platform-10-msrc/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=0.6.0 -DRELEASE_BUILD -I./inc -I…/wiring/inc -I…/system/inc -I…/services/inc -I…/communication/src -I…/hal/inc -I…/hal/shared -I/rtos/FreeRTOSv8.2.2/FreeRTOS/Source/include -I/rtos/FreeRTOSv8.2.2/FreeRTOS/Source/portable/GCC/ARM_CM3 -I…/hal/src/electron -I…/hal/src/stm32f2xx -I…/hal/src/stm32 -I…/platform/shared/inc -I…/platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I…/platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I…/platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I…/platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I…/platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I…/platform/MCU/shared/STM32/inc -I…/platform/MCU/STM32F2xx/CMSIS/Include -I…/platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I…/dynalib/inc -Isrc -I./libraries -Isrc -Isrc -Ilib/TinyGPS-gngga/src -Ilib/NeoGPS/src -Ilib/Arduino/src -I. -MD -MP -MF …/build/target/user/platform-10-msrc/gps3.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLOXSARA -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -DLOG_INCLUDE_SOURCE_INFO -DUSE_SPI=SPI -DUSE_CS=A2 -DUSE_SPI=SPI -DUSE_CS=A2 -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x8080000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=4 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,102 -D_GNU_SOURCE -D_WINSOCK_H -DLOG_MODULE_CATEGORY="“app”" -fno-exceptions -fno-rtti -fcheck-new -std=gnu++11 -c -o …/build/target/user/platform-10-msrc/gps3.o src/gps3.cpp
gps3.ino:2:21: fatal error: TinyGPS.h: No such file or directory
compilation terminated.
…/build/module.mk:261: recipe for target ‘…/build/target/user/platform-10-msrc/gps3.o’ failed
make[2]: Leaving directory '/firmware/user’
make[2]: *** […/build/target/user/platform-10-msrc/gps3.o] Error 1
…/…/…/build/recurse.mk:11: recipe for target ‘user’ failed
make[1]: Leaving directory '/firmware/modules/electron/user-part’
make[1]: *** [user] Error 2
…/build/recurse.mk:11: recipe for target ‘modules/electron/user-part’ failed
make: *** [modules/electron/user-part] Error 2HIDE RAW
Error: Could not compile. Please review your code. Particle-3G-MKSPACE v0.6.0

Here maybe?

1 Like

Right, but if I told it to import the library, then should I not be getting that error?

Ok, so they have an error in their example (TinyGPS-gngga).

Just replace this line:
#include "TinyGPS.h"

with this line:
#include <TinyGPS-gngga.h>