Re: [Gimp-developer] Compiling GIMP on Snow Leopard

2010-06-01 Thread Martin Nordholts
On 06/01/2010 03:10 AM, Jozef Legény wrote:
 Hello,

 after a while of searching and some trial and error, I managed to
 compile the latest git version of GIMP on Snow Leopard (with 64bit
 kernel enabled). Since I didn't find a tutorial treating this
 particular subject I have written one and posted it here :
 http://clockwork.fr/how-to-compile-gimp-271-on-snow-leopard/

 I was wondering whether anybody would have suggestions on how to
 improve on this process, especially on the two mac-specific problems
 (the twain compilation problem and the odd behavior of linking against
 libjpeg)

I've made the Mac TWAIN plug-in --without:able now at least, one 
shouldn't have to hack configure manually...

commit bc54cbfd573d6d6ea0507e93f2e79bce8d5a8af9
Author: Martin Nordholts mart...@src.gnome.org
Date:   Tue Jun 1 20:45:46 2010 +0200

 Add --without-mac-twain to configure


  / Martin
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Compiling GIMP on Snow Leopard

2010-06-01 Thread Sven Neumann
On Tue, 2010-06-01 at 03:10 +0200, Jozef Legény wrote:

 when I tried to compile GIMP without installing libjpeg from source
 (and thus into /usr/local/lib) it complained about not being able to
 find the library even though other libraries (like glib, gtk or tiff)
 didn't seem to have problems. I did add the correct -I and -L flags to
 CFLAGS and LDFLAGS variables

Please be more specific and send us information about how exactly you
call ./configure and what the exact error is (including the relevant
parts from config.log).

 for the twain i join the compiler output at the end of this message,
 since I don't have a scanner I found it easier to just disable it by
 force

Yeah, the TWAIN issue is known and we are hoping that someone will
finally send a patch to address it.

 Finally, I'd be more than happy to create an application bundle if
 someone could point me to a good tutorial on howto create those. (if
 there is a point of a bundle for the development release)

Just out of interest, are you building against GTK+ compiled with the
native Quartz backend or are you still using X11 for this?


Sven


___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Compiling GIMP on Snow Leopard

2010-06-01 Thread Jozef Legény
On Tue, Jun 1, 2010 at 22:05, Sven Neumann s...@gimp.org wrote:

 Please be more specific and send us information about how exactly you
 call ./configure and what the exact error is (including the relevant
 parts from config.log).

The call to configure I use is :

./configure --prefix=/opt/gimp-2.7 --disable-mmx

and the resulting error is

checking for jpeg_destroy_decompress in -ljpeg... yes
checking for jpeglib.h... no (Can't include jpeglib.h)
configure: error:
*** Checks for JPEG library failed. You can build without it by passing
*** --without-libjpeg to configure but you won't be able to use JPEGs then.


The relevant part from config.log is :

configure:18298: checking for jpeg_destroy_decompress in -ljpeg
configure:18323: gcc -o conftest -I/opt/local/include -Wall
-Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations -Winit-self -Wpointer-arith
-Wold-style-definit$
conftest.c:65: warning: function declaration isn't a prototype
conftest.c:68: warning: function declaration isn't a prototype
conftest.c: In function 'main':
conftest.c:68: warning: old-style function definition
configure:18323: $? = 0
configure:18332: result: yes
configure:18343: checking for jpeglib.h
configure:18355: gcc -E  conftest.c
conftest.c:64:21: error: jpeglib.h: No such file or directory

I do, however, have jpeglib.h in /opt/local/include folder (just where
libtiff, which works, is). When I install libjpeg to /usr/local/lib
the problem solves itself.

 Just out of interest, are you building against GTK+ compiled with the
 native Quartz backend or are you still using X11 for this?

As for the GTK+, I'm using the X11 version. I also tried compiling
stable GIMP with the GTK+ with Quartz backend using MacPorts (and
succeeded), however text was displayed incorrectly (squares instead of
characters). I've tried to find a way to solve this issue (probably
coming from quartz backend for pango) but was unsuccessful.

I will try to recompile GTK+ again with the Quartz support, but I need
to find a way to isolate it from the rest of my environment since I do
need functional GTK+ on daily basis.
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Compiling GIMP on Snow Leopard

2010-06-01 Thread Sven Neumann
On Tue, 2010-06-01 at 22:51 +0200, Jozef Legény wrote:

 The call to configure I use is :
 
 ./configure --prefix=/opt/gimp-2.7 --disable-mmx
 
 and the resulting error is
 
 checking for jpeg_destroy_decompress in -ljpeg... yes
 checking for jpeglib.h... no (Can't include jpeglib.h)
 configure: error:
 *** Checks for JPEG library failed. You can build without it by passing
 *** --without-libjpeg to configure but you won't be able to use JPEGs then.

Well, did you add -I/opt/local/include to CPPFLAGS before calling the
configure script?


Sven


___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Compiling GIMP on Snow Leopard

2010-06-01 Thread Jozef Legény
On Tue, Jun 1, 2010 at 23:58, Sven Neumann s...@gimp.org wrote:

 Well, did you add -I/opt/local/include to CPPFLAGS before calling the
 configure script?

Actually, I didn't, just tried it and it worked. Thank you.

Jozef
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer