Closed lingdoc closed 2 years ago
I tried to install the bleeding-edge version instead, via brew install --HEAD ./scantailor.rb
and that works fine..
apparently a recent update of homebrew seems to break local taps (i may be wrong) :
https://github.com/Homebrew/brew/pull/7745
from what i understand, the formula being from the local filesystem and not from a tap, the call to tap.full_name
fails (tap is a NIL object)
maybe it is possible to define a tap object explicitly in the formula… i'll look into it
The build error is unrelated to Homebrew. If you look at the full traceback, you'd see something like
Last 15 lines from /Users/<username>/Library/Logs/Homebrew/scantailor/02.make:
, but the cmake error in your case was before the last 15 lines. Looking in the logfile would let you find the actual error.
/tmp/scantailor-20200806-60229-1lec3rl/scantailor-advanced-1.0.16/ImageViewBase.cpp:431:18: error: variable has incomplete type 'QPainterPath'
QPainterPath clip_path;
^
/usr/local/opt/qt/lib/QtGui.framework/Headers/qmatrix.h:54:7: note: forward declaration of 'QPainterPath'
class QPainterPath;
^
/tmp/scantailor-20200806-60229-1lec3rl/scantailor-advanced-1.0.16/ImageViewBase.cpp:442:18: error: variable has incomplete type 'QPainterPath'
QPainterPath clip_path;
^
/usr/local/opt/qt/lib/QtGui.framework/Headers/qmatrix.h:54:7: note: forward declaration of 'QPainterPath'
class QPainterPath;
^
2 errors generated.
make[2]: *** [CMakeFiles/stcore.dir/ImageViewBase.cpp.o] Error 1
make[1]: *** [CMakeFiles/stcore.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 36%] Building CXX object imageproc/CMakeFiles/imageproc.dir/ColorTable.cpp.o
It's slightly confusing because due to the parallel build, the last lines of the cmake output may not contain the error, but looking at the full log file finds it.
It looks like it might be resolved in https://github.com/4lex4/scantailor-advanced/commit/3d1e74e6ace413733511086934a66f4e3f7a6027, which is why passing the --head
option works.
Homebrew does support third-party taps, but the instructions in this repo README don't install this as a tap. See https://docs.brew.sh/Taps#the-brew-tap-command for more.
If you do
brew tap yb85/scantailor-advanced-osx https://github.com/yb85/scantailor-advanced-osx/
brew install scantailor
you'll instead only get a GitHub API error since the tap name doesn't have homebrew
as the username prefix when brew
is searching GitHub for open issues after the build fails.
the new repo fixes the issue
Following the build/install instructions, after I type
brew install ./scantailor.rb
everything seems to start fine, and then halfway through the process I get a traceback with the following error:here's the full traceback: