It is currently Fri Mar 29, 2024 8:23 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 17 posts ] 
Author Message
 Post subject: Maze 5-0.8.1
PostPosted: Sun Nov 20, 2011 12:31 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I am trying to compile this for Windows 32 bit.In order to install you need to install Scons first.A build utility.

So i downloaded the local version of Scons and by just copying those files into a package of src files i want to compile i can then open Msys terminal , cd to the directory, and type
python scons.py
This works excellent, but for some reason the utility can not find my cairo header files.
cairo-pdf.h and cairo-svg.h

My question is this
Is there a way to add a path to either my profile file, or to the Windows xp environment variable that will allow Scons to find those header files in my Cairo directory?
/opt/include/cairo or usr/gtk/include/cairo ?


Any help would be greatly appreciated.
Thanks.

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


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Maze 5-0.8.1
PostPosted: Sun Nov 20, 2011 12:40 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12513
I vaguely remembered compiling this cool plugin many years ago in Linux and you needed to separately have Cairo installed as I recall. Believe samj actually compiled the last version for Windows GIMP so you can ask her. Not sure if she ever compiled the new version or not but believe I sort have hinted that to her a few months back. :)

Some recent threads started at the registry too:

http://registry.gimp.org/node/25281

http://registry.gimp.org/node/25235#comment-11524 (samj's entry).

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Maze 5-0.8.1
PostPosted: Sun Nov 20, 2011 12:46 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12513
By the way, if you get 5-0.8.1 working for Window's GIMP, I would be much abliged to test it with GIMP 2.6.11 Rod. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Maze 5-0.8.1
PostPosted: Sun Nov 20, 2011 1:46 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks for the info Lyle.Guess i will have to talk to SamJ then.
If i get it compiled i will indeed send you a link to download and test the plugin. :)

