GIMP for Mac

can't compile refocus for macports gimp

Installation and Mac OS specific issues.

can't compile refocus for macports gimp

Postby komiapoika » Tue May 20, 2008 5:41 pm

Hello

On my Kubuntu pc, to get refocus and other great plugins, one just has to apt-get install gimp-registry. However, no such package on Macports.

So, I need the refocus plugin. When I try to compile version 0.9, I get: checking for GIMP - version >= 1.2.0... no
*** The gimptool script installed by GIMP could not be found
*** If GIMP was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GIMPTOOL environment variable to the
*** full path to gimptool.
at configure and then:

$ make install-bin
cd src; make install-bin
gcc -DPACKAGE=\"refocus\" -DVERSION=\"0.9.0\" -DSTDC_HEADERS=1 -DHAVE_ERF=1  -I. -I.  -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pixman-1    -I ../lib    -Wall -ansi -pedantic -ggdb -fomit-frame-pointer -O3 -funroll-all-loops -c refocus.c
refocus.c:27:26: error: libgimp/gimp.h: No such file or directory
In file included from refocus.c:32:
gimppreview.h:29:28: error: libgimp/gimpui.h: No such file or directory
In file included from refocus.c:32:
gimppreview.h:58: error: syntax error before 'GimpDrawable'
gimppreview.h:58: warning: no semicolon at end of struct or union
gimppreview.h:75: error: syntax error before '}' token
gimppreview.h:75: warning: ISO C does not allow extra ';' outside of a function
gimppreview.h:111: error: syntax error before '*' token
gimppreview.h:112: error: syntax error before '*' token
gimppreview.h:119: error: syntax error before 'GimpImageType'
gimppreview.h:124: error: syntax error before 'GimpImageType'
In file included from refocus.c:34:
prevman.h:45: error: syntax error before 'GimpDrawable'
prevman.h:45: warning: no semicolon at end of struct or union
(and it goes on like this)

at build.

When I try to compile refocus-it 2.0, configure works, but then at make I get:

Making all in gimp-plugin
if gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DDATADIR=\""/usr/local/share/"\" -DHAVE_CONFIG_H -I. -I. -I.. -I../gimp_plugin -I../src -DXTHREADS -I/opt/local/include/gimp-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pixman-1    -g -O2 -Wall -MT main-gimp.o -MD -MP -MF ".deps/main-gimp.Tpo" \
          -c -o main-gimp.o `test -f 'main-gimp.c' || echo './'`main-gimp.c; \
        then mv -f ".deps/main-gimp.Tpo" ".deps/main-gimp.Po"; \
        else rm -f ".deps/main-gimp.Tpo"; exit 1; \
        fi
main-gimp.c: In function 'query':
main-gimp.c:365: warning: implicit declaration of function 'setlocale'
main-gimp.c:365: error: 'LC_ALL' undeclared (first use in this function)
main-gimp.c:365: error: (Each undeclared identifier is reported only once
main-gimp.c:365: error: for each function it appears in.)
main-gimp.c: In function 'dialog_parameters_create':
main-gimp.c:489: warning: assignment discards qualifiers from pointer target type
main-gimp.c:490: warning: assignment discards qualifiers from pointer target type
make[2]: *** [main-gimp.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

So, how can I install all of registry plugins on macports or that one in particular?

Thanks in advance for any help
:alien:
Members don't see the above ad. Register now - it's free!
komiapoika
Newbie
 
Posts: 34
Joined: Wed May 14, 2008 2:18 pm

Re: can't compile refocus for macports gimp

Postby Auria » Tue May 20, 2008 6:31 pm

For the first one, the error message says it :

*** The gimptool script installed by GIMP could not be found
*** If GIMP was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GIMPTOOL environment variable to the
*** full path to gimptool.


try

Code: Select all
export GIMPTOOL=/opt/local/bin/gimp-tool #adapt path as needed


For the second, it seems like an error in the code, try contacting the author of the plugin to at least know what's missing
User avatar
Auria
Retired Staff
 
Posts: 479
Joined: Sun Mar 16, 2008 9:07 pm

Re: can't compile refocus for macports gimp

Postby komiapoika » Wed May 21, 2008 6:06 pm

Okay here we go. Trying to compile refocus 0.9 I just upgraded my error to:

creating ./config.status
creating Makefile
creating src/Makefile
creating lib/Makefile
creating doc/Makefile
creating gtk-doc/Makefile
cd src; make install-bin
gcc -DPACKAGE=\"refocus\" -DVERSION=\"0.9.0\" -DSTDC_HEADERS=1 -DHAVE_ERF=1 -I. -I. -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pixman-1 -DXTHREADS -I/opt/local/include/gimp-2.0 -I/opt/local/include/gtk-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pixman-1 -I ../lib -Wall -ansi -pedantic -ggdb -fomit-frame-pointer -O3 -funroll-all-loops -c refocus.c
In file included from /opt/local/include/gimp-2.0/libgimpbase/gimpbase.h:27,
from /opt/local/include/gimp-2.0/libgimp/gimp.h:27,
from refocus.c:27:
/opt/local/include/gimp-2.0/libgimpbase/gimpcpuaccel.h:31: warning: ISO C restricts enumerator values to range of 'int'
In file included from refocus.c:32:
gimppreview.h:36:1: warning: "GIMP_PREVIEW" redefined
In file included from /opt/local/include/gimp-2.0/libgimpwidgets/gimpwidgets.h:65,
from /opt/local/include/gimp-2.0/libgimp/gimpui.h:25,
from gimppreview.h:29,
from refocus.c:32:
/opt/local/include/gimp-2.0/libgimpwidgets/gimppreview.h:34:1: warning: this is the location of the previous definition
In file included from refocus.c:32:
gimppreview.h:37:1: warning: "GIMP_PREVIEW_CLASS" redefined
In file included from /opt/local/include/gimp-2.0/libgimpwidgets/gimpwidgets.h:65,
from /opt/local/include/gimp-2.0/libgimp/gimpui.h:25,
from gimppreview.h:29,
from refocus.c:32:
/opt/local/include/gimp-2.0/libgimpwidgets/gimppreview.h:35:1: warning: this is the location of the previous definition
In file included from refocus.c:32:
gimppreview.h:38:1: warning: "GIMP_IS_PREVIEW" redefined
In file included from /opt/local/include/gimp-2.0/libgimpwidgets/gimpwidgets.h:65,
from /opt/local/include/gimp-2.0/libgimp/gimpui.h:25,
from gimppreview.h:29,
from refocus.c:32:
/opt/local/include/gimp-2.0/libgimpwidgets/gimppreview.h:36:1: warning: this is the location of the previous definition
In file included from refocus.c:32:
gimppreview.h:39:1: warning: "GIMP_IS_PREVIEW_CLASS" redefined
In file included from /opt/local/include/gimp-2.0/libgimpwidgets/gimpwidgets.h:65,
from /opt/local/include/gimp-2.0/libgimp/gimpui.h:25,
from gimppreview.h:29,
from refocus.c:32:
/opt/local/include/gimp-2.0/libgimpwidgets/gimppreview.h:37:1: warning: this is the location of the previous definition
In file included from refocus.c:32:
gimppreview.h:40: error: redefinition of typedef 'GimpPreview'
/opt/local/include/gimp-2.0/libgimpwidgets/gimpwidgetstypes.h:67: error: previous declaration of 'GimpPreview' was here
gimppreview.h:41: error: redefinition of typedef 'GimpPreviewClass'
/opt/local/include/gimp-2.0/libgimpwidgets/gimppreview.h:41: error: previous declaration of 'GimpPreviewClass' was here
gimppreview.h:45: error: redefinition of 'struct _GimpPreviewClass'
gimppreview.h:54: error: redefinition of 'struct _GimpPreview'
refocus.c:60: warning: initialization from incompatible pointer type
refocus.c: In function 'run':
refocus.c:134: error: 'GimpRunModeType' undeclared (first use in this function)
refocus.c:134: error: (Each undeclared identifier is reported only once
refocus.c:134: error: for each function it appears in.)
refocus.c:134: error: syntax error before 'run_mode'
refocus.c:143: error: 'run_mode' undeclared (first use in this function)
refocus.c:189: error: 'struct _GimpDrawable' has no member named 'id'
refocus.c:190: error: 'struct _GimpDrawable' has no member named 'id'
refocus.c: In function 'preview_callback':
refocus.c:414: error: 'struct _GimpDrawable' has no member named 'id'
refocus.c: In function 'doit':
refocus.c:611: error: 'struct _GimpDrawable' has no member named 'id'
refocus.c:621: error: 'struct _GimpDrawable' has no member named 'id'
refocus.c:622: error: 'struct _GimpDrawable' has no member named 'id'
make[1]: *** [refocus.o] Error 1
make: *** [install-bin] Error 2

any clue?

/desperate
:wilber:
komiapoika
Newbie
 
Posts: 34
Joined: Wed May 14, 2008 2:18 pm

Re: can't compile refocus for macports gimp

Postby Auria » Wed May 21, 2008 11:56 pm

For this one you'll probably need to contact the author of the plug-in, it seems like a problem in the code to me (missing include if you know what it means) I see no error directly linked to the environment
User avatar
Auria
Retired Staff
 
Posts: 479
Joined: Sun Mar 16, 2008 9:07 pm

Re: can't compile refocus for macports gimp

Postby komiapoika » Fri May 23, 2008 11:52 am

that plugin (2.0) has been abandoned for over a year now... and the 0.9 one is a plugin for Gimp 1.x anyway.

But I'm ready to look for other solutions, so I'll just ask ... Is there any way to make iterative refocus on MacGimp or on Mac at all? (without Photoshop, that is). I *need* a refocus tool on my Macbook. If possible able to work on 16-bit images.
???
komiapoika
Newbie
 
Posts: 34
Joined: Wed May 14, 2008 2:18 pm

Re: can't compile refocus for macports gimp

Postby Auria » Fri May 23, 2008 2:34 pm

I was able to build the 2.0 version on my computer

I just needed to add this to the configure part :
Code: Select all
./configure --prefix=/opt/gimp-plugin LDFLAGS=-lintl


and the rest is like what is described in viewtopic.php?f=17&t=777&p=7250#p7250 (just adapt path as needed if your gimp install is in /opt/local and not /tmp/skl like us packagers)
User avatar
Auria
Retired Staff
 
Posts: 479
Joined: Sun Mar 16, 2008 9:07 pm

Re: can't compile refocus for macports gimp

Postby komiapoika » Fri May 23, 2008 4:33 pm

ok when i try your exact same line i get:

checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables

at configure.

when I follow the guide from the other thread, I get the same error:

./configure --prefix=/opt/gimp-plugin
...
make:

if gcc -DLOCALEDIR=\"/opt/gimp-plugin/share/locale\" -DDATADIR=\""/opt/gimp-plugin/share/"\" -DHAVE_CONFIG_H -I. -I. -I.. -I../gimp_plugin -I../src -DXTHREADS -I/opt/local/include/gimp-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pixman-1 -g -O2 -Wall -MT main-gimp.o -MD -MP -MF ".deps/main-gimp.Tpo" \
-c -o main-gimp.o `test -f 'main-gimp.c' || echo './'`main-gimp.c; \
then mv -f ".deps/main-gimp.Tpo" ".deps/main-gimp.Po"; \
else rm -f ".deps/main-gimp.Tpo"; exit 1; \
fi
main-gimp.c: In function 'query':
main-gimp.c:365: warning: implicit declaration of function 'setlocale'
main-gimp.c:365: error: 'LC_ALL' undeclared (first use in this function)
main-gimp.c:365: error: (Each undeclared identifier is reported only once
main-gimp.c:365: error: for each function it appears in.)
main-gimp.c: In function 'dialog_parameters_create':
main-gimp.c:489: warning: assignment discards qualifiers from pointer target type
main-gimp.c:490: warning: assignment discards qualifiers from pointer target type

Note that my gimp runs from /opt/local/bin, it's the version built from macports, the only one that supports the other plugins I need (I also noticed my prebuild Gimp crashes when I try to open a file since I built Gimp from source over it, so it's no longer usable at all)

My other plugins are built at the user level and end up in ~/.gimp-2.4/plug-ins. I don't mind that, since I'm the only user on the machine so far.
komiapoika
Newbie
 
Posts: 34
Joined: Wed May 14, 2008 2:18 pm

Re: can't compile refocus for macports gimp

Postby komiapoika » Fri May 23, 2008 4:38 pm

ps: the Gimp I use is in /opt/local/bin:

ls /opt/local/bin/gimp*
/opt/local/bin/gimp /opt/local/bin/gimp-console-2.4 /opt/local/bin/gimptool
/opt/local/bin/gimp-2.4 /opt/local/bin/gimp-remote /opt/local/bin/gimptool-2.0
/opt/local/bin/gimp-console /opt/local/bin/gimp-remote-2.4

I still got the binary Gimp.app in /Applications and that's about it... no gimp-plugin dir, no remaining source...
komiapoika
Newbie
 
Posts: 34
Joined: Wed May 14, 2008 2:18 pm

Re: can't compile refocus for macports gimp

Postby Auria » Fri May 23, 2008 4:51 pm

checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables


Now this is very weird, that's the kind of message you may get when gcc is not installed...

if you export PATH, make sure it is of the form export PATH=$PATH:... as to not override previous values in PATH

otherwise, you'd need to check the configure log generated in the same directory to know what went wrong
User avatar
Auria
Retired Staff
 
