Skip to content

Commit

Permalink
Allow raspi camera plugin to build under Ubuntu
Browse files Browse the repository at this point in the history
Ubuntu ships the libraspberrypi-dev packages that places the raspberry header files under /usr/include instead
under /opt. Extend the cmake logic to pick up also header files there.
  • Loading branch information
schwabe authored Dec 30, 2021
1 parent 310b29f commit 72d0d21
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

if (EXISTS /opt/vc/include)
# Ubuntu libraspberrypi-dev places the raspberry header files under /usr/include so we
# check for the vcos.h header
if (EXISTS /opt/vc/include OR EXISTS /usr/include/interface/vcos/vcos.h)
set(HAS_RASPI ON)
else()
set(HAS_RASPI OFF)
Expand Down

0 comments on commit 72d0d21

Please sign in to comment.