Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    Visual Studio Micro Arduino linkin issues

    Visual Studio Micro Arduino linkin issues

    kayleejacob
    Member

    I currently have the same code working directly in Arduino IDE but i am tring to get it to compile in visual studio as i use this as my primary IDE iam getting following error i am using

    arduino 1.8

    latest IDF for esp32

    latest build for bsec 

    Linking it all together ...
    # Coping cached core C:\Users\Home\AppData\Local\Temp\VMBCore\arduino16x\7af14a94f13cbf1aa099fc9a40549e1d\core.a to C:\Users\Home\AppData\Local\Temp\VMBuilds\MainMod0\expressif_d32_pro\Release\core.a
    "C:\Users\Home\Documents\Arduino\hardware\expressif\esp32/tools/xtensa-esp32-elf/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 "MainMod0.cpp.o" "ADC.cpp.o" "BME680P.cpp.o" "i2c.cpp.o" "power.cpp.o" "variable.cpp.o" "EEPROM\EEPROM.cpp.o" "bsec\bsec.cpp.o" "bsec\bme680\bme680.c.o" "Wire\Wire.cpp.o" "SPI\SPI.cpp.o" "bme680_data\bme680_data.cpp.o" "bme680_data\bme680\bme680.c.o" "C:\Users\Home\AppData\Local\Temp\VMBuilds\MainMod0\expressif_d32_pro\Release\core.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\VMBuilds\MainMod0\expressif_d32_pro\Release/MainMod0.ino.elf"
    bsec.cpp.o: file not recognized: File truncated
     
    collect2.exe*: error: ld returned 1 exit status
    Error linking for board LOLIN D32 PRO
    Build failed for project 'MainMod0'
    6 REPLIES 6

    We try to share enough instructions to run the BSEC library in Arduino IDE, but unfortunately we have no experience with Visual Micro, therefore you might need support from your IDE provider on how to include external static libraries (.a). From a brief search seems to indicate that such dependencies need to be placed in a "libs" folder under your project's folder (e.g. "project_folder\libs\libalgobsec.a"), alternatively you may be able to explicitely force the necessary flags in your project properties.

    it was the IDE they fixed the issue 

     

    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