Problems with library template
in
Library and Tool Development
•
3 years ago
I am creating a new library so I downloaded the template and am experiencied a number of problems when trying to build the library. I am using Eclipse Ganymede on WIndows XP.
Problem 1
In build.properties file I had to hard code the sketchbook.location and classpath.local.location variables since the path provided by the user.home variable did not work for me (went to c:\Documents and Settings/owner/) .
The next two relate to the build.xml file:
Problem 2
The versionSourcefile target reported all but the last java file missing. I changed the deliminator in the parse.source target from : to ; and that solved this problem (will his work in osx or is it Windows specific?)
Problem 3
The source code would not compile. In the compile target I found
<javac srcdir="${project.tmp}/${project.name}/src" destdir="${project.bin}" source="${java.target.version}" target="${java.target.version}">
The value for the source attribute did not make sense, also why compile the temporary files so I changed this line to
<javac srcdir="${project.src}" destdir="${project.bin}" source="${project.tmp}/${project.name}/src" target="${java.target.version}">
It now reports that the library has been built successfully and I now need to test it inside Processing, but I would be interested if others have experienced problems with the template.
Problem 1
In build.properties file I had to hard code the sketchbook.location and classpath.local.location variables since the path provided by the user.home variable did not work for me (went to c:\Documents and Settings/owner/) .
The next two relate to the build.xml file:
Problem 2
The versionSourcefile target reported all but the last java file missing. I changed the deliminator in the parse.source target from : to ; and that solved this problem (will his work in osx or is it Windows specific?)
Problem 3
The source code would not compile. In the compile target I found
<javac srcdir="${project.tmp}/${project.name}/src" destdir="${project.bin}" source="${java.target.version}" target="${java.target.version}">
The value for the source attribute did not make sense, also why compile the temporary files so I changed this line to
<javac srcdir="${project.src}" destdir="${project.bin}" source="${project.tmp}/${project.name}/src" target="${java.target.version}">
It now reports that the library has been built successfully and I now need to test it inside Processing, but I would be interested if others have experienced problems with the template.
1