Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GBool Not Defined build on OSX Mojave #69

Open
kwierman opened this issue Nov 2, 2018 · 12 comments
Open

GBool Not Defined build on OSX Mojave #69

kwierman opened this issue Nov 2, 2018 · 12 comments

Comments

@kwierman
Copy link

kwierman commented Nov 2, 2018

Issuing either

brew install weikengchen/caskformula/inkscape

or

brew install caskformula/caskformula/inkscape

results in:

brew install weikengchen/caskformula/inkscape
==> Tapping weikengchen/caskformula
Cloning into '/usr/local/Homebrew/Library/Taps/weikengchen/homebrew-caskformula'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 6 (delta 0), reused 3 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), done.
Tapped 1 formula (32 files, 32.5KB).
==> Installing inkscape from weikengchen/caskformula
==> Downloading https://launchpad.net/inkscape/0.92.x/0.92.3/+download/inkscape-0.92.3.tar.bz2
==> Downloading from https://launchpadlibrarian.net/361990187/inkscape-0.92.3.tar.bz2
######################################################################## 100.0%
Warning: Cannot verify integrity of 0e2ef041d2430a9a3f20f786a3e43b633ee6299c1abcbea5de70b01c2cb33513--inkscape-0.92.3.tar.bz2
A checksum was not provided for this resource
For your reference the SHA256 is: 063296c05a65d7a92a0f627485b66221487acfc64a24f712eb5237c4bd7816b2
==> Downloading https://raw.githubusercontent.com/weikengchen/homebrew-caskformula/master/patch.diff
######################################################################## 100.0%
==> Patching
==> Applying patch.diff
patching file src/extension/internal/pdfinput/pdf-parser.cpp
patching file src/extension/internal/pdfinput/pdf-parser.h
patching file src/extension/internal/pdfinput/svg-builder.cpp
patching file src/extension/internal/pdfinput/svg-builder.h
==> mkdir build
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/inkscape/0.92.3_1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_V
==> make




Last 15 lines from /Users/kwierman/Library/Logs/Homebrew/inkscape/03.make:
               GBool transpGroup = gFalse, GBool softMask = gFalse,
                                           ^
/tmp/inkscape-20181102-50619-1wt2goi/inkscape-0.92.3/src/extension/internal/pdfinput/pdf-parser.h:299:9: error: unknown type name 'GBool'
               GBool isolated = gFalse, GBool knockout = gFalse,
               ^
/tmp/inkscape-20181102-50619-1wt2goi/inkscape-0.92.3/src/extension/internal/pdfinput/pdf-parser.h:299:34: error: unknown type name 'GBool'
               GBool isolated = gFalse, GBool knockout = gFalse,
                                        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [src/CMakeFiles/inkscape_base.dir/extension/internal/pdfinput/pdf-input.cpp.o] Error 1
20 errors 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

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

TetsuFe commented Nov 3, 2018

same issue

@lbarrettanderson
Copy link

me too, but on High Sierra.

@rolandjkay
Copy link

poppler have removed the GBool type in favour of bool: https://gitlab.freedesktop.org/poppler/poppler/commit/163420b48bdddf9084208b3cadf04dafad52d40a

@mdzoon
Copy link

mdzoon commented Nov 5, 2018

same issue

@rolandjkay
Copy link

This patch will fix it; alternatively the master branch of the Inkscape repo has now been updated to support Poppler 0.71

inkscape-0.92-poppler-0.71-diff.txt

@rolandjkay
Copy link

I just submitted a pull request which fixes the formula

@julioj4pa
Copy link

I used #21 to solve, I think it can help too.

@rolandjkay
Copy link

Yes, installing an old version of Poppler -- the workaround on #21 -- would probably work as well.

@weikengchen
Copy link

weikengchen commented Dec 7, 2018

Please forget about my temporary fix.
I tried to fix it recently, but I failed, now the white canvas does not show up.

At this moment I will have to use an Inkscape on Windows to continue my work.

@rolandjkay thanks for the information.

@rdbisme
Copy link

rdbisme commented Dec 9, 2018

@weikengchen I think we're hitting the same problem on Macports. Any of you compiled inkscape with quartz backend on Mojave? Does it work?

@weikengchen
Copy link

@rubendibattista I gave up this morning and instead turned to Adobe AI.

@kenyee
Copy link

kenyee commented Jan 4, 2019

Disappointed there's no formula for 0.92.3 as well. I hit this and had to switch back to the old poppler via:
brew unlink poppler
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/ae37c1f6dcd5677aa13e8a42fb913a098f5d9649/Formula/poppler.rb
brew install inkscape
brew pin poppler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants