Skip to content

Claude Generated =) Build fails on main branch — Raspberry Pi 4, Raspbian Bookworm (7 fixes) #81

@DooDip

Description

@DooDip

Preface: I have no idea what I'm doing. I'm waiting on my Mid-360 to arrive so I can LIDAR mines and shafts. Claude helped figure out these errors. Pi4 4gb Bookworm 64-bit. I'm new to LIDAR, but I can stumble around Pi and Linux pretty well.

The following issues prevent a successful build from the current main branch on a stock Raspberry Pi 4 following the README instructions exactly. End result is mandeye_controller.service running successfully.

Fix 1 — Missing apt packages not listed in README:
sudo apt-get install -y nlohmann-json3-dev libzmq3-dev libboost-dev

Fix 2 — hardware_common.h: LIDAR_SYNC_1 and LIDAR_SYNC_2 missing from LED enum:
sed -i 's/\tBUZZER,/\tLIDAR_SYNC_1,\n\tLIDAR_SYNC_2,\n\tBUZZER,/' code/hardware_config/hardware_common.h

Fix 3 — hardware_common.h: circular include, remove #include "gpios.h":
sed -i '/#include "gpios.h"/d' code/hardware_config/hardware_common.h

Fix 4 — state.h: missing #include :
sed -i 's/#include <map>/#include <map>\n#include <string>/' code/state.h

Fix 5 — mandeye-standard-rpi4.h: missing #include and #include :
sed -i 's/#include "hardware_common.h"/#include "hardware_common.h"\n#include <array>\n#include <string>/' code/hardware_config/mandeye-standard-rpi4.h

Fix 6 — extras/libcamera/CMakeLists.txt: ZMQ_LIBRARIES missing from target_link_libraries:
sed -i 's/target_link_libraries(mandeye_libcamera PkgConfig::Pistache/target_link_libraries(mandeye_libcamera PkgConfig::Pistache ${ZMQ_LIBRARIES}/' extras/libcamera/CMakeLists.txt

Fix 7 — Post-install: run sudo ldconfig after sudo make install or control_program fails with missing liblaszip.so.8

System info:

  • OS: Debian GNU/Linux 12 (bookworm)
  • Kernel: 6.12.47+rpt-rpi-v8 aarch64
  • GCC: 12.2.0
  • CMake: 3.25.1
  • Hardware: Raspberry Pi 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions