caskformula / homebrew-caskformula

Tap containing formulae for casks
83 stars 34 forks source link

Inkscape fails to install on homebrew new install 10.13.3 High Sierra OS X #40

Open wizard1066 opened 6 years ago

wizard1066 commented 6 years ago

Worked until I get here.

==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG Last 15 lines from /Users/localuser/Library/Logs/Homebrew/inkscape/02.cmake: -- No package 'libwpd-stream-0.9' found -- Found JPEG: /usr/local/lib/libjpeg.dylib
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.11") CMake Error at /usr/local/Cellar/cmake/3.10.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) Call Stack (most recent call first): /usr/local/Cellar/cmake/3.10.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /usr/local/Cellar/cmake/3.10.2/share/cmake/Modules/FindPNG.cmake:144 (find_package_handle_standard_args) CMakeScripts/DefineDependsandFlags.cmake:190 (find_package) CMakeLists.txt:112 (include)

-- Configuring incomplete, errors occurred! See also "/tmp/inkscape-20180216-48221-1pqknmc/inkscape-0.92.2/build/CMakeFiles/CMakeOutput.log". See also "/tmp/inkscape-20180216-48221-1pqknmc/inkscape-0.92.2/build/CMakeFiles/CMakeError.log".

ToledoEM commented 6 years ago

Just tried in OSX (10.13.3) this formula. I did not get an error.

ET-iMac:Downloads ET$ brew list
atk             freetype            gtkmm               libtiff             parallel
atkmm               gcc             harfbuzz            libtool             pcre
autoconf            gcc@4.8             hdf5                libunistring            pixman
automake            gd              hicolor-icon-theme      libxml2             pkg-config
bdw-gc              gdk-pixbuf          htop                little-cms          poppler
blueutil            gettext             icu4c               little-cms2         popt
boost               glib                inkscape            llvm                potrace
boost-build         glib-networking         intltool            mpfr                readline
cairo               glibmm              isl             mpfr@2              rsync
cairomm             gmp             isl@0.12            nettle              shellcheck
cloog               gmp@4               jpeg                node                sqlite
cmake               gnutls              libffi              openjpeg            sshfs
cowsay              gobject-introspection       libmpc              openssl             szip
curl                graphite2           libmpc@0.8          openssl@1.1         vala
eigen               graphviz            libpng              p11-kit             webp
fftw                gsettings-desktop-schemas   libsigc++           p7zip               wget
fontconfig          gsl             libsoup             pango
fortune             gtk+                libtasn1            pangomm

Darwin ET-iMac.home 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

Fischmuetze commented 6 years ago

got a similar error here on different machines with 10.13.3 `==> mkdir build ==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/inkscape/0.92.2_1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEW ==> make Last 15 lines from /Users/steffen/Library/Logs/Homebrew/inkscape/03.make: fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: [src/2geom/CMakeFiles/2geom_LIB.dir/basic-intersection.cpp.o] Error 1 20 errors generated. make[2]: [src/2geom/CMakeFiles/2geom_LIB.dir/bezier-clipping.cpp.o] Error 1 20 errors generated. make[2]: [src/libdepixelize/CMakeFiles/depixelize_LIB.dir/kopftracer2011.cpp.o] Error 1 make[1]: [src/libdepixelize/CMakeFiles/depixelize_LIB.dir/all] Error 2 20 errors generated. make[2]: [src/2geom/CMakeFiles/2geom_LIB.dir/bezier-curve.cpp.o] Error 1 make[1]: [src/2geom/CMakeFiles/2geom_LIB.dir/all] Error 2 cd /tmp/inkscape-20180221-10911-1afxj9m/inkscape-0.92.2/build/po && /usr/local/Cellar/cmake/3.10.2/bin/cmake -DINKSCAPE_SOURCE_DIR=/tmp/inkscape-20180221-10911-1afxj9m/inkscape-0.92.2 -DINKSCAPE_BINARY_DIR=/tmp/inkscape-20180221-10911-1afxj9m/inkscape-0.92.2/build -P /tmp/inkscape-20180221-10911-1afxj9m/inkscape-0.92.2/CMakeScripts/inkscape-desktop.cmake building inkscape.desktop [ 2%] Built target inkscape_desktop make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): https://github.com/caskformula/homebrew-caskformula/issues

These open issues may also help: inkscape does not start https://github.com/caskformula/homebrew-caskformula/issues/4 problem with Inkscape https://github.com/caskformula/homebrew-caskformula/issues/14 Inkscape brew install fail on OSX 10.12.6 https://github.com/caskformula/homebrew-caskformula/issues/39 Mixed Language display in UI of Inkscape https://github.com/caskformula/homebrew-caskformula/issues/33 Inkscape fails to install on homebrew new install 10.13.3 High Sierra OS X https://github.com/caskformula/homebrew-caskformula/issues/40 Inkscape brew formula runs successfully but app not in Applications https://github.com/caskformula/homebrew-caskformula/issues/30 inkscape fail on Mac OS Sierra 10.12.6 https://github.com/caskformula/homebrew-caskformula/issues/29`

kevindecapite commented 6 years ago

I am experiencing the same issue as @wizard1066 & @Fischmuetze on 10.13.3, build 17D102.

nothingismagick commented 6 years ago

MacOS 10.12.6

==> Installing caskformula/caskformula/inkscape
==> Downloading https://launchpad.net/inkscape/0.92.x/0.92.2/+download/inkscape-0.92.2.tar.bz2
==> Downloading from https://launchpadlibrarian.net/332184472/inkscape-0.92.2.tar.bz2
######################################################################## 100.0%
==> Downloading https://gitlab.com/inkscape/inkscape/commit/93ccf03162cd2e46d962822d5507865f3451168c.diff
######################################################################## 100.0%
==> Patching
==> Applying 93ccf03162cd2e46d962822d5507865f3451168c.diff
patching file CMakeScripts/DefineDependsandFlags.cmake
patching file config.h.cmake
patching file src/extension/internal/pdfinput/pdf-input.cpp
patching file src/extension/internal/pdfinput/pdf-parser.cpp
==> mkdir build
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/i
==> make
==> make install
🍺  /usr/local/Cellar/inkscape/0.92.2_1: 1,022 files, 120.7MB, built in 13 minutes 4 seconds

then:

(process:96334): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
2018-03-03 15:37:23.955 inkscape[96334:15209168] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
Fontconfig warning: ignoring UTF-8: not a valid region tag
libc++abi.dylib: terminating with uncaught exception of type Glib::ConvertError
nothingismagick commented 6 years ago

Fontconfig warning: ignoring UTF-8: not a valid region tag !!!!!! Seriously?

twogee commented 6 years ago

Because GTK expects en_US.UTF-8 or some such?

mgiugliano commented 6 years ago

Same error at compilation time, as described above (I am on High Sierra, 10.13.4)

jessechahal commented 6 years ago

MacOS 10.13.4 (17E199), Macbook Pro 2014 Originally i was getting github errors?!? cleared those using the log message instructions. Seems like I'm getting slightly different errors from above. Probably all caused by the same thing. In 10.13.4 support for eGPUs was enhanced heavily. Maybe this is causing issues with Quartz related install? Don't know if this cask installs quartz since the original instructions for inkscape state to use quartz (for the previous release).


==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREF
==> make
Last 15 lines from /Users/jesse/Library/Logs/Homebrew/inkscape/03.make:
  void doShowText(GooString *s);
                             ^
/tmp/inkscape-20180426-87913-1izlejl/inkscape-0.92.2/src/extension/internal/pdfinput/pdf-parser.cpp:2735:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'
  char *name = args[0].getName();
        ^      ~~~~~~~~~~~~~~~~~
