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.
Posts: 32509
make or gmake must be called from a module's modules/*/classes/ folder.
Posts: 11
I called make from .../modules/comment/classes/ directory
is this what you mean?
Posts: 32509
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!
Posts: 11
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 : (
Posts: 11
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
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.Posts: 32509
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!
Posts: 11
thanks for your help
I'll try this tomorrow
Posts: 11
arg... the cygwin gave same result than windows shell.
ls *.classcommand 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.
Posts: 32509
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!
Posts: 11
I tested these setting using
php -v and x -versioncommansresult of xmllint.exe -version query was:
Are these tests valid?
I set these programs to path by Windows environment
settings, but tests are executed by cygwin.
Posts: 32509
but if you do:
which php
and
which xmllint
does it find it in cygwin's PATH?
--------------
Enter the Gallery 2 Theme Contest today!
Posts: 11
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.
Posts: 11
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.