Posts: 479
Joined: Sun Mar 16, 2008 9:07 pm

Re: can't compile refocus for macports gimp

Postby komiapoika » Fri May 23, 2008 5:57 pm

here's my config.log with that error:

$ ./configure --prefix=/opt/local/gimp-plugin LDFLAGS=-lintl

## --------- ##
## Platform. ##
## --------- ##

hostname = python
uname -m = i386
uname -r = 9.2.2
uname -s = Darwin
uname -v = Darwin Kernel Version 9.2.2: Tue Mar 4 21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386

/usr/bin/uname -p = i386
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = Mach kernel version:
Darwin Kernel Version 9.2.2: Tue Mar 4 21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 2.00 gigabytes
Default processor set: 74 tasks, 324 threads, 2 processors
Load average: 0.67, Mach factor: 1.32
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /sw/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /usr/X11/bin
## ----------- ##
## Core tests. ##
## ----------- ##

configure:1393: checking for a BSD-compatible install
configure:1448: result: /opt/local/bin/ginstall -c
configure:1459: checking whether build environment is sane
configure:1502: result: yes
configure:1535: checking for gawk
configure:1551: found /opt/local/bin/gawk
configure:1561: result: gawk
configure:1571: checking whether make sets $(MAKE)
configure:1591: result: yes
configure:1759: checking for style of include used by make
configure:1787: result: GNU
configure:1858: checking for gcc
configure:1874: found /usr/bin/gcc
configure:1884: result: gcc
configure:2128: checking for C compiler version
configure:2131: gcc --version </dev/null >&5
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2134: $? = 0
configure:2136: gcc -v </dev/null >&5
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0
/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)
configure:2139: $? = 0
configure:2141: gcc -V </dev/null >&5
gcc-4.0: argument to `-V' is missing
configure:2144: $? = 1
configure:2167: checking for C compiler default output file name
configure:2170: gcc -lintl conftest.c >&5
ld: library not found for -lintl
collect2: ld returned 1 exit status
configure:2173: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "refocus-it"
| #define PACKAGE_TARNAME "refocus-it"
| #define PACKAGE_VERSION "2.0.0"
| #define PACKAGE_STRING "refocus-it 2.0.0"
| #define PACKAGE_BUGREPORT ""Lukas.Kunc@seznam.cz""
| #define PLUGIN_NAME PACKAGE_NAME
| #define PLUGIN_VERSION PACKAGE_VERSION
| #define PLUGIN_MAJOR_VERSION 2
| #define PLUGIN_MINOR_VERSION 0
| #define PLUGIN_MICRO_VERSION 0
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2212: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-lintl
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/opt/local/bin/ginstall -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /Users/h/refocus-it-2.0.0/missing --run aclocal-1.7'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /Users/h/refocus-it-2.0.0/missing --run tar'
AUTOCONF='${SHELL} /Users/h/refocus-it-2.0.0/missing --run autoconf'
AUTOHEADER='${SHELL} /Users/h/refocus-it-2.0.0/missing --run autoheader'
AUTOMAKE='${SHELL} /Users/h/refocus-it-2.0.0/missing --run automake-1.7'
AWK='gawk'
CATALOGS=''
CATOBJEXT=''
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DATADIR=''
DATADIRNAME=''
DEFS=''
DEPDIR='.deps'
ECHO_C='ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
GETTEXT_PACKAGE=''
GIMP_CFLAGS=''
GIMP_LIBDIR=''
GIMP_LIBS=''
GMOFILES=''
GMSGFMT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
INSTOBJEXT=''
INTLLIBS=''
INTLTOOL_CAVES_RULE=''
INTLTOOL_DESKTOP_RULE=''
INTLTOOL_DIRECTORY_RULE=''
INTLTOOL_EXTRACT=''
INTLTOOL_KBD_RULE=''
INTLTOOL_KEYS_RULE=''
INTLTOOL_MERGE=''
INTLTOOL_OAF_RULE=''
INTLTOOL_PERL=''
INTLTOOL_PONG_RULE=''
INTLTOOL_PROP_RULE=''
INTLTOOL_SCHEMAS_RULE=''
INTLTOOL_SERVER_RULE=''
INTLTOOL_SHEET_RULE=''
INTLTOOL_SOUNDLIST_RULE=''
INTLTOOL_THEME_RULE=''
INTLTOOL_UI_RULE=''
INTLTOOL_UPDATE=''
INTLTOOL_XAM_RULE=''
INTLTOOL_XML_RULE=''
LDFLAGS='-lintl'
LIBOBJS=''
LIBS=''
LOCALEDIR=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /Users/h/refocus-it-2.0.0/missing --run makeinfo'
MKINSTALLDIRS=''
MSGFMT=''
OBJEXT=''
PACKAGE='refocus-it'
PACKAGE_BUGREPORT='"Lukas.Kunc@seznam.cz"'
PACKAGE_NAME='refocus-it'
PACKAGE_STRING='refocus-it 2.0.0'
PACKAGE_TARNAME='refocus-it'
PACKAGE_VERSION='2.0.0'
PATH_SEPARATOR=':'
PKG_CONFIG=''
POFILES=''
POSUB=''
PO_IN_DATADIR_FALSE=''
PO_IN_DATADIR_TRUE=''
RANLIB=''
REFOCUS_CMDLINE_FALSE=''
REFOCUS_CMDLINE_TRUE=''
REFOCUS_GIMP_FALSE=''
REFOCUS_GIMP_TRUE=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_NLS=''
VERSION='2.0.0'
XGETTEXT=''
ac_ct_CC='gcc'
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__include='include'
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/Users/h/refocus-it-2.0.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/opt/local/gimp-plugin'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""Lukas.Kunc@seznam.cz""
#define PACKAGE_NAME "refocus-it"
#define PACKAGE_STRING "refocus-it 2.0.0"
#define PACKAGE_TARNAME "refocus-it"
#define PACKAGE_VERSION "2.0.0"
#define PLUGIN_MAJOR_VERSION 2
#define PLUGIN_MICRO_VERSION 0
#define PLUGIN_MINOR_VERSION 0
#define PLUGIN_NAME PACKAGE_NAME
#define PLUGIN_VERSION PACKAGE_VERSION

configure: exit 77
komiapoika
Newbie
 
Posts: 34
Joined: Wed May 14, 2008 2:18 pm

Re: can't compile refocus for macports gimp

Postby Auria » Fri May 23, 2008 6:32 pm

Ah, I see, it happens because it does not find libintl

Try something like this :

./configure --prefix=/opt/local/gimp-plugin LDFLAGS="-L/opt/local/lib -lintl"

(that's assuming gettext was installed with macports. but if you have gimp installed gettext will very likely be installed too)
User avatar
Auria
Retired Staff
 
Posts: 479
Joined: Sun Mar 16, 2008 9:07 pm

Re: can't compile refocus for macports gimp

Postby komiapoika » Fri May 23, 2008 7:12 pm

I do have gettext installed from macports.

./configure --prefix=/opt/local/gimp-plugin LDFLAGS="-L /opt/local/lib -lintl"

still gives the same error, should I repost the config.log?
komiapoika
Newbie
 
Posts: 34
Joined: Wed May 14, 2008 2:18 pm

Re: can't compile refocus for macports gimp

Postby Auria » Fri May 23, 2008 11:12 pm

What is important to check, is whether config.log still says "ld: library not found for -lintl" somewhere

The line you used is not exatly the one I posted, I don't think there is a space after -L

In the worst case, you could build and install gettext from source manually in /usr/local. But really passing the path to configurue should make it.

Perhaps you can also pass an absolute path :
./configure --prefix=/opt/local/gimp-plugin LDFLAGS="-l/opt/local/lib/intl.a" (by adapting library name as needed to match that of a real file)
User avatar
Auria
Retired Staff
 
Posts: 479
Joined: Sun Mar 16, 2008 9:07 pm

Re: can't compile refocus for macports gimp

Postby komiapoika » Fri May 23, 2008 11:42 pm

yes, the config.log still says:

configure:2170: gcc -L /opt/local/lib -lintl conftest.c >&5
ld: library not found for -lintl
collect2: ld returned 1 exit status
configure:2173: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "refocus-it"
| #define PACKAGE_TARNAME "refocus-it"
| #define PACKAGE_VERSION "2.0.0"
| #define PACKAGE_STRING "refocus-it 2.0.0"
| #define PACKAGE_BUGREPORT ""Lukas.Kunc@seznam.cz""
| #define PLUGIN_NAME PACKAGE_NAME
| #define PLUGIN_VERSION PACKAGE_VERSION
| #define PLUGIN_MAJOR_VERSION 2
| #define PLUGIN_MINOR_VERSION 0
| #define PLUGIN_MICRO_VERSION 0
| /* end confdefs.h. */
|
| int
...

I just deinstalled and reinstalled gettext gettext 0.17_3 from macports. There's like two dozens of dependencies on my system, amongst which Gimp. If I build gettext from source will it break any of them?

I don't have any intl.a file on my system even tho I do have intltool port active... Oh wait it's called libintl.a, let me try

I get the same error:

configure:2170: gcc -l /opt/local/lib/libintl.a conftest.c >&5
ld: library not found for -l/opt/local/lib/libintl.a
collect2: ld returned 1 exit status
configure:2173: $? = 1

Even tho I typed:

./configure --prefix=/opt/local/gimp-plugin LDFLAGS="-l /opt/local/lib/libintl.a"

and the file exists:

$ ls /opt/local/lib/libintl.a
/opt/local/lib/libintl.a

Why do so bad things happen to me when everyone else seems to be able to compile easily??

Darwin python 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar 4 21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386 i386
komiapoika
Newbie
 
Posts: 34
Joined: Wed May 14, 2008 2:18 pm

Re: can't compile refocus for macports gimp

Postby Auria » Sat May 24, 2008 12:15 am

It's very weird that it says the file doesn't exist while it does :/ I never saw this problem
(EDIT: ah no it is not, I just understood: it doesn't find the file cause it searches for a file named '-l/opt/local/lib/libintl.a' with '-l' as part of the filename. remove the '-l' when you specify the full path)

But you are still putting a space between -L/-l and the argument. As I said I'm pretty sure there is none. like -L/opt/local/lib (no space). Also when you specify the full path to a library, I don't believe you need the -l flag, just the name of the lib alone should do

Building and installing gettext from source is very unlikely to break anything on your system or any existing installation
User avatar
Auria
Retired Staff
 
Posts: 479
Joined: Sun Mar 16, 2008 9:07 pm

Next

Return to GIMP for Mac

Who is online

Users browsing this forum: No registered users and 3 guests