It is currently Wed Jun 03, 2026 10:50 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Building GIMP 2.10 from source on OSX fails on “gimp-debug-tool-2.0”
PostPosted: Fri May 11, 2018 2:54 pm  (#1) 
Offline
New Member

Joined: May 11, 2018
Posts: 2
GIMP Version: 2.10
Operating System: Mac OS
OS Version: High Sierra
GIMP Experience: Basic Level



I was trying to build GIMP 2.10 on OSX for a week now with no success. Most of the problems were all the different dependencies and such. While it took time all of it was solvable but now I think I came to an dead end. I have gone to the stage where I could finally run "make" and after some time of building different things it errors out on "gimp-debug-tool-2.0". Here is the output log:

Making all in app-tools
  CCLD     gimp-debug-tool-2.0
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_NSString", referenced from:
      objc-class-ref in libappwidgets.a(gimpcriticaldialog.o)
  "_OBJC_CLASS_$_NSWorkspace", referenced from:
      objc-class-ref in libappwidgets.a(gimpcriticaldialog.o)
  "_objc_autoreleasePoolPop", referenced from:
      _gimp_critical_dialog_response in libappwidgets.a(gimpcriticaldialog.o)
  "_objc_autoreleasePoolPush", referenced from:
      _gimp_critical_dialog_response in libappwidgets.a(gimpcriticaldialog.o)
  "_objc_msgSend", referenced from:
      _gimp_critical_dialog_response in libappwidgets.a(gimpcriticaldialog.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [gimp-debug-tool-2.0] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


I have got similar errors when I was building Qt, OpenCv applications. The problem there was that libraries were missing and I solved it by providing paths to those libraries. But what could possibly be missing when building "gimp-debug-tool-2.0" which seems to be internal tool.

If somebody had any similar experience or has any clue/hint on how I could solve this problem and could point me to the right direction it would be very much appreciated.

Tanks in advance.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Building GIMP 2.10 from source on OSX fails on “gimp-debug-tool-2.
PostPosted: Sat May 12, 2018 3:48 am  (#2) 
Offline
GimpChat Member

Joined: Jan 03, 2014
Posts: 97
Loose brain waves that escaped while I read your post:
Same thing occurred to me while sifting through code from a Windows version, that "that ain't available on my system." Using Linux, and Gimp version 2.6-ish (too lazy to look it up). The locate-db tells me there is no such thing, other than in the source files belonging to 2.10, and in that Windows code I found.
Do you really need it? Sounds like a debug thing-a-ma-jig, adding debug info of sorts. Can the makefile be re-written to exclude it? I have not checked the official sources, could there be different versions for different systems?
Do you have to have a more recent version of Gimp installed first, where this "tool" was added? In that case, which version?
I wish programmers would stop writing documentation and leave that up to people who are closer to the user base...


Top
 Post subject: Re: Building GIMP 2.10 from source on OSX fails on “gimp-debug-tool-2.
PostPosted: Sat May 12, 2018 10:36 am  (#3) 
Offline
New Member

Joined: May 11, 2018
Posts: 2
Thank you for your reply. Yes, you are right, I do not really need the debug tool. I tried removing it from the make files and such but I went down the rabbit hole and had to pull the source code from git again as I messed to much with the files. However, I found out that I could run make with -k flag which keeps on building even if an error occurs. Luckily there were on other errors so after building and installing I could successfully run GIMP 2.10 on my MacBook :yes :gimp

Attaching a screenshot as a proof that it actually runs on my MacBook.


Attachments:
Screen Shot 2018-05-12 at 17.20.52.png
Screen Shot 2018-05-12 at 17.20.52.png [ 439.54 KiB | Viewed 2525 times ]
Top
 Post subject: Re: Building GIMP 2.10 from source on OSX fails on “gimp-debug-tool-2.
PostPosted: Mon May 14, 2018 12:47 pm  (#4) 
Offline
GimpChat Member

Joined: Jan 03, 2014
Posts: 97
If you were around back then: "Coolness achieved, Sirs!" :)


Top
 Post subject: Re: Building GIMP 2.10 from source on OSX fails on “gimp-debug-tool-2.
PostPosted: Mon May 14, 2018 11:25 pm  (#5) 
Offline
GimpChat Member

Joined: Feb 22, 2012
Posts: 295
Location: Germany
The program is part of a new feature. After a crash, a dialog is shown with some data, where and maybe why gimp crashed. But: If gimp crashes, you cannot start a new dialog. But you can start a new program. So the crashing dialog (the "critical dialog") is called from a seperate program and collects some crash info for the developers. Without that program, your gimp will crash after a crash. Hmm, nasty...

Hatti


Top
 Post subject: Re: Building GIMP 2.10 from source on OSX fails on “gimp-debug-tool-2.
PostPosted: Sun Jun 17, 2018 9:46 pm  (#6) 
Offline
New Member

Joined: Jun 17, 2018
Posts: 1
_OBJC_CLASS_$_NSWorkspace is in the AppKit foundation.

Trying to build against homebrew and made it past gimp-debug-tool-2.0 with this configure line:

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig \
./configure --prefix=/usr/local LDFLAGS=-L/usr/local/opt/gettext/lib \
CPPFLAGS=-I/usr/local/opt/gettext/include LIBS='-framework Foundation -framework AppKit'


and failing in "common" with

file-xpm.c:59:10: fatal error: 'X11/xpm.h' file not found
#include <X11/xpm.h>


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group