bme680 with BSEC library PlatformIO

I would like to use the BSEC library for a bme680 sensor on a NodeMCU board.
Therefore I am using a basic example of code provided in the library. While compiling I recieved the following error message:

Linking .pio/build/nodemcu/firmware.elf
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/nodemcu/libb75/libBSEC Software Library.a(bsec.cpp.o):(.text._ZN4Bsec11beginCommonEv+0x4): undefined reference to `bsec_init'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/nodemcu/libb75/libBSEC Software Library.a(bsec.cpp.o):(.text._ZN4Bsec11beginCommonEv+0x8): undefined reference to `bsec_get_version'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/nodemcu/libb75/libBSEC Software Library.a(bsec.cpp.o): in function `Bsec::beginCommon()':
bsec.cpp:(.text._ZN4Bsec11beginCommonEv+0x8b): undefined reference to `bsec_init'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: bsec.cpp:(.text._ZN4Bsec11beginCommonEv+0x95): undefined reference to `bsec_get_version'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/nodemcu/libb75/libBSEC Software Library.a(bsec.cpp.o):(.text._ZN4Bsec18updateSubscriptionEP21bsec_virtual_sensor_thf+0x0): undefined reference to `bsec_update_subscription'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/nodemcu/libb75/libBSEC Software Library.a(bsec.cpp.o): in function `Bsec::updateSubscription(bsec_virtual_sensor_t*, unsigned char, float)':
bsec.cpp:(.text._ZN4Bsec18updateSubscriptionEP21bsec_virtual_sensor_thf+0x52): undefined reference to `bsec_update_subscription'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/nodemcu/libb75/libBSEC Software Library.a(bsec.cpp.o):(.text._ZN4Bsec8setStateEPh+0x0): undefined reference to `bsec_set_state'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/nodemcu/libb75/libBSEC Software Library.a(bsec.cpp.o): in function `Bsec::setState(unsigned char*)':
bsec.cpp:(.text._ZN4Bsec8setStateEPh+0x20): undefined reference to `bsec_set_state'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/nodemcu/libb75/libBSEC Software Library.a(bsec.cpp.o):(.text._ZN4Bsec15readProcessDataEx19bsec_bme_settings_t+0x1c): undefined reference to `bsec_do_steps'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/nodemcu/libb75/libBSEC Software Library.a(bsec.cpp.o): in function `Bsec::readProcessData(long long, bsec_bme_settings_t)':
bsec.cpp:(.text._ZN4Bsec15readProcessDataEx19bsec_bme_settings_t+0x158): undefined reference to `bsec_do_steps'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/nodemcu/libb75/libBSEC Software Library.a(bsec.cpp.o):(.text._ZN4Bsec3runEx+0x0): undefined reference to `bsec_sensor_control'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/nodemcu/libb75/libBSEC Software Library.a(bsec.cpp.o):(.text._ZN4Bsec3runEx+0x4): undefined reference to `bsec_get_state'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/nodemcu/libb75/libBSEC Software Library.a(bsec.cpp.o): in function `Bsec::run(long long)':
bsec.cpp:(.text._ZN4Bsec3runEx+0x41): undefined reference to `bsec_init'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: bsec.cpp:(.text._ZN4Bsec3runEx+0x72): undefined reference to `bsec_update_subscription'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: bsec.cpp:(.text._ZN4Bsec3runEx+0x9a): undefined reference to `bsec_sensor_control'
/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: bsec.cpp:(.text._ZN4Bsec3runEx+0x176): undefined reference to `bsec_get_state'
collect2: error: ld returned 1 exit status
*** [.pio/build/nodemcu/firmware.elf] Error 1

After some time of searching for a solution I came across some changes in the platformio.ini file. Honestly, with my current knowledge of arduino / c++ i don't exactly understand what it does. It now looks like this (added the build_flags):

[env:nodemcu]
platform = espressif8266
board = nodemcu
framework = arduino

build_flags =
  -I .pio/libdeps/nodemcu/BSEC_Software_Library_ID6979/src/inc
  -L .pio/libdeps/nodemcu/BSEC_Software_Library_ID6979/src/esp8266
  -lalgobsec

lib_deps = 
    BSEC Software Library

however, I now recieve the following error:

/home/noah/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find -lalgobsec
collect2: error: ld returned 1 exit status
*** [.pio/build/nodemcu/firmware.elf] Error 1

How could I solve this problem? Or are there other ways to make this library work on my NodeMCU with bme680?