Bosch Sensortec Community

    BSEC 1.4.7.4 compilation error on ESP32 1.0.3-rc1

    Highlighted
    Member

    Re: BSEC 1.4.7.4 compilation error on ESP32 1.0.3-rc1

    I got most of the way by reinstalling everything but gett errror below now 

    i am using ESP 32 IDF 1.0.4 and

     

    bsec version 1.4.7.4

     

    arduino 1.8.11

     

    Archiving built core (caching) in: C:\Users\Home\AppData\Local\Temp\arduino_cache_144159\core\core_b688055e6f472fc8fe393e8f00df42c8.a
    Linking everything together...
    "C:\\Users\\Home\\Documents\\ArduinoData\\packages\\esp32\\tools\\xtensa-esp32-elf-gcc\\1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-gcc" -nostdlib "-LC:\\Users\\Home\\Documents\\ArduinoData\\packages\\esp32\\hardware\\esp32\\1.0.4/tools/sdk/lib" "-LC:\\Users\\Home\\Documents\\ArduinoData\\packages\\esp32\\hardware\\esp32\\1.0.4/tools/sdk/ld" -T esp32_out.ld -T esp32.common.ld -T esp32.rom.ld -T esp32.peripherals.ld -T esp32.rom.libgcc.ld -T esp32.rom.spiram_incompatible_fns.ld -u ld_include_panic_highint_hdl -u call_user_start_cpu0 -Wl,--gc-sections -Wl,-static -Wl,--undefined=uxTopUsedPriority -u __cxa_guard_dummy -u __cxx_fatal_exception -Wl,--start-group "C:\\Users\\Home\\AppData\\Local\\Temp\\arduino_build_165693\\sketch\\basic.ino.cpp.o" "C:\\Users\\Home\\AppData\\Local\\Temp\\arduino_build_165693\\libraries\\bsec\\bsec.cpp.o" "C:\\Users\\Home\\AppData\\Local\\Temp\\arduino_build_165693\\libraries\\bsec\\bme680\\bme680.c.o" "C:\\Users\\Home\\AppData\\Local\\Temp\\arduino_build_165693\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\Home\\AppData\\Local\\Temp\\arduino_build_165693\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\Home\\AppData\\Local\\Temp\\arduino_build_165693\\core\\core.a" -lgcc -lesp32 -lphy -lesp_http_client -lmbedtls -lrtc -lesp_http_server -lbtdm_app -lspiffs -lbootloader_support -lmdns -lnvs_flash -lfatfs -lpp -lnet80211 -ljsmn -lface_detection -llibsodium -lvfs -ldl_lib -llog -lfreertos -lcxx -lsmartconfig_ack -lxtensa-debug-module -lheap -ltcpip_adapter -lmqtt -lulp -lfd -lfb_gfx -lnghttp -lprotocomm -lsmartconfig -lm -lethernet -limage_util -lc_nano -lsoc -ltcp_transport -lc -lmicro-ecc -lface_recognition -ljson -lwpa_supplicant -lmesh -lesp_https_ota -lwpa2 -lexpat -llwip -lwear_levelling -lapp_update -ldriver -lbt -lespnow -lcoap -lasio -lnewlib -lconsole -lapp_trace -lesp32-camera -lhal -lprotobuf-c -lsdmmc -lcore -lpthread -lcoexist -lfreemodbus -lspi_flash -lesp-tls -lwpa -lwifi_provisioning -lwps -lesp_adc_cal -lesp_event -lopenssl -lesp_ringbuf -lfr "-lstdc++\"-LC:\\Users\\Home\\Documents\\Arduino\\libraries\\bsec\\src\\esp32\"" -lalgobsec -Wl,--end-group -Wl,-EL -o "C:\\Users\\Home\\AppData\\Local\\Temp\\arduino_build_165693/basic.ino.elf"
     
    error:
    c:/users/home/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find -lstdc++"-LC:\Users\Home\Documents\Arduino\libraries\bsec\src\esp32"
    collect2.exe: error: ld returned 1 exit status

     

    Highlighted
    Member

    Re: BSEC 1.4.7.4 compilation error on ESP32 1.0.3-rc1

    So i reinstalled everything again because i was told that last error was in the toolchain

    now i have 

    Linking everything together...
    "C:\\Users\\Home\\Documents\\ArduinoData\\packages\\esp32\\tools\\xtensa-esp32-elf-gcc\\1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-gcc" -nostdlib "-LC:\\Users\\Home\\Documents\\Arduino\\hardware\\expressif\\esp32/tools/sdk/lib" "-LC:\\Users\\Home\\Documents\\Arduino\\hardware\\expressif\\esp32/tools/sdk/ld" -T esp32_out.ld -T esp32.project.ld -T esp32.rom.ld -T esp32.peripherals.ld -T esp32.rom.libgcc.ld -T esp32.rom.spiram_incompatible_fns.ld -u ld_include_panic_highint_hdl -u call_user_start_cpu0 -Wl,--gc-sections -Wl,-static -Wl,--undefined=uxTopUsedPriority -u __cxa_guard_dummy -u __cxx_fatal_exception -Wl,--start-group "C:\\Users\\Home\\AppData\\Local\\Temp\\arduino_build_973549\\sketch\\basic1.ino.cpp.o" "C:\\Users\\Home\\AppData\\Local\\Temp\\arduino_build_973549\\libraries\\bsec\\bsec.cpp.o" "C:\\Users\\Home\\AppData\\Local\\Temp\\arduino_build_973549\\libraries\\bsec\\bme680\\bme680.c.o" "C:\\Users\\Home\\AppData\\Local\\Temp\\arduino_build_973549\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\Home\\AppData\\Local\\Temp\\arduino_build_973549\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\Home\\AppData\\Local\\Temp\\arduino_cache_777539\\core\\core_f66931161e7bdd2e2cff10706bcd1608.a" -lgcc -lfreertos -lmesh -lod -lwear_levelling -lfb_gfx -lesp_adc_cal -lc_nano -lesp32 -ldriver -lhal -ljsmn -lsmartconfig -lesp_http_server -lprotocomm -lface_recognition -lespnow -ltcpip_adapter -lface_detection -lunity -lc -llibsodium -lesp_http_client -lapp_update -lnewlib -lcxx -ltcp_transport -lm -lefuse -lopenssl -lwifi_provisioning -lespcoredump -llog -lmbedtls -lesp_ringbuf -lwps -lnet80211 -lmqtt -lesp_https_server -lapp_trace -lesp_event -lesp32-camera -lsoc -lheap -llwip -lwpa -lrtc -lxtensa-debug-module -lspi_flash -lphy -lfr -lconsole -lcoap -lbtdm_app -lsdmmc -lfd -lmicro-ecc -ljson -lcore -lprotobuf-c -lethernet -lspiffs -lnvs_flash -lwpa_supplicant -lvfs -lasio -lwpa2 -lpp -lbootloader_support -limage_util -ldl_lib -lulp -lnghttp -lpthread -lfreemodbus -lexpat -lfatfs -lsmartconfig_ack -lmdns -lcoexist -lesp-tls -lesp_https_ota -lbt -lstdc++ -Wl,--end-group -Wl,-EL -o "C:\\Users\\Home\\AppData\\Local\\Temp\\arduino_build_973549/basic1.ino.elf"
     
     
    error:
    C:\Users\Home\AppData\Local\Temp\arduino_build_973549\libraries\bsec\bsec.cpp.o:(.literal._ZN4Bsec11beginCommonEv+0x0): undefined reference to `bsec_init'
    C:\Users\Home\AppData\Local\Temp\arduino_build_973549\libraries\bsec\bsec.cpp.o:(.literal._ZN4Bsec11beginCommonEv+0x4): undefined reference to `bsec_get_version'
    C:\Users\Home\AppData\Local\Temp\arduino_build_973549\libraries\bsec\bsec.cpp.o:(.literal._ZN4Bsec18updateSubscriptionEP21bsec_virtual_sensor_thf+0x0): undefined reference to `bsec_update_subscription'
    C:\Users\Home\AppData\Local\Temp\arduino_build_973549\libraries\bsec\bsec.cpp.o:(.literal._ZN4Bsec15readProcessDataEx19bsec_bme_settings_t+0x8): undefined reference to `bsec_do_steps'
    C:\Users\Home\AppData\Local\Temp\arduino_build_973549\libraries\bsec\bsec.cpp.o:(.literal._ZN4Bsec3runEv+0x0): undefined reference to `bsec_sensor_control'
    C:\Users\Home\AppData\Local\Temp\arduino_build_973549\libraries\bsec\bsec.cpp.o: In function `Bsec::beginCommon()':
    C:\Users\Home\Documents\Arduino\libraries\bsec\src/bsec.cpp:375: undefined reference to `bsec_init'
    C:\Users\Home\AppData\Local\Temp\arduino_build_973549\libraries\bsec\bsec.cpp.o: In function `Bsec::getVersion()':
    C:\Users\Home\Documents\Arduino\libraries\bsec\src/bsec.cpp:375: undefined reference to `bsec_get_version'
    C:\Users\Home\AppData\Local\Temp\arduino_build_973549\libraries\bsec\bsec.cpp.o: In function `Bsec::updateSubscription(bsec_virtual_sensor_t*, unsigned char, float)':
    C:\Users\Home\Documents\Arduino\libraries\bsec\src/bsec.cpp:375: undefined reference to `bsec_update_subscription'
    C:\Users\Home\AppData\Local\Temp\arduino_build_973549\libraries\bsec\bsec.cpp.o: In function `Bsec::readProcessData(long long, bsec_bme_settings_t)':
    C:\Users\Home\Documents\Arduino\libraries\bsec\src/bsec.cpp:291: undefined reference to `bsec_do_steps'
    C:\Users\Home\AppData\Local\Temp\arduino_build_973549\libraries\bsec\bsec.cpp.o: In function `Bsec::run()':
    C:\Users\Home\Documents\Arduino\libraries\bsec\src/bsec.cpp:174: undefined reference to `bsec_sensor_control'
    collect2.exe: error: ld returned 1 exit status
    Highlighted
    Member

    Re: BSEC 1.4.7.4 compilation error on ESP32 1.0.3-rc1

     

    it is fixed 

    i figured out that with new IDE and IDF that the correct platfform.txt was below dont use the one under appdata 

     

    C:\Users\Home\Documents\Arduino\hardware\expressif\esp32

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist