make environment

atti

Joined: 2007-01-07
Posts: 11
Posted: Sun, 2007-01-07 12:23

Hi,

I'm novice at Gallery2 module development and currently I'm stucked with file generation for database operations. First I removed Entity.inc, XML and schema.tpl files from comment module and then I executed make operation, but system only throws this kind of error:

The system cannot find the path specified.
q -C ../../../lib/tools/bin/generate-entities.php
process_begin: CreateProcess((null), q -C ../../../lib/tools/bin/generate-entities.php, ...) failed.
make (e=2): The system cannot find the file specified.
make: [Entities.inc] Error 2 (ignored)
if [ -f Maps.xml ]; then make Maps.inc; fi
-f was unexpected at this time.
make: *** [all] Error 255

This happens, when I try to re-generate the comment module data-access files. I'm very happy, if anyone can
help me with this problem.

my environment is:
Gallery version 2.2-rc-1
PHP 5
make 3.75
Windows2000

PHP and make are in the system path.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2007-01-07 13:39

make or gmake must be called from a module's modules/*/classes/ folder.

 
atti

Joined: 2007-01-07
Posts: 11
Posted: Sun, 2007-01-07 14:11

I called make from .../modules/comment/classes/ directory

is this what you mean?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-01-08 05:41

yes, that's correct.
in that case you're missing the development files.

to run make, you either need the "developer" package of gallery 2 or an svn version.

--------------
Enter the Gallery 2 Theme Contest today!

 
atti

Joined: 2007-01-07
Posts: 11
Posted: Mon, 2007-01-08 07:28

valiant, thanks for the help, but I have to continue with same problem.

I reinstalled the Gallery2 developer version and I still have same problem.
I can find e.g. generate-entities.php file in lib/tools/bin directory but make can't : (

 
atti

Joined: 2007-01-07
Posts: 11
Posted: Tue, 2007-01-09 10:39

hi again... and I still having problem with make based build

I don't know is this improvement, but now I know at line number 3
in GNUMakeFile throws The system cannot find the path specified.
If I remove this row, then exception go away, but of course script does
not work.

line3: CLASSES = $(shell ls *.class 2>/dev/null)

So, I'm very happy, if someone has ideas how to solve this case.
My background is in Java environments, so my experience of make
environment is poor :)

here is the system outs from:

php -v

PHP 5.1.6 (cli) (built: Aug 23 2006 16:35:53)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

make -v

GNU Make version 3.75, by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96
        Free Software Foundation, Inc.
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2007-01-09 14:18

I've never tried make tools in the plain windows shell.
looks like you're using a normal windows command line.

I'm using cygwin on windows.
can you give that a try?

--------------
Enter the Gallery 2 Theme Contest today!

 
atti

Joined: 2007-01-07
Posts: 11
Posted: Tue, 2007-01-09 16:42

thanks for your help

I'll try this tomorrow

 
atti

Joined: 2007-01-07
Posts: 11
Posted: Wed, 2007-01-10 10:01

arg... the cygwin gave same result than windows shell.

ls *.class command list 4 class files in classes directory (of course),
but problems with make are still the same.

I think these rows in GNUmakefile.classes throws erros and visualize my
environment problem(s) but currently I don't have idea of solution.

CLASSES = $(shell ls *.class 2>/dev/null)
$(CLASSES) ../../../lib/tools/bin/entities.tpl
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-01-10 13:50

are you sure it's not about the line(s) before?
xmllnt / php, are both in your path?

--------------
Enter the Gallery 2 Theme Contest today!

 
atti

Joined: 2007-01-07
Posts: 11
Posted: Wed, 2007-01-10 15:05

I tested these setting using php -v and x -version commans

result of xmllint.exe -version query was:

C:\Program Files\utils\path\xmllint.exe: 
using libxml version 20507 compiled with: 
FTP HTTP HTML C14N Catalog DocBook XPath 
XPointer XInclude Iconv Unicode Regexps 
Automata Schemas

Are these tests valid?

I set these programs to path by Windows environment
settings, but tests are executed by cygwin.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-01-10 16:09

but if you do:
which php
and
which xmllint

does it find it in cygwin's PATH?

--------------
Enter the Gallery 2 Theme Contest today!

 
atti

Joined: 2007-01-07
Posts: 11
Posted: Wed, 2007-01-10 18:51

If I understand correctly, cygwin converts
automatically windows path to cygwin path.

Maybe that's reason why php and xmllint programs
returns version information in cygwin.

 
atti

Joined: 2007-01-07
Posts: 11
Posted: Tue, 2007-02-06 06:08

ok, now make environment works... I changed make version to 3.81,
which I downloaded from mingw. Thanks for the help valiant. Now
my Gallery2 study continues.