5 errors generated.
make[2]: *** [src/CMakeFiles/inkscape_base.dir/extension/internal/pdfinput/pdf-parser.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/inkscape-20180426-87913-1izlejl/inkscape-0.92.2/src/extension/internal/pdfinput/svg-builder.cpp:1023:48: error: assigning to 'char *' from incompatible type 'const char *'
        _font_specification = font->getName()->getCString();
                              ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
1 error generated.
make[2]: *** [src/CMakeFiles/inkscape_base.dir/extension/internal/pdfinput/svg-builder.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/inkscape_base.dir/all] Error 2
make: *** [all] Error 2
matjazonline commented 6 years ago

On macOS High Sierra 10.13.4 (17E199) I get:

==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/inkscape/0.92.2_1 -DCMAKE_BUILD ==> make Last 15 lines from /Users/allisnow/Library/Logs/Homebrew/inkscape/03.make: ^ /tmp/inkscape-20180430-7170-1a32uw9/inkscape-0.92.2/src/extension/internal/pdfinput/pdf-parser.cpp:2575:18: error: cannot initialize a parameter of type 'GooString ' with an rvalue of type 'const GooString ' doShowText(obj.getString()); ^~~~~~~ /tmp/inkscape-20180430-7170-1a32uw9/inkscape-0.92.2/src/extension/internal/pdfinput/pdf-parser.h:290:30: note: passing argument to parameter 's' here void doShowText(GooString s); ^ /tmp/inkscape-20180430-7170-1a32uw9/inkscape-0.92.2/src/extension/internal/pdfinput/pdf-parser.cpp:2735:9: error: cannot initialize a variable of type 'char ' with an rvalue of type 'const char ' char name = args[0].getName(); ^ ~~~~~ 5 errors generated. make[2]: [src/CMakeFiles/inkscape_base.dir/extension/internal/pdfinput/pdf-parser.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [src/CMakeFiles/inkscape_base.dir/all] Error 2 make: [all] Error 2

mdaley commented 6 years ago

Hmm...this works but maybe the approach is missing something important, e.g. perhaps not the right version? I just did brew cask install xquartz and then brew cask install inkscape. All seemed to work and inkscape runs. Seems to be version 0.92.2 It is, I think just a 32-bit version though.

mgiugliano commented 6 years ago

@mdaley I followed your approach and it installed without returning errors. However, as soon as I launch inkspace I get the following error:

(inkscape-bin:47905): Gtk-WARNING **: cannot open display: /private/tmp/com.apple.launchd.X3FTB5sOKU/org.macosforge.xquartz:0
jessechahal commented 6 years ago

Maybe you should first try and see if you can use quartz normally. If you installed it correctly it should be usable on its own and bring up a quartz window with quartz Desktop Environment.

On Mon, May 7, 2018 at 9:36 AM Michele Giugliano notifications@github.com wrote:

@mdaley https://github.com/mdaley I followed your approach and it installed without returning errors. However, as soon as I launch inkspace I get the following error:

(inkscape-bin:47905): Gtk-WARNING **: cannot open display: /private/tmp/com.apple.launchd.X3FTB5sOKU/org.macosforge.xquartz:0

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/caskformula/homebrew-caskformula/issues/40#issuecomment-387124348, or mute the thread https://github.com/notifications/unsubscribe-auth/AC5Dtq7E1PY2I9OBzOO28psOv_N5P-QFks5twHfxgaJpZM4SIAfF .

mgiugliano commented 6 years ago

@jessecachal Yes, I have been using XQuartz (for years) with other software applications. I never had problems with it.

jeffrizzo commented 6 years ago

@jessechahal I see the same errors on MacOS 10.12.6:

==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/opt/brew/Cellar/inkscape/0.92.2_1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DC ==> make Last 15 lines from /Users/riz/Library/Logs/Homebrew/inkscape/03.make: void doShowText(GooString s); ^ /tmp/inkscape-20180509-2290-87laq1/inkscape-0.92.2/src/extension/internal/pdfinput/pdf-parser.cpp:2735:9: error: cannot initialize a variable of type 'char ' with an rvalue of type 'const char ' char name = args[0].getName(); ^ ~~~~~ 5 errors generated. make[2]: [src/CMakeFiles/inkscape_base.dir/extension/internal/pdfinput/pdf-parser.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... /tmp/inkscape-20180509-2290-87laq1/inkscape-0.92.2/src/extension/internal/pdfinput/svg-builder.cpp:1023:48: error: assigning to 'char ' from incompatible type 'const char ' _font_specification = font->getName()->getCString();


1 error generated.
make[2]: *** [src/CMakeFiles/inkscape_base.dir/extension/internal/pdfinput/svg-builder.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/inkscape_base.dir/all] Error 2
make: *** [all] Error 2
astr0sl0th commented 6 years ago

I am reporting similar issues above ^ /tmp/inkscape-20180512-34920-izwimr/inkscape-0.92.2/src/extension/internal/pdfinput/pdf-parser.cpp:2575:18: error: cannot initialize a parameter of type 'GooString *' with an rvalue of type 'const GooString *' doShowText(obj.getString()); ^~~~~~~~~~~~~~~ /tmp/inkscape-20180512-34920-izwimr/inkscape-0.92.2/src/extension/internal/pdfinput/pdf-parser.h:290:30: note: passing argument to parameter 's' here void doShowText(GooString *s); ^ /tmp/inkscape-20180512-34920-izwimr/inkscape-0.92.2/src/extension/internal/pdfinput/pdf-parser.cpp:2735:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *name = args[0].getName(); ^ ~~~~~~~~~~~~~~~~~ 5 errors generated. make[2]: *** [src/CMakeFiles/inkscape_base.dir/extension/internal/pdfinput/pdf-parser.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [src/CMakeFiles/inkscape_base.dir/all] Error 2 make: *** [all] Error 2

n0vi commented 6 years ago

I run into the same issue on High Sierra 10.13.4, solved by:

brew uninstall xquartz
brew uninstall inkscape
brew cleanup
brew cask install xquartz
brew cask install inkscape
mgiugliano commented 6 years ago

@n0vi : Your proposal returned no compilation error but Inkscape does not work - it starts and exits silently (even though XQuartz is running)

n0vi commented 6 years ago

@mgiugliano Not sure how to advise in your case. I am starting Inkscape as /Applicatons/Inkscape.app (i.e not from terminal). On the first after the install run, there were several warning boxes shown about XQuartz. After the run, Inkscape app is just an icon in the doc, XQuartz shows the Inkscape window. Try quit all XQuartz apps and XQuartz itself. And then run /Applications/Inkscape.app.

kburzota commented 6 years ago

@mgiugliano I got the same result. Inkscape is installed, but it immediately and silently terminates right after opening.

egmaes commented 6 years ago

@kburzota @mgiugliano I also had the same result:

Inkscape is installed, but it immediately and silently terminates right after opening.

However, I was able to successfully launch (and use) Inkscape via the XQuartz terminal.

kenyee commented 6 years ago

FWIW, none of the solutions worked for me..launching from the xquartz terminal didn't show anything either did the full uninstall/clean/installcask thing of xquart and inkscape too. Just doesn't seem stable enough to use on a mac :-(

jomo commented 5 years ago

What the xquartz installation via Homebrew doesn't tell you, but the GUI installer does:

You will need to log out and log back in to make XQuartz your default X11 server.

I did that and it fixed it for me.