Need help: run make generate SQL script

seephoto

Joined: 2005-12-12
Posts: 6
Posted: Sun, 2006-03-12 05:54

i installed Gallery2 on WindowsXP, use cygwin to make my module.class, the are no error report make output. Saxon version is 6.5.3, JDK 6.0, who know what wrong?

the output is:

$ make
cd interfaces && make - --unix
make[1]: Entering directory `/cygdrive/d/gallery2/modules/tag/classes/interfaces'
perl ../../../../lib/tools/bin/extractClassXml.pl \
--dtd=../../../../../lib/tools/dtd/GalleryClass2.0.dtd \
--stub-ok \
--out tmp/GalleryTagHelper.xml \
../GalleryTagHelper.class
No tags detected
if [ -f tmp/GalleryTagHelper.xml ]; then rxp -s -V tmp/GalleryTagHelper.xml; fi
if [ -f tmp/GalleryTagHelper.xml ]; then java -classpath :../../../../lib/tools/CRC32.jar com.icl.saxon.StyleSheet tmp/GalleryTagHel
per.xml ../../../../modules/core/classes/interfaces/ClassCode.xsl \
| perl -pe 's/\@\@package\@\@/Comment/' \
> GalleryTagHelper.inc; fi
perl ../../../../lib/tools/bin/extractClassXml.pl \
--dtd=../../../../../lib/tools/dtd/GalleryClass2.0.dtd \
--stub-ok \
--out tmp/GalleryTagSearch.xml \
../GalleryTagSearch.class
No tags detected
if [ -f tmp/GalleryTagSearch.xml ]; then rxp -s -V tmp/GalleryTagSearch.xml; fi
if [ -f tmp/GalleryTagSearch.xml ]; then java -classpath :../../../../lib/tools/CRC32.jar com.icl.saxon.StyleSheet tmp/GalleryTagSea
rch.xml ../../../../modules/core/classes/interfaces/ClassCode.xsl \
| perl -pe 's/\@\@package\@\@/Comment/' \
> GalleryTagSearch.inc; fi
make[1]: Leaving directory `/cygdrive/d/gallery2/modules/tag/classes/interfaces'
cd GalleryStorage/DatabaseStorage/schema && make - --unix
make[1]: Entering directory `/cygdrive/d/gallery2/modules/tag/classes/GalleryStorage/DatabaseStorage/schema'
cd xml-src && make - --unix -w xml
make[2]: Entering directory `/cygdrive/d/gallery2/modules/tag/classes/GalleryStorage/DatabaseStorage/schema/xml-src'
perl ../../../../../../../lib/tools/bin/extractClassXml.pl \
--dtd=../../../../../../../../lib/tools/dtd/GalleryClass2.0.dtd ../../../../GalleryTagHelper.class \
--out=tmp/GalleryTagHelper.xml
No tags detected
if [ -f tmp/GalleryTagHelper.xml ]; then rxp -s -V tmp/GalleryTagHelper.xml; fi
if [ -f tmp/GalleryTagHelper.xml ]; then \
java -classpath :../../../../../../../lib/tools/CRC32.jar com.icl.saxon.StyleSheet tmp/GalleryTagHelper.xml ../../../../../.
./../modules/core/classes/GalleryStorage/DatabaseStorage/schema/xml-src/DbXml.xsl > ../xml-out/GalleryTagHelper.xml; \
rxp -s -V ../xml-out/GalleryTagHelper.xml; \
fi
perl ../../../../../../../lib/tools/bin/extractClassXml.pl \
--dtd=../../../../../../../../lib/tools/dtd/GalleryClass2.0.dtd ../../../../GalleryTagSearch.class \
--out=tmp/GalleryTagSearch.xml
No tags detected
if [ -f tmp/GalleryTagSearch.xml ]; then rxp -s -V tmp/GalleryTagSearch.xml; fi
if [ -f tmp/GalleryTagSearch.xml ]; then \
java -classpath :../../../../../../../lib/tools/CRC32.jar com.icl.saxon.StyleSheet tmp/GalleryTagSearch.xml ../../../../../.
./../modules/core/classes/GalleryStorage/DatabaseStorage/schema/xml-src/DbXml.xsl > ../xml-out/GalleryTagSearch.xml; \
rxp -s -V ../xml-out/GalleryTagSearch.xml; \
fi
make[2]: Leaving directory `/cygdrive/d/gallery2/modules/tag/classes/GalleryStorage/DatabaseStorage/schema/xml-src'
cd platform && make - --unix -w sql
make[2]: Entering directory `/cygdrive/d/gallery2/modules/tag/classes/GalleryStorage/DatabaseStorage/schema/platform'
cd mysql && make - --unix -w sql
make[3]: Entering directory `/cygdrive/d/gallery2/modules/tag/classes/GalleryStorage/DatabaseStorage/schema/platform/mysql'
if [ -f InstallerTest.sql ]; then \
mv InstallerTest.sql InstallerTest_sql; \
fi
make[3]: Leaving directory `/cygdrive/d/gallery2/modules/tag/classes/GalleryStorage/DatabaseStorage/schema/platform/mysql'
cd postgres && make - --unix -w sql
make[3]: Entering directory `/cygdrive/d/gallery2/modules/tag/classes/GalleryStorage/DatabaseStorage/schema/platform/postgres'
if [ -f InstallerTest.sql ]; then \
mv InstallerTest.sql InstallerTest_sql; \
fi
make[3]: Leaving directory `/cygdrive/d/gallery2/modules/tag/classes/GalleryStorage/DatabaseStorage/schema/platform/postgres'
cd oracle && make - --unix -w sql
make[3]: Entering directory `/cygdrive/d/gallery2/modules/tag/classes/GalleryStorage/DatabaseStorage/schema/platform/oracle'
if [ -f InstallerTest.sql ]; then \
mv InstallerTest.sql InstallerTest_sql; \
fi
make[3]: Leaving directory `/cygdrive/d/gallery2/modules/tag/classes/GalleryStorage/DatabaseStorage/schema/platform/oracle'
make[2]: Leaving directory `/cygdrive/d/gallery2/modules/tag/classes/GalleryStorage/DatabaseStorage/schema/platform'
make[1]: Leaving directory `/cygdrive/d/gallery2/modules/tag/classes/GalleryStorage/DatabaseStorage/schema'

$ echo $CLASSPATH
D:\gallery2\saxon6_5_3\saxon.jar

what wrong? Thanks

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2006-04-02 04:20

upgrade to 2.1; all this has changed.
you only need cmdline php now.

 
mjwest

Joined: 2006-05-30
Posts: 3
Posted: Sun, 2006-06-11 04:49

mindless can you elaborate a little bit more? I am trying to learn how to develop custom modules. My OS is Windows XP and I have the latest source through SVN. I can also do the samples that are posted on the forum, but I am trying to figure out how all the database stuff works with the XML schema and all that. How do I do this? I was going through the same process seephoto was trying with cygwin and trying to figure this out, but I have no idea. Can you help or point me towards something else that will help me learn. What do you mean by you only need cmdline php now? What do I run? Do I still create a makefile? Do I still need to define stuff with xml?

Matthew West
www.mtpics.com

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2006-06-11 16:08

make a classes dir in your module.
to define an entity, create YourEntity.class and include cmoments with @g2 tags to define the structure. see modules/core/classes/GalleryItem.class (or many other examples).
to define a map, create Maps.xml, see modules/core/classes/Maps.xml (or many other examples).
copy GNUmakefile from any modules/*/classes dir.
now do 'make' (or 'gmake') and it will create Entities.inc and/or Maps.inc and GalleryStorage/schema.tpl

 
mjwest

Joined: 2006-05-30
Posts: 3
Posted: Mon, 2006-06-12 04:01

That worked great. Thanks for taking the time to answer such a simple question. It has really opened things up for me just to have that one hole filled in. Thanks!

Matthew West
www.mtpics.com

 
cient

Joined: 2006-06-01
Posts: 26
Posted: Thu, 2006-07-06 11:34
Quote:
to define a map, create Maps.xml, see modules/core/classes/Maps.xml (or many other examples).
copy GNUmakefile from any modules/*/classes dir.
now do 'make' (or 'gmake') and it will create Entities.inc and/or Maps.inc and GalleryStorage/schema.tpl

just compiling da Maps.xml doesn't work on my debian system when no *.class file is the classes/ directory.
so create a empty file if you have the problem and no classes file

***/classes/$ touch empty.class

 
cc5henry

Joined: 2006-06-15
Posts: 12
Posted: Thu, 2006-07-06 21:49
Quote:
make a classes dir in your module.
to define an entity, create YourEntity.class and include cmoments with @g2 tags to define the st[url=http://www.indirectamente-portada.info ]r[/url]cture. see modules/core/classes/GalleryItem.class (or many other examples).
to define a map, create Maps.xml, see modules/core/classes/Maps.xml (or many other examples).
copy GNUmakefile from any modules/*/classes dir.
now do 'make' (or 'gmake') and it will create Entities.inc and/or Maps.inc and GalleryStorage/schema.tpl

Thanks mindless for you answer! Your not totally mindless like i see it ;)

 
cient

Joined: 2006-06-01
Posts: 26
Posted: Fri, 2006-07-07 07:40
 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2006-07-08 16:20

cient, I fixed the makefile so existence of a *.class file is no longer required.. thx for the report.