Hi ! Using the standard MACOS toolchain: Mikko-MacBook-Pro-4:c mikko$ gcc --version Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 11.0.0 (clang-118.104.22.168) Target: x86_64-apple-darwin18.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin Mikko
... View more
Hello ! I've tried the new COINES 2.0 under MacOS and most of the things seem to work fine. However the examples using BSEClibrary do not compile, as the linker says the libalgobsec.a file it tries to link into the MacOS executable is from wrong architecture: Platform: Linux / macOS cc: "/usr/bin/gcc". [ MKDIR ] build [ CC ] ../../../../sensorAPI/bme680/BSEC/bsec_integration.c [ CC ] ../../../../sensorAPI/bme680/BSEC/config/generic_33v_3s_4d/bsec_serialized_configurations_iaq.c [ CC ] bsec_iot_example.c [ CC ] ../../../../sensorAPI/bme680/bme680.c [ MAKE ] coinesAPI [ AR ] libcoines-pc.a [ LD ] bsec_iot_example ld: warning: ignoring file ../../../../sensorAPI/bme680/BSEC/algo/bin/linux_x64/libalgobsec.a, file was built for archive which is not the architecture being linked (x86_64): ../../../../sensorAPI/bme680/BSEC/algo/bin/linux_x64/libalgobsec.a Undefined symbols for architecture x86_64: "_bsec_do_steps", referenced from: _bme680_bsec_process_data in bsec_integration.o "_bsec_get_state", referenced from: _bsec_iot_loop in bsec_integration.o "_bsec_init", referenced from: _bsec_iot_init in bsec_integration.o "_bsec_sensor_control", referenced from: _bsec_iot_loop in bsec_integration.o "_bsec_set_configuration", referenced from: _bsec_iot_init in bsec_integration.o "_bsec_set_state", referenced from: _bsec_iot_init in bsec_integration.o "_bsec_update_subscription", referenced from: _bme680_bsec_update_subscription in bsec_integration.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [bsec_iot_example] Error 1 I think the examples would need a MocOS specific version of the library for this to work. Compiling to the MCU_APP20 works and looking at the BSEC package there's a libalgobsec.a for many different platforms, but not x64 MacOS. Or is this just a problem on the makefile, should the Linux version work on MacOS ? Thanks !
... View more