Compiling GIMP on Snow Leopard
This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
Compiling GIMP on Snow Leopard | Jozef Legény | 01 Jun 03:10 |
Compiling GIMP on Snow Leopard | Martin Nordholts | 01 Jun 20:45 |
Compiling GIMP on Snow Leopard | Sven Neumann | 01 Jun 22:03 |
Compiling GIMP on Snow Leopard | Jozef Legény | 01 Jun 22:51 |
Compiling GIMP on Snow Leopard | Sven Neumann | 01 Jun 23:57 |
Compiling GIMP on Snow Leopard | Jozef Legény | 02 Jun 00:11 |
Compiling GIMP on Snow Leopard
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)
Just to be more specific about these issues :
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
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
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)
Sincerly Jozef
---------------------------------------
Making all in twain
CC tw_func.o
CC tw_util.o
CC twain.o
In file included from tw_func.c:68:
tw_local.h:37: warning: function declaration isn’t a prototype
tw_local.h:45: warning: function declaration isn’t a prototype
tw_local.h:46: warning: function declaration isn’t a prototype
tw_func.c:106: warning: no previous prototype for ‘FloatToFIX32’
In file included from twain.c:70:
tw_local.h:37: warning: function declaration isn’t a prototype
tw_local.h:45: warning: function declaration isn’t a prototype
tw_local.h:46: warning: function declaration isn’t a prototype
CC tw_mac.o
twain.c:209: warning: no previous prototype for ‘scanImage’
twain.c: In function ‘getAppIdentity’:
twain.c:235: warning: pointer targets in passing argument 1 of
‘__builtin___strcpy_chk’ differ in signedness
twain.c:235: warning: pointer targets in passing argument 1 of
‘__inline_strcpy_chk’ differ in signedness
twain.c:239: warning: pointer targets in passing argument 1 of
‘__builtin___strcpy_chk’ differ in signedness
twain.c:239: warning: pointer targets in passing argument 1 of
‘__inline_strcpy_chk’ differ in signedness
twain.c:240: warning: pointer targets in passing argument 1 of
‘__builtin___strcpy_chk’ differ in signedness
twain.c:240: warning: pointer targets in passing argument 1 of
‘__inline_strcpy_chk’ differ in signedness
twain.c:241: warning: pointer targets in passing argument 1 of
‘__builtin___strcpy_chk’ differ in signedness
twain.c:241: warning: pointer targets in passing argument 1 of
‘__inline_strcpy_chk’ differ in signedness
twain.c: At top level:
twain.c:256: warning: no previous prototype for ‘initializeTwain’
In file included from tw_mac.c:36:
tw_local.h:37: warning: function declaration isn’t a prototype
tw_local.h:45: warning: function declaration isn’t a prototype
tw_local.h:46: warning: function declaration isn’t a prototype
tw_mac.c:44: warning: function declaration isn’t a prototype
tw_mac.c: In function ‘twainSetupCallback’:
tw_mac.c:105: warning: cast from pointer to integer of different size
tw_mac.c:105: warning: assignment makes pointer from integer without a cast
tw_mac.c: At top level:
tw_mac.c:124: warning: no previous prototype for ‘unloadTwainLibrary’
tw_mac.c:150: warning: function declaration isn’t a prototype
tw_mac.c: In function ‘twainQuitApplication’:
tw_mac.c:150: warning: old-style function definition
tw_mac.c:151: warning: implicit declaration of function
‘QuitApplicationEventLoop’
tw_mac.c: At top level:
tw_mac.c:169: warning: function declaration isn’t a prototype
tw_mac.c: In function ‘twainSetupMacUI’:
tw_mac.c:169: warning: old-style function definition
tw_mac.c:179: warning: ISO C90 forbids mixed declarations and code
tw_mac.c:186: warning: pointer targets in passing argument 2 of
‘CFURLCreateFromFileSystemRepresentation’ differ in signedness
tw_mac.c:189: warning: ISO C90 forbids mixed declarations and code
tw_mac.c:195: warning: implicit declaration of function
‘BeginQDContextForApplicationDockTile’
tw_mac.c:195: warning: initialization makes pointer from integer without a cast
tw_mac.c:196: warning: implicit declaration of function
‘EndQDContextForApplicationDockTile’
tw_mac.c:198: warning: implicit declaration of function
‘SetApplicationDockTileImage’
tw_mac.c: At top level:
tw_mac.c:203: warning: function declaration isn’t a prototype
tw_mac.c: In function ‘twainMain’:
tw_mac.c:203: warning: old-style function definition
tw_mac.c:224: warning: implicit declaration of function
‘RunApplicationEventLoop’
CCLD twain
Undefined symbols:
"_EndQDContextForApplicationDockTile", referenced from:
_twainSetupMacUI in tw_mac.o
"_BeginQDContextForApplicationDockTile", referenced from:
_twainSetupMacUI in tw_mac.o
"_SetApplicationDockTileImage", referenced from:
_twainSetupMacUI in tw_mac.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Compiling GIMP on Snow Leopard
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
Date: Tue Jun 1 20:45:46 2010 +0200
Add --without-mac-twain to configure
/ Martin
Compiling GIMP on Snow Leopard
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
Compiling GIMP on Snow Leopard
On Tue, Jun 1, 2010 at 22:05, Sven Neumann 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.
Compiling GIMP on Snow Leopard
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
Compiling GIMP on Snow Leopard
On Tue, Jun 1, 2010 at 23:58, Sven Neumann 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