_________________
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: Maze 5-0.8.1
PostPosted: Sun Nov 20, 2011 9:51 am  (#5) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2414
This one might be difficult in windows, it needs perl. Not too difficult in Mepis11 (Debian)

The compilation uses a perl script 'xmltoman' that I had to dig up + a perl-parser package.

Image

and a screenshot of the dialog

http://i.imgur.com/fSgKa.jpg

_________________
Image


Top
 Post subject: Re: Maze 5-0.8.1
PostPosted: Sun Nov 20, 2011 4:11 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
rich2005 wrote:
This one might be difficult in windows, it needs perl. Not too difficult in Mepis11 (Debian)

The compilation uses a perl script 'xmltoman' that I had to dig up + a perl-parser package.

Image

and a screenshot of the dialog

http://i.imgur.com/fSgKa.jpg


Actually Gimp uses Perl.
use XML::Parser; works for calling that to configure into the build, but cairo still isn't found.
Here is the error...
Compaq_Owner@Family-Room /c/src/plugins/maze5-0.8.1
$ python scons.py use XML::Parser;
scons: Reading SConscript files ...
Checking for cairo_pdf_surface_create() in C library cairo... (cached) no
Checking for cairo_svg_surface_create() in C library cairo... (cached) no
Checking for cairo_image_surface_create() in C library cairo... (cached) no

***
*** cairo not found. Standalone executable was not built! ***
***


scons: warning: Ignoring missing SConscript 'tests\SConscript'
File "C:\src\plugins\maze5-0.8.1\SConstruct", line 92, in <module>
scons: done reading SConscript files.
scons: Building targets ...
scons: *** Do not know how to make File target `use' (C:\src\plugins\maze5-0.8.1\use).  Stop.
scons: building terminated because of errors.

Compaq_Owner@Family-Room /c/src/plugins/maze5-0.8.1
$

_________________
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: Maze 5-0.8.1
PostPosted: Sun Nov 20, 2011 4:30 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
What is really strange is i have tried placing those two needed header files into the maze src folder and adding
#include <src/cairo-pdf.h> and
#include <src/cairo-svg.h>
to the SConscript file...

Still doesn't work.Something is trying to call them from /usr/include/cairo.
I need to figure out a way for SConstruct script to find my build location directories and not the default /usr/

_________________
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: Maze 5-0.8.1
PostPosted: Sun Nov 20, 2011 5:14 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4039
Did you do a search within the files to see if and where that path is being called?

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Maze 5-0.8.1
PostPosted: Sun Nov 20, 2011 7:12 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
What i believe SConstruct does it take all the CPPFLAGS in the env=Environment tag and uses those to build the plugin.(these files would be included in the plugin src files you download).So this is the environment it uses now (its own).
env=Environment(
    CC='gcc',CCFLAGS=['-g','-Wall','-D_GNU_SOURCE','-DVERSION=\\"'+VERSION+'\\"'],
    ENV = os.environ,
    TARFLAGS=['-cz']


I also tried -
python scons.py USE XML::Parser; "env.Append CPPFLAGS=-I/usr/gtk/include"

To try and add my gtk/include files within the build...
That didn't work either.

_________________
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: Maze 5-0.8.1
PostPosted: Sun Nov 20, 2011 7:17 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
mahvin wrote:
Did you do a search within the files to see if and where that path is being called?

I believe within the src/cairo.c file
/**
* \file mazecairo.c
* \author Bernd Breitenbach
* \remarks
*      bb - Aug 13, 2006: Created.
*/

#define OMIT_DEBUG
#include <stdio.h>
#include <math.h>
#include <assert.h>

#include <cairo.h>
#ifdef WITH_CAIRO_PDF
#include <cairo-pdf.h>
#endif
#ifdef WITH_CAIRO_SVG
#include <cairo-svg.h>
#endif

#include "render.h"
#include "maze.h"
#include "cell.h"
#include "stroke.h"
#include "cairo.h"


Is it possible to add a direct path here?
#include <usr/gtk/include/cairo/cairo-svg.h>
#include <usr/gtk/include/cairo/cairo-pdf.h>

_________________
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: Maze 5-0.8.1
PostPosted: Sun Nov 20, 2011 7:40 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I guess my advice would be for the developer of this plugin to utilize the local version of SCons and include it within the package.This would allow anyone to compile it.They wouldn't have to have SCons installed to build it.
Also to include all the necessary CPPFLAGS files within the src folder, so any system could find them.

_________________
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: Maze 5-0.8.1
PostPosted: Sun Nov 20, 2011 7:47 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12513
You're still speaking Geek (or is it Greek) to me Rod. lol

Still hope you get it to work; would like the current version of Maze5. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Maze 5-0.8.1
PostPosted: Mon Nov 21, 2011 7:18 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Someone on Filter Forge just requested this be built into a Filter Forge plugin. :)
Not sure if that is possible with the scripting though.

_________________
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: Maze 5-0.8.1
PostPosted: Sun Nov 27, 2011 8:52 am  (#14) 
Offline
GimpChat Member

Joined: Apr 25, 2011
Posts: 78
Location: Taiwan
maze5.zip
this is maze5-0.8.1 for gimp windows 32bits

if you want to compile yourself
you can use this makefile
copy it to the src folder
then make
CC=gcc

GIMPTOOL=gimptool-2.0

GIMP_LDFLAGS=`$(GIMPTOOL) --libs`
GIMP_CFLAGS=`$(GIMPTOOL) --cflags`

DEFS=-DWITH_CAIRO_PDF=1 -DWITH_CAIRO_SVG=1 -DWITH_CAIRO_IMAGE=1
#DEFS=

ADDITIONAL_CFLAGS=
ADDITIONAL_LDFLAGS=-lfreetype -lexpat -lpthread -lgimp-2.0 -lglib-2.0 -lz -lm

CFLAGS=-g -Wall -O3 $(DEFS) $(GIMP_CFLAGS) $(ADDITIONAL_CFLAGS)
LDFLAGS=$(GIMP_LDFLAGS) $(ADDITIONAL_LDFLAGS)

all: maze5 maze5S

install: maze5
   $(GIMPTOOL) --install-bin maze5

maze5: gimp.o structure.o maze.o theta.o cell.o wall.o stroke.o render.o carve.o
   $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
   
maze5S: main.o cairo.o structure.o maze.o theta.o cell.o wall.o stroke.o render.o carve.o
   $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

clean:
   -rm -f *~ *.o maze5.exe maze5S.exe


Top
 Post subject: Re: Maze 5-0.8.1
PostPosted: Sun Nov 27, 2011 9:37 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks James! :)

_________________
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: Maze 5-0.8.1
PostPosted: Sun Nov 27, 2011 10:07 am  (#16) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Thank :jumpclap :jumpclap :jumpclap ,cool have the new version :yes

_________________
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: Maze 5-0.8.1
PostPosted: Sun Nov 27, 2011 4:26 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12513
Thanks a heap James; been wanting to try Theta out. :)


Attachments:
theta.png
theta.png [ 153.1 KiB | Viewed 3474 times ]

_________________
Lyle

Psalm 109:8

Image
Top
Post new topic Reply to topic  [ 17 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group