bitmapflow icon indicating copy to clipboard operation
bitmapflow copied to clipboard

Build issues on Mac

Open corjohnson opened this issue 4 years ago • 2 comments

Hello, I thought I'd try to build the project on Mac, and I got through the dependencies and all that, however when trying to run cargo build --release I can't seem to get it past the open-cv step.

Not sure if this is a failure on my part of not setting up the open-cv dependencies correctly or what, but the log doesn't really seem to tell me anything clear.. would love some input if you have an idea of how to fix it 😄

bitmapflow_osx_build.log

I had tried to document my steps here as well:

https://gist.github.com/corjohnson/49d77b9f3e14478c29d8b30d6e9f9814

corjohnson avatar Apr 03 '21 18:04 corjohnson

Looking at the build log it seems the opencv build script is failing for some reason. All other steps seem to succeed. Unfortunately I don't have any experience porting to Mac (I don't even have any Mac hardware to test on), so I'm not sure if I can provide useful advice, but I'm going to make some educated guesses.

  1. Did you install the opencv-contrib dependency too (instead of just opencv itself)? (opencv-contrib adds some extras to opencv that I use)
  2. Have you tried using llvm from Brew instead of using XCode/Command Line Tools?

Also maybe try opening an issue on the opencv-rust repo, because it seems this issue is beyond my control: https://github.com/twistedfall/opencv-rust/issues

Bauxitedev avatar Apr 05 '21 09:04 Bauxitedev

Fixed #10

nosferatu500 avatar Dec 08 '21 01:12 nosferatu500