It is currently Sun Nov 15, 2026 10:12 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 70 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: @samj
PostPosted: Mon Apr 29, 2013 7:29 am  (#41) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
@Dinasset

I'm testing on a old 32-bit machine and I have some problems (It's been years that I no longer uses 32-bit versions).
I will create or retrieve an environment for this machine and give it to you.
It will be easier for me.


Top
 Post subject: Re: @samj
PostPosted: Mon Apr 29, 2013 7:32 am  (#42) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
merci...merci...merci

_________________
"Where am I ?"


Top
 Post subject: Re: @samj
PostPosted: Mon Apr 29, 2013 7:45 am  (#43) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16271
samj wrote:
@Dinasset

I'm testing on a old 32-bit machine and I have some problems (It's been years that I no longer uses 32-bit versions).
I will create or retrieve an environment for this machine and give it to you.
It will be easier for me.


Me too...me too please? :)
Sadly i still can not get this old school 32 bit environment going.

_________________
Image


Top
 Post subject: Re: @samj
PostPosted: Mon Apr 29, 2013 9:24 am  (#44) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
Samj - moi aussi - je suis très intéressé par - votre version!
(Il contient une compilation de GMIC?)

_________________
Image


Top
 Post subject: Re: @samj
PostPosted: Mon Apr 29, 2013 10:30 am  (#45) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16271
MareroQ wrote:
Samj - moi aussi - je suis très intéressé par - votre version!
(Il contient une compilation de GMIC?) English -Samj - me too - I'm very interested in - your version!
(It contains a compilation of GMIC?)


This is a compile environment MareriQ that Sam is putting together for Windows 32 bit. :bigthup
It isn't a Gimp release.

Or maybe i took your reply in the wrong way. :puzzled

_________________
Image


Top
 Post subject: Re: @samj
PostPosted: Mon Apr 29, 2013 12:26 pm  (#46) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

I was able to modify and test the environment created by Oleg Blazhyievskyi for early versions Gimp 2.7.
This environment works on my old computer running XP 32-bit.

You need to unpack the archive msys-mingw-gimp.7z in C: \

*****

There are two examples

To compile vignetting.c :
- start MSYS by start_MSYS.bat
- cd /env
- gimptool-2.0 --build /env/vignetting.c


To compile gimp-plugin-template :
- start MSYS by start_MSYS.bat
- cd /env/gimp-plugin-template-2.2.0
- ./configure
- make

*****

Important
Depending on the configuration, updating, etc.. edit files :
C:\msys-mingw-gimp\msys\1.0\etc\fstab
C:\msys-mingw-gimp\msys\1.0\etc\profile

*****

Download :

http://www.aljacom.com/~gmic/msys-mingw-gimp.7z
168 193 465 bytes
md5: fefe273faff28883fb54487a8ceecca6


Top
 Post subject: Re: @samj
PostPosted: Mon Apr 29, 2013 12:32 pm  (#47) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
@MareroQ

I have no more 32-bit environment. I only use versions MinGW64 to compile in a 64-bit Win environment.


Top
 Post subject: Re: @samj
PostPosted: Mon Apr 29, 2013 1:06 pm  (#48) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
@Samj
un très grand merci!
now I started again the game, I'll let you now my results...

_________________
"Where am I ?"


Top
 Post subject: Re: @samj
PostPosted: Mon Apr 29, 2013 1:43 pm  (#49) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
@Samj
downloaded, MD5-checked, unzipped under c:\
compiled vignetting
OK! OK! OK! I got vignetting.exe
Vous étes an ange (sorry for the wrong accent, I don't have the correct one...)
I didn't change anything on fstab and profile; in which case in the future should I do some change? With the example everything worked fine
Merci

_________________
"Where am I ?"


Top
 Post subject: Re: @samj
PostPosted: Mon Apr 29, 2013 1:54 pm  (#50) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Merci Dinasset :tyspin

This is a good start :jumpclap
To develop this system, we must understand how the two files work ( C:\msys-mingw-gimp\msys\1.0\etc\fstab & C:\msys-mingw-gimp\msys\1.0\etc\profile ).

Merci et bon courage :)


Top
 Post subject: Re: @samj
PostPosted: Mon Apr 29, 2013 2:07 pm  (#51) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
Merci encore et bonne soirée.
I'm so happy with this start that I stop here for today.

_________________
"Where am I ?"


Top
 Post subject: Re: @samj
PostPosted: Mon Apr 29, 2013 2:33 pm  (#52) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16271
Sam you Rock.Thank you very much.
dinasset you will want to study this env and get to know it as best you can.If fstab and profile are working as is i would keep it that way.Windows is very touchy.There will be some plugins that ask for other libraries.You will learn as you go.

whew.. now i can stop pulling the hair out of my head trying to get this running.

Thanks Sam! :ffy :rfy

_________________
Image


Top
 Post subject: Re: @samj
PostPosted: Mon Apr 29, 2013 3:02 pm  (#53) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
:tyspin Rod.

Like you, I think it is a good start to learn.


Top
 Post subject: Re: @samj
PostPosted: Tue Apr 30, 2013 1:59 pm  (#54) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
Bonsoir
I wanted to give an additional try to the environment just installed, but I was unlucky, id est:
- downloaded max-rgb.c build unsuccessful
- downloaded edge-neon.c build unsuccessful
- downloaded color-enhance.c same as above
it seems there are missing pieces in the environment:
-config.h
-stdplugins-intl.h
and other syntax errors (maybe caused by the previous ones) like "expected gchar but argument is int"
any recommendation?
Thanks...

_________________
"Where am I ?"


Top
 Post subject: Re: @samj
PostPosted: Tue Apr 30, 2013 2:16 pm  (#55) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16271
dinasset wrote:
Bonsoir
I wanted to give an additional try to the environment just installed, but I was unlucky, id est:
- downloaded max-rgb.c build unsuccessful
- downloaded edge-neon.c build unsuccessful
- downloaded color-enhance.c same as above
it seems there are missing pieces in the environment:
-config.h
-stdplugins-intl.h
and other syntax errors (maybe caused by the previous ones) like "expected gchar but argument is int"
any recommendation?
Thanks...

For max-rgb.c plugin.
If you look at the file in Notepad ++ or similar text editor that supports c src code you will see this
27 #include "config.h"
28
29 #include <libgimp/gimp.h> < the c file is looking in the libgimp directory for this file.
30 #include <libgimp/gimpui.h>
31
32 #include "libgimp/stdplugins-intl.h"
33
34
35 #define PLUG_IN_PROC "plug-in-max-rgb"
36 #define PLUG_IN_BINARY "max-rgb"
37 #define PLUG_IN_ROLE "gimp-max-rgb"

#include ( 30 #include <libgimp/gimpui.h> ) means the plugin will look for that h file in the libgimp/directory usually found in include/gimp-2.0/

You would want to create another directory libgimp in the folder where the c plugin is and copy the stdplugins.h file in there.Run the compiler again.

_________________
Image


Top
 Post subject: Re: @samj
PostPosted: Tue Apr 30, 2013 2:23 pm  (#56) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
so, should I find what is missing browsing GNOME, download it and put into the folder "include" where others *.h are? or what?

_________________
"Where am I ?"


Top
 Post subject: Re: @samj
PostPosted: Tue Apr 30, 2013 2:27 pm  (#57) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16271
dinasset wrote:
so, should I find what is missing browsing GNOME, download it and put into the folder "include" where others *.h are? or what?

You should first look in that folder and see what is there already.It may be there but the plugin isn't finding it.
Hence why i say create another libgimp directory and place copies of the h files in there.Then the c file will find them.Just make sure to create that directory in the same folder as the c file.

_________________
Image


Top
 Post subject: Re: @samj
PostPosted: Tue Apr 30, 2013 2:27 pm  (#58) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16271
This way after you can delete or keep the created structure and not mess up the previous environment.

_________________
Image


Top
 Post subject: Re: @samj
PostPosted: Tue Apr 30, 2013 2:32 pm  (#59) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16271
Search your msys directory for those h files you need and create directories appropriately for them.
libgimp/stdplugins.h,gimp.h, gimpui.h
place a copy of the config.h in the same folder as the c file.

Run the compiler.

EDIT: After trying this myself i believe these plugins are too old for the env to compile.

$ gimptool-2.0 --build /env/max-rgb.c
gcc -pipe -O3 -mms-bitfields -march=i686 -s -mms-bitfields -Ic:/msys-mingw-gimp/
MinGW/include/gimp-2.0 -Ic:/msys-mingw-gimp/MinGW/include/gtk-2.0 -Ic:/msys-ming
w-gimp/MinGW/include/glib-2.0 -Ic:/msys-mingw-gimp/MinGW/lib/glib-2.0/include -I
c:/msys-mingw-gimp/MinGW/lib/gtk-2.0/include -Ic:/msys-mingw-gimp/MinGW/include/
atk-1.0 -Ic:/msys-mingw-gimp/MinGW/include/cairo -Ic:/msys-mingw-gimp/MinGW/incl
ude/pango-1.0 -Ic:/msys-mingw-gimp/MinGW/include/freetype2 -Ic:/msys-mingw-gimp/
MinGW/include -Ic:/msys-mingw-gimp/MinGW/include/libpng12   -o max-rgb.exe c:/ms
ys-mingw-gimp/max-rgb.c -mwindows -mwindows -Lc:/msys-mingw-gimp/MinGW/lib -lgim
pui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfi
g-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -
lgio-2.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0
-lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl
c:/msys-mingw-gimp/max-rgb.c:1: error: expected identifier or '(' before numeric
constant
c:/msys-mingw-gimp/max-rgb.c:27: error: stray '#' in program
c:/msys-mingw-gimp/max-rgb.c:29: error: stray '#' in program
c:/msys-mingw-gimp/max-rgb.c:30: error: stray '#' in program
c:/msys-mingw-gimp/max-rgb.c:32: error: stray '#' in program
c:/msys-mingw-gimp/max-rgb.c:35: error: stray '#' in program
c:/msys-mingw-gimp/max-rgb.c:36: error: stray '#' in program
c:/msys-mingw-gimp/max-rgb.c:37: error: stray '#' in program
c:/msys-mingw-gimp/max-rgb.c:41: error: expected identifier or '(' before numeri
c constant
c:/msys-mingw-gimp/max-rgb.c:46: error: expected identifier or '(' before numeri
c constant
c:/msys-mingw-gimp/max-rgb.c:49: error: expected identifier or '(' before numeri
c constant
c:/msys-mingw-gimp/max-rgb.c:51: error: expected identifier or '(' before numeri
c constant
c:/msys-mingw-gimp/max-rgb.c:59: error: expected identifier or '(' before numeri
c constant
c:/msys-mingw-gimp/max-rgb.c:65: error: expected identifier or '(' before numeri
c constant
c:/msys-mingw-gimp/max-rgb.c:69: warning: data definition has no type or storage
class
c:/msys-mingw-gimp/max-rgb.c:70: error: expected identifier or '(' before numeri
c constant
c:/msys-mingw-gimp/max-rgb.c:75: error: expected identifier or '(' before numeri
c constant
c:/msys-mingw-gimp/max-rgb.c:103: error: expected identifier or '(' before numer
ic constant
c:/msys-mingw-gimp/max-rgb.c:158: error: expected identifier or '(' before numer
ic constant
c:/msys-mingw-gimp/max-rgb.c:164: warning: data definition has no type or storag
e class
c:/msys-mingw-gimp/max-rgb.c:165: error: expected identifier or '(' before numer
ic constant
c:/msys-mingw-gimp/max-rgb.c:197: error: expected identifier or '(' before numer
ic constant
c:/msys-mingw-gimp/max-rgb.c:243: error: expected identifier or '(' before numer
ic constant

_________________
Image


Top
 Post subject: Re: @samj
PostPosted: Tue Apr 30, 2013 2:35 pm  (#60) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
in the current (untouched) structure of files, all the *.h which do not initiate with gimp are placed directly under MinGW/include, NOT under MinGW/include/gimp-2.0, so maybe it's better to keep this structure and add in there the (for instance) stdplugins-intl.h ...

_________________
"Where am I ?"


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

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group