GIMP for Mac

can't compile refocus for macports gimp

Installation and Mac OS specific issues.

Re: can't compile refocus for macports gimp

Postby komiapoika » Sat May 24, 2008 12:40 am

omg... I made it through config!! :)

You were right I just had to remove the -l.

Now I get a bloody error at make:

Making all in gimp-plugin
if gcc -DLOCALEDIR=\"/opt/local/gimp-plugin/share/locale\" -DDATADIR=\""/opt/local/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
make[2]: *** [main-gimp.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Do I still need gettext from source?
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 » Sat May 24, 2008 12:48 am

ok, I think you'll need to edit main-gimp.c and add the following line somehwere near the top :

Code: Select all
#include <locale.h>


though this is weird, are you build the 2.0 one? It worked fine on my computer
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 » Sat May 24, 2008 1:01 am

ok I upgraded my error to:

Making all in cmd-line
if gcc -DLOCALEDIR=\"/opt/local/gimp-plugin/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I../cmd-line -I../src -g -O2 -Wall -MT main-cmd.o -MD -MP -MF ".deps/main-cmd.Tpo" \
-c -o main-cmd.o `test -f 'main-cmd.c' || echo './'`main-cmd.c; \
then mv -f ".deps/main-cmd.Tpo" ".deps/main-cmd.Po"; \
else rm -f ".deps/main-cmd.Tpo"; exit 1; \
fi
main-cmd.c: In function 'main':
main-cmd.c:755: warning: implicit declaration of function 'setlocale'
main-cmd.c:755: error: 'LC_CTYPE' undeclared (first use in this function)
main-cmd.c:755: error: (Each undeclared identifier is reported only once
main-cmd.c:755: error: for each function it appears in.)
main-cmd.c:756: error: 'LC_MESSAGES' undeclared (first use in this function)
make[2]: *** [main-cmd.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Yes this is all trying to build refocus-it-2.0.0

I so wish there would be a gimp-registry package like in Debian/Ubuntu with all the extra Gimp plugins in one install!
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 1:10 am

Ok you likely need to do the same thing in file 'main-cmd.c'

I will seriously consider a plug-in repository for the mac version of GIMP once the native version is out. The main problem would be finding people willing to build them, but I guess if I set up an easy procedure it could work (a lot of work)
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 » Sat May 24, 2008 1:34 am

Okay, that last one fixed it, I made sudo make install and it's now installed.

I can see only motion focus, does that plugin support focus blur too?

Anyway, I am testing it right now and it crashes itself, not modifying the picture when I press ok :( :(
:wilber:
komiapoika
Newbie
 
Posts: 34
Joined: Wed May 14, 2008 2:18 pm

Re: can't compile refocus for macports gimp

Postby komiapoika » Mon May 26, 2008 2:12 am

refocus-it does work, it's just slow.

check out examples on the website:

http://refocus-it.sourceforge.net/
===
The Refocus-it GIMP plug-in, released under GNU General Public License (GPL), can be used to refocus images acquired by a defocused camera, blurred by gaussian or motion blur or any combination of these.
===

We've tried many things to build refocus 0.9 but even with the Linux patches for Gimp 2.* it didn't work.
komiapoika
Newbie
 
Posts: 34
Joined: Wed May 14, 2008 2:18 pm

Re: can't compile refocus for macports gimp

Postby komiapoika » Wed Mar 14, 2012 1:21 pm

Just wanted to say I came back to this thread reinstalling refocus-it on macports gimp 2.7 in MacOS X Lion. All I had to do was add the locale.h in those two files and manually copy the plugins into home dir/.gimp-2.7/plug-ins.
:D
komiapoika
Newbie
 
Posts: 34
Joined: Wed May 14, 2008 2:18 pm

Re: can't compile refocus for macports gimp

Postby Arzoroc » Wed Mar 14, 2012 2:09 pm

:D Well, it took almost 4 years but there we go!!
Inactive.
Spoiler: show
Willy wrote:arzorac

Maffe811 wrote:Arcoroc

David Wood wrote:Arzorac

sagtek wrote:Arzonic

Legionenigmatics wrote:azornac

Cyrilshark wrote:Argzornack, I still have to congratulate you on having the most epic signature ever. haha

*bow*
User avatar
Arzoroc
Global Moderator
 
Posts: 2199
Joined: Mon Oct 12, 2009 1:34 pm

Re: can't compile refocus for macports gimp

Postby komiapoika » Wed Mar 14, 2012 2:23 pm

I did it then but when I had to do it again, nothing was easier than follow the same steps! Saved me a lot of headache ;)
:wilber:
komiapoika
Newbie
 
Posts: 34
Joined: Wed May 14, 2008 2:18 pm

Re: can't compile refocus for macports gimp

Postby Arzoroc » Wed Mar 14, 2012 6:24 pm

Ah, okay I misread that post then :P Nevermind.
Inactive.
Spoiler: show
Willy wrote:arzorac

Maffe811 wrote:Arcoroc

David Wood wrote:Arzorac

sagtek wrote:Arzonic

Legionenigmatics wrote:azornac

Cyrilshark wrote:Argzornack, I still have to congratulate you on having the most epic signature ever. haha

*bow*
User avatar
Arzoroc
Global Moderator
 
Posts: 2199
Joined: Mon Oct 12, 2009 1:34 pm

Previous

Return to GIMP for Mac

Who is online

Users browsing this forum: No registered users and 4 guests