GIMP for Mac

Gimp 2.4.7 released : packagers wanted

Installation and Mac OS specific issues.

Re: Gimp 2.4.7 released : packagers wanted

Postby Cocoa » Mon Sep 15, 2008 2:37 am

EDIT:

Code: Select all
Undefined symbols:
  "_NewHandle", referenced from:
      _twainAllocHandle in tw_mac.o
  "_InstallEventLoopTimer", referenced from:
      _twainMain in tw_mac.o
  "_RunApplicationEventLoop", referenced from:
      _twainMain in tw_mac.o
  "_DSM_Entry", referenced from:
      _callDSM in tw_mac.o
  "_GetMainEventLoop", referenced from:
      _twainMain in tw_mac.o
  "_DisposeHandle", referenced from:
      _twainFreeHandle in tw_mac.o
  "_CGImageCreateWithPNGDataProvider", referenced from:
      _twainMain in tw_mac.o
  "_CFURLCreateFromFileSystemRepresentation", referenced from:
      _twainMain in tw_mac.o
  "_CPSEnableForegroundOperation", referenced from:
      _twainMain in tw_mac.o
  "_CGDataProviderCreateWithURL", referenced from:
      _twainMain in tw_mac.o
  "_SetFrontProcess", referenced from:
      _twainMain in tw_mac.o
  "_kCFAllocatorDefault", referenced from:
      _kCFAllocatorDefault$non_lazy_ptr in tw_mac.o
  "_SetApplicationDockTileImage", referenced from:
      _twainMain in tw_mac.o
  "_QuitApplicationEventLoop", referenced from:
      _twainQuitApplication in tw_mac.o
      _doGetImage in tw_mac.o
  "_EndQDContextForApplicationDockTile", referenced from:
      _twainMain in tw_mac.o
  "_GetCurrentProcess", referenced from:
      _twainMain in tw_mac.o
  "_BeginQDContextForApplicationDockTile", referenced from:
      _twainMain in tw_mac.o
  "_CPSSetProcessName", referenced from:
      _twainMain in tw_mac.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [twain] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: Target org.macports.build returned: shell command " cd "/tmp/skl/Gimp.app/Contents/Resources/var/macports/build/_tmp_skl_Gimp.app_Contents_Resources_var_macports_sources_rsync.macports.org_release_ports_graphics_gimp2/work/gimp-2.4.7" && make all " returned error 2
Command output:       _twainMain in tw_mac.o
  "_CFURLCreateFromFileSystemRepresentation", referenced from:
      _twainMain in tw_mac.o
  "_CPSEnableForegroundOperation", referenced from:
      _twainMain in tw_mac.o
  "_CGDataProviderCreateWithURL", referenced from:
      _twainMain in tw_mac.o
  "_SetFrontProcess", referenced from:
      _twainMain in tw_mac.o
  "_kCFAllocatorDefault", referenced from:
      _kCFAllocatorDefault$non_lazy_ptr in tw_mac.o
  "_SetApplicationDockTileImage", referenced from:
      _twainMain in tw_mac.o
  "_QuitApplicationEventLoop", referenced from:
      _twainQuitApplication in tw_mac.o
      _doGetImage in tw_mac.o
  "_EndQDContextForApplicationDockTile", referenced from:
      _twainMain in tw_mac.o
  "_GetCurrentProcess", referenced from:
      _twainMain in tw_mac.o
  "_BeginQDContextForApplicationDockTile", referenced from:
      _twainMain in tw_mac.o
  "_CPSSetProcessName", referenced from:
      _twainMain in tw_mac.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [twain] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for gimp2): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.




Issues building.
Members don't see the above ad. Register now - it's free!
Cocoa
Newbie
 
Posts: 10
Joined: Sun Sep 14, 2008 5:58 am

Re: Gimp 2.4.7 released : packagers wanted

Postby Auria » Mon Sep 15, 2008 1:15 pm

Hmm... do you have my custom portfile (posted earlier in this thread)? I'm pretty sure i added stuff to fix missing symbols. If you do have it (please confirm) i'll try another change in it
User avatar
Auria
Retired Staff
 
Posts: 479
Joined: Sun Mar 16, 2008 9:07 pm

Re: Gimp 2.4.7 released : packagers wanted

Postby lisanet » Mon Sep 15, 2008 7:01 pm

this build error is related to a missing LDFLAG in the Makefile of the twain plugin.

I've fixed this by editing the correspondig Makefile. Unfortunately I haven't created a patch file... :( but you should be able to do it on your own.

Go to the build directory in your McPorts tree under 'Contents/Resources/var/macports/build'.
Right after you get the error, there should be a directory named something like '_tmp_skl_...bla..bla...graphics_gimp2'. This is your gimp sourcve tree. Go into it and down to 'plugin/twain'.
Edit the Makefile by searching for a rule for 'twain_LINK'. This should look like:

Code: Select all
twain_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
   --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(twain_LDFLAGS) \
   $(LDFLAGS) -o $@

Insert '$(AM_LDFLAGS)' right after $(twain_LDFLAGS). This will give you:

Code: Select all
twain_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
   --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(twain_LDFLAGS) $(AM_LDFLAGS) \
   $(LDFLAGS) -o $@

and restart the port install command.

BTW, is there anybody on the list who knows how to create a patch file for use with MacPorts?
Enjoy GIMP on your Mac ...

... GIMP on OS X - http://gimp.lisanet.de
lisanet
Full Member
 
Posts: 221
Joined: Mon Sep 15, 2008 10:56 am

Re: Gimp 2.4.7 released : packagers wanted

Postby Auria » Mon Sep 15, 2008 11:25 pm

Hi Lisanet, thanks for the fix! Has this problem been submitted to the appropriate people so it can be fixed upstream?

BTW, is there anybody on the list who knows how to create a patch file for use with MacPorts?

By this, do you mean a patch that macports will apply automatically? If so, unfortunately I do not know but you could drop by the macports IRC channel, they've generally been helpful to me
User avatar
Auria
Retired Staff
 
Posts: 479
Joined: Sun Mar 16, 2008 9:07 pm

Re: Gimp 2.4.7 released : packagers wanted

Postby truecolor » Thu Jun 04, 2009 3:54 am


;) Great stuff. Thanks for the quality tutorial
truecolor
Newbie
 
Posts: 1
Joined: Thu Jun 04, 2009 3:51 am

Re: Gimp 2.4.7 released : packagers wanted

Postby manola » Thu Jul 02, 2009 3:30 am

I keep going to it to do all sorts of things that mainstream picture processing apps
manola
Newbie
 
Posts: 1
Joined: Thu Jul 02, 2009 3:26 am

Previous

Return to GIMP for Mac

Who is online

Users browsing this forum: No registered users and 3 guests