SimulPiscator / AirSane

Publish SANE scanners to MacOS, Android, and Windows via Apple AirScan.
GNU General Public License v3.0
243 stars 26 forks source link

Build with Homebrew on Apple Silicon #95

Closed misterbuchi closed 1 year ago

misterbuchi commented 1 year ago

The build introductions on Apple Silicon Mac don't work because, the homebrew bins, includes, and libs are on /opt/homebrew/ and not on /usr/local

I had to change CMakelist.txt to

include_directories(.)
if(APPLE)
  include_directories(/opt/homebrew/include /usr/local/include)
  link_directories(/opt/homebrew/lib /usr/local/lib)
  set(ZEROCONF_FILES
    zeroconf/mdnspublisher-dnssd.mm
  )
SimulPiscator commented 1 year ago

Thanks! I fixed it.