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
Posts: 8601
upgrade to 2.1; all this has changed.
you only need cmdline php now.
Posts: 3
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
Posts: 8601
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
Posts: 3
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
Posts: 26
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
Posts: 12
Thanks mindless for you answer! Your not totally mindless like i see it ;)
Posts: 26
(the full version is available at http://codex.gallery2.org/index.php/Gallery2:Module_Development_Tutorial)
Posts: 8601
cient, I fixed the makefile so existence of a *.class file is no longer required.. thx for the report.