It is currently Tue Apr 16, 2024 10:49 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Wed Nov 16, 2011 2:15 pm  (#11) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Rod-

Are you compiling under Linux for Linux, Under Windows (using MinGW and MSYS) for Windows or under Linux for Windows (cross-compiled)?

I'd really like to find a guide for the third.....

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Wed Nov 16, 2011 10:06 pm  (#12) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
RobA wrote:
Rod-

Are you compiling under Linux for Linux, Under Windows (using MinGW and MSYS) for Windows or under Linux for Windows (cross-compiled)?

I'd really like to find a guide for the third.....

-Rob A>

Rob,

Silly question... Why bother? If you have windows, why not compile on Windows? Unless you are compiling for friends and you don't have windows?

Thanks,
Partha


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Wed Nov 16, 2011 10:29 pm  (#13) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
partha wrote:
RobA wrote:
Rod-

Are you compiling under Linux for Linux, Under Windows (using MinGW and MSYS) for Windows or under Linux for Windows (cross-compiled)?

I'd really like to find a guide for the third.....

-Rob A>

Rob,

Silly question... Why bother? If you have windows, why not compile on Windows? Unless you are compiling for friends and you don't have windows?

Thanks,
Partha


A few reasons _ can think of-

1) Because setting up a full dev environment under windows is a pain (in my experience)
2) Because using git under windows is a pain (also in my experience)
3) Because if I want to actually contribute to gimp through coding/bug fixing, I was hoping to only maintain one codebase.
4) Because that is (according to responses on the gimp dev IRC) the way the "semi-official" windows version of gimp are made.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 3:45 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
@ Partha - thanks again!
@ Rob i am compiling under Windows with MinGW and MSYS. :)
@ PC i will have all this included in my compile.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 4:44 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Partha -
Windows doesn't like the GetUserDefaultUILanguage in the language.c file.
It looks like it uses a hack in Python to try and get by this.

The Error
  AR     libapp.a
  CCLD   gimp-2.7.exe
language.o: In function `language_init':
c:\src\gimp-nightly-builds\gimp-2.7.4\app/language.c:50: undefined reference to `GetUserDefaultUILanguage'
collect2: ld returned 1 exit status
make[3]: *** [gimp-2.7.exe] Error 1
make[3]: Leaving directory `/c/src/gimp-nightly-builds/gimp-2.7.4/app'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/c/src/gimp-nightly-builds/gimp-2.7.4/app'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/c/src/gimp-nightly-builds/gimp-2.7.4/app'
make: *** [install-recursive] Error 1

Compaq_Owner@Family-Room /c/src/gimp-nightly-builds/gimp-2.7.4
$


Do i define as
#define language_init G_OS_WIN32

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 5:36 am  (#16) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
Rod wrote:
Partha -
Windows doesn't like the GetUserDefaultUILanguage in the language.c file.
It looks like it uses a hack in Python to try and get by this.

The Error
...
Compaq_Owner@Family-Room /c/src/gimp-nightly-builds/gimp-2.7.4
$


Do i define as
#define language_init G_OS_WIN32


Rod,

in the source app/language.c (around line 300), do the following:
//    switch (GetUserDefaultUILanguage())
         switch (GetUserDefaultLangID())


One additional issue you are going to face if you are building in lcms is that it will not compile.
So, In the source modules/display-filter-lcms.c, do the following.

//#ifdef G_OS_WIN32
//#define STRICT
//#include <windows.h>
//#define LCMS_WIN_TYPES_ALREADY_DEFINED
//#endif

#include <windows.h>


Let me know what happens.

Partha


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 2:31 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks Partha.
I will let you know.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 5:37 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I added the line at #300 and it needed it to contain all the case statements so i commented out the first function and added yours at the beginning and it worked. :)

I also had to add
#define libintl_printf printf

to the file-sgi.c file ,and now i think it is installing correctly *cross fingers*
We need a crosses fingers/knock on wood emoticon. :lol

What is the lt_debugprintf warning that keeps popping up?It doesn't terminate install but keeps showing itself in the plug-ins files.
Is that a Libtool warning?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 5:57 pm  (#19) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
Rod wrote:
I added the line at #300 and it needed it to contain all the case statements so i commented out the first function and added yours at the beginning and it worked. :)

I also had to add
#define libintl_printf printf

to the file-sgi.c file ,and now i think it is installing correctly *cross fingers*
We need a crosses fingers/knock on wood emoticon. :lol

I usually avoid adding #defines in a file since then you are stuck sitting there and waiting for some definition to fail. So, I pass it in the ./configure line. I add
-Dlibintl_printf=printf

etc. to the end of ./configure.
Quote:
What is the lt_debugprintf warning that keeps popping up?It doesn't terminate install but keeps showing itself in the plug-ins files.
Is that a Libtool warning?

its a warning by gcc in Msys. Don't worry about it. You can safely ignore it.


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 8:03 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Great that works better. :)
I also am trying an experiment with my first compile.
New larger preview sizes -
Tile small = 256x256
Gimpressionist = 240x400
IWarp = 300x300
Should all have larger preview windows.

@ PC - Which plugin previews did you already compile for windows?



I decided to re-configure and the do the install adding the define printf to the command line for ./configure, (so i do not have to babysit too much) :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 8:28 pm  (#21) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Hey Partha how did you add the apng file in?
Did you install it after compiling Gimp-2.7.4 or during?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 9:09 pm  (#22) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
@rod i saw only now your message

were
Small tiles
map to object
fractal trace
depth merge
lighting effect
fractal explorer

do you want me search for the code ?( i believe is on box.net i may look

i remember that for some was a pain find the right lines

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 9:26 pm  (#23) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
PhotoComix wrote:
@rod i saw only now your message

were
Small tiles
map to object
fractal trace
depth merge
lighting effect
fractal explorer

do you want me search for the code ?( i believe is on box.net i may look

i remember that for some was a pain find the right lines


PC are all those compiled for windows already?
I just want to compile the ones that are still NOT compiled for windows. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 9:28 pm  (#24) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
Rod wrote:
Hey Partha how did you add the apng file in?
Did you install it after compiling Gimp-2.7.4 or during?

No, I added it to the source tree. But you can compile it after as well.


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 9:43 pm  (#25) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
are not compiled for 2.6
are compiled for 2,7 and included with the Partha build, ( i didn't look in the last but i imagine are still there )

About other plugin there is the mysterious Van Gogh plugin that is in Artistic filter,( but is not a artistic filter does something close to a blur or fog effect...but here the problem is not that the preview is too little , but that is not: there is no any preview (and that in my opinion make totally useless a filter already not too useful )

the other have no problems with preview

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 10:13 pm  (#26) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
partha wrote:
Rod wrote:
Hey Partha how did you add the apng file in?
Did you install it after compiling Gimp-2.7.4 or during?

No, I added it to the source tree. But you can compile it after as well.


Would you place the src files in the plug-ins/common folder for that?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Thu Nov 17, 2011 10:41 pm  (#27) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
Rod wrote:
partha wrote:
Rod wrote:
Hey Partha how did you add the apng file in?
Did you install it after compiling Gimp-2.7.4 or during?

No, I added it to the source tree. But you can compile it after as well.


Would you place the src files in the plug-ins/common folder for that?

Rob,

Did you patch libpng to be able use apng? If not, you are probably better off first getting a successful compile. Then we can worry about apng. Send me an email and we can take the conversation offline.

Thanks,
Partha


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Fri Nov 18, 2011 12:11 am  (#28) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
email sent Partha, thanks again. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Fri Nov 18, 2011 2:40 am  (#29) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Check it out ... i compiled my first Gimp-2.7.4!
http://simplysignage.110mb.com/blog/blo ... 118-090543

You will find more Gimp-2.7.4 plugins in the left menu also. :)
I will be doing much, much more in the future.

My build environment is setup for Gimp-2.7 though so nothing Gimp-2.6 will be compiled.
SamJ does most of those anyways.

Peace!

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: My first Gimp-2.7.4 compile
PostPosted: Fri Nov 18, 2011 8:21 am  (#30) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
great Rod
..maybe you want try with gimpainter ?
http://git.sourceforge.jp/view?p=gimp-p ... ;a=summary

now the pressure issue with the tablet should be fix so have gimpainter compiled for 2,7 would be cool
the gimpainter source should be keep in sync with the gimp 2.7 git

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts SOLVED - Help with compile env

12

No new posts Attachment(s) I need a Mac Dev to compile my Gimp GEGL Plugins on Mac

8

No new posts Attachment(s) Pattern Monster (Cloud and Local version) and how to compile it.

3



* Login  



Powered by phpBB3 © phpBB Group