question

erni avatar image
erni asked

Kann die Bosch bsec Library nicht kompilieren

root@raspberrypi2:/opt/bsec_bme680-homie# ./make.sh
Patching...
Already applied.
Compiling...
/usr/lib/gcc/arm-ve-linux-gnueabi/9.3.0/../../../../arm-ve-linux-gnueabi/bin/ld: cannot find -lm
/usr/lib/gcc/arm-ve-linux-gnueabi/9.3.0/../../../../arm-ve-linux-gnueabi/bin/ld: cannot find -lrt
/usr/lib/gcc/arm-ve-linux-gnueabi/9.3.0/../../../../arm-ve-linux-gnueabi/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status


Venus OSmodifications
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

3 Answers
johanndo avatar image
johanndo answered ·

Install all developer tools for the tool chain with opkg first.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

erni avatar image
erni answered ·

Would you please give the detailed Packes as Iam new using opkg?

Thank you.



1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

erni avatar image erni commented ·

I did search the internet but the most topic I found are about this is with debian and his packetmanger apt.

I search opkg list and didn't find the keywords you wrote like

developer tools for the tool chain

Thank you

0 Likes 0 ·
erni avatar image
erni answered ·

Ich nutze das large image in der Version

root@raspberrypi2:/usr/local/sbin# cat /opt/victronenergy/version
v2.90~14
Victron Energy
20220616130540

Den Sensor und die Werte kann ich mit einem python Skript auslesen.

#!/usr/bin/python3
import board
from busio import I2C
import adafruit_bme680

# Create library object using our Bus I2C port
i2c = I2C(board.SCL, board.SDA)
bme680 = adafruit_bme680.Adafruit_BME680_I2C(i2c, debug=False)

# change this to match the location's pressure (hPa) at sea level
#bme680.sea_level_pressure = 1013.25

# You will usually have to add an offset to account for the temperature of
# the sensor. This is usually around 5 degrees but varies by use. Use a
# separate temperature sensor to calibrate this one.
#temperature_offset = -5
temperature_offset = 0

print("Temperature: %0.1f C" % (bme680.temperature + temperature_offset))
print("Gas: %d ohm" % bme680.gas)
print("Humidity: %0.1f %%" % bme680.relative_humidity)
print("Pressure: %0.3f hPa" % bme680.pressure)
print("Altitude = %0.2f meters" % bme680.altitude)


# Minimal example configuration with common sensors
#i2c:

#bme680_bsec:

#sensor:
# - platform: bme680_bsec
# temperature:
# name: "BME680 Temperature"
# pressure:
# name: "BME680 Pressure"
# humidity:
# name: "BME680 Humidity"
# iaq:
# name: "BME680 IAQ"
# co2_equivalent:
# name: "BME680 CO2 Equivalent"
# breath_voc_equivalent:
# name: "BME680 Breath VOC Equivalent"

#text_sensor:
# - platform: bme680_bsec
# iaq_accuracy:
# name: "BME680 IAQ Accuracy"
root@raspberrypi2:/usr/local/sbin#

Die Ausgabe würde ich gerne ins Venusos übernehmen.


es heißt das large image die Build tools enthält.

@Netrange

Oder was meinst du mit der Frage?


Danke sehr.





2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.