It is currently Fri Oct 20, 2017 10:10 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 37 posts ]  Go to page Previous  1, 2, 3, 4  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: 691
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: 691
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

Joined: May 16, 2010
Posts: 13982
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.


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

Joined: May 16, 2010
Posts: 13982
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


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

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


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

Joined: May 16, 2010
Posts: 13982
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?


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

Joined: May 16, 2010
Posts: 13982
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) :)


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts How could I compile...

3

No new posts Could someone compile this for windows 32 bit?

2

No new posts Gimp 2.9.5 gmic_gimp_gtk compile

1

No new posts Help needed to compile 'Freetype 2.6.5' for Win

3



* Login  



Powered by phpBB3 © phpBB Group