Open stephanschulz opened 3 years ago
As a test I just deleted the ContentMismanagementSystem folder which got me a bit further.
Buildfile: /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/resources/build.xml
init:
[echo] ------------------------------------------------------------------------------------------------
[echo] Building the Processing Library PEmbroider 1
[echo] ------------------------------------------------------------------------------------------------
[echo] src path /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/src
[echo] bin path /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/bin
[echo] classpath.local /Applications/Processing.app/Contents/Java/core/library
[echo] sketchbook /Users/stephanschulz/Documents/Processing
[echo] java version 1.8
[echo] ------------------------------------------------------------------------------------------------
[echo]
library.init:
[echo] init library ...
library.run:
[echo] building library ...
generate.structure:
[delete] Deleting directory /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp
[mkdir] Created dir: /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp
[mkdir] Created dir: /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider
[mkdir] Created dir: /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/library
[mkdir] Created dir: /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/examples
[mkdir] Created dir: /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/reference
[mkdir] Created dir: /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src
[copy] Copying 194 files to /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/examples
[copy] Copying 8 files to /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src
[copy] Copying 2 files to /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/library
generate.source:
generate.source.win:
generate.source.nix:
[echo] generating source (mac/linux) ...
parse.file:
[echo] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderBooleanShapeGraphics.java
parse.file:
[echo] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderFont.java
parse.file:
[echo] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java
parse.file:
[echo] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderHatchSatin.java
parse.file:
[echo] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderHatchSpine.java
parse.file:
[echo] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderTSP.java
parse.file:
[echo] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderTrace.java
parse.file:
[echo] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderWriter.java
compile:
[javac] Compiling 8 source files to /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/bin
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:970: warning: [cast] redundant cast to PVector
[javac] PVector pt = (PVector) pts.get(j);
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:1507: warning: [cast] redundant cast to int
[javac] PGraphics pg = app.createGraphics((int)PApplet.ceil(bb.w),(int)PApplet.ceil(bb.h));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:1507: warning: [cast] redundant cast to int
[javac] PGraphics pg = app.createGraphics((int)PApplet.ceil(bb.w),(int)PApplet.ceil(bb.h));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:1552: warning: [cast] redundant cast to int
[javac] PGraphics pg = app.createGraphics((int)PApplet.ceil(bb.w),(int)PApplet.ceil(bb.h));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:1552: warning: [cast] redundant cast to int
[javac] PGraphics pg = app.createGraphics((int)PApplet.ceil(bb.w),(int)PApplet.ceil(bb.h));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2311: warning: [cast] redundant cast to float
[javac] cnt = (int)PApplet.ceil((float)STROKE_WEIGHT/(float)STROKE_SPACING)+1;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2311: warning: [cast] redundant cast to float
[javac] cnt = (int)PApplet.ceil((float)STROKE_WEIGHT/(float)STROKE_SPACING)+1;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2311: warning: [cast] redundant cast to int
[javac] cnt = (int)PApplet.ceil((float)STROKE_WEIGHT/(float)STROKE_SPACING)+1;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2312: warning: [cast] redundant cast to float
[javac] spa = (float)STROKE_WEIGHT/(float)cnt;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2314: warning: [cast] redundant cast to float
[javac] cnt = (int)PApplet.ceil((float)STROKE_WEIGHT/(float)STROKE_SPACING)+1;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2314: warning: [cast] redundant cast to float
[javac] cnt = (int)PApplet.ceil((float)STROKE_WEIGHT/(float)STROKE_SPACING)+1;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2314: warning: [cast] redundant cast to int
[javac] cnt = (int)PApplet.ceil((float)STROKE_WEIGHT/(float)STROKE_SPACING)+1;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2327: warning: [cast] redundant cast to float
[javac] ArrayList<ArrayList<PVector>> polys2 = strokePolyNormal(polys.get(i),(float)STROKE_WEIGHT/2.0f,STROKE_SPACING,close);
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2334: warning: [cast] redundant cast to float
[javac] ArrayList<ArrayList<PVector>> polys2 = strokePolyNormalAng(polys.get(i),(float)STROKE_WEIGHT/2.0f,STROKE_SPACING,STROKE_ANGLE,close);
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2422: warning: [cast] redundant cast to float
[javac] int n = 100*((int)Math.ceil((float)l / (float)STITCH_LENGTH));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2422: warning: [cast] redundant cast to float
[javac] int n = 100*((int)Math.ceil((float)l / (float)STITCH_LENGTH));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2508: warning: [cast] redundant cast to int
[javac] PGraphics pg = app.createGraphics((int)PApplet.ceil(bb.w), (int)PApplet.ceil(bb.h));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2508: warning: [cast] redundant cast to int
[javac] PGraphics pg = app.createGraphics((int)PApplet.ceil(bb.w), (int)PApplet.ceil(bb.h));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2592: warning: [cast] redundant cast to int
[javac] PGraphics pg = app.createGraphics((int)PApplet.ceil(bb.w), (int)PApplet.ceil(bb.h));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2592: warning: [cast] redundant cast to int
[javac] PGraphics pg = app.createGraphics((int)PApplet.ceil(bb.w), (int)PApplet.ceil(bb.h));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2660: warning: [cast] redundant cast to float
[javac] int n = 20*((int)Math.ceil((float)l / (float)STITCH_LENGTH));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2660: warning: [cast] redundant cast to float
[javac] int n = 20*((int)Math.ceil((float)l / (float)STITCH_LENGTH));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2731: warning: [cast] redundant cast to int
[javac] PGraphics pg = app.createGraphics((int)PApplet.ceil(bb.w), (int)PApplet.ceil(bb.h));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2731: warning: [cast] redundant cast to int
[javac] PGraphics pg = app.createGraphics((int)PApplet.ceil(bb.w), (int)PApplet.ceil(bb.h));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2799: warning: [cast] redundant cast to float
[javac] int n = 100*((int)Math.ceil((float)l / (float)STITCH_LENGTH));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:2799: warning: [cast] redundant cast to float
[javac] int n = 100*((int)Math.ceil((float)l / (float)STITCH_LENGTH));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:3756: warning: [cast] redundant cast to int
[javac] polys = PEmbroiderHatchSatin.hatchSatinAngledRaster(im,hatch_angle,HATCH_SPACING,PApplet.max(1,(int)PApplet.ceil(STITCH_LENGTH/2)));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:4946: warning: [cast] redundant cast to int
[javac] int m = (int)PApplet.ceil(bcirc.r / step);
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:5408: warning: [cast] redundant cast to int
[javac] PGraphics pg = app.createGraphics((int) PApplet.ceil(tw), (int) PApplet.ceil(ta + td));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:5408: warning: [cast] redundant cast to int
[javac] PGraphics pg = app.createGraphics((int) PApplet.ceil(tw), (int) PApplet.ceil(ta + td));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:5712: warning: [cast] redundant cast to int
[javac] int j = (int)PApplet.floor(app.random((i + 1)));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:5741: warning: [cast] redundant cast to int
[javac] w = (int)PApplet.ceil(width/d);
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderGraphics.java:5742: warning: [cast] redundant cast to int
[javac] h = (int)PApplet.ceil(height/d);
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderHatchSatin.java:729: warning: [cast] redundant cast to int
[javac] PGraphics pg = G.app.createGraphics((int)PApplet.ceil(im.width/2f), (int)PApplet.ceil(im.height/d));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderHatchSatin.java:729: warning: [cast] redundant cast to int
[javac] PGraphics pg = G.app.createGraphics((int)PApplet.ceil(im.width/2f), (int)PApplet.ceil(im.height/d));
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderHatchSatin.java:793: warning: [cast] redundant cast to int
[javac] int w = (int)PApplet.ceil(ww*2)+4;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderHatchSatin.java:794: warning: [cast] redundant cast to int
[javac] int h = (int)PApplet.ceil(hh*2)+4;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderHatchSatin.java:833: warning: [cast] redundant cast to int
[javac] int hn = (int)PApplet.ceil(G.SATIN_RESAMPLING_OFFSET_FACTOR * ((float)pts.get(i).y * 2) * (float)n);
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderHatchSatin.java:840: warning: [cast] redundant cast to int
[javac] int hn = (int)PApplet.ceil(G.SATIN_RESAMPLING_OFFSET_FACTOR * ((float)pts.get(i).y * 2 + 1) * (float)n);
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderHatchSatin.java:877: warning: [cast] redundant cast to int
[javac] int hn = (int)PApplet.ceil(G.SATIN_RESAMPLING_OFFSET_FACTOR * (float)pts.get(i).y * (float)n);
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderTrace.java:95: warning: [cast] redundant cast to int
[javac] int x = (int)(i%w);
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderTrace.java:96: warning: [cast] redundant cast to int
[javac] int y = (int)(i/w);
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderTrace.java:415: warning: [cast] redundant cast to float
[javac] n = (int)((float)m/(float)d);
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderTrace.java:415: warning: [cast] redundant cast to float
[javac] n = (int)((float)m/(float)d);
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderWriter.java:976: warning: [unchecked] unchecked cast
[javac] ArrayList<Integer> colorlog = (ArrayList<Integer>) data[1];
[javac] ^
[javac] required: ArrayList<Integer>
[javac] found: Object
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderWriter.java:1183: warning: [unchecked] unchecked cast
[javac] ArrayList<Integer> color_index_list = (ArrayList<Integer>) color_info[0];
[javac] ^
[javac] required: ArrayList<Integer>
[javac] found: Object
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderWriter.java:1184: warning: [unchecked] unchecked cast
[javac] ArrayList<Integer> rgb_list = (ArrayList<Integer>) color_info[1];
[javac] ^
[javac] required: ArrayList<Integer>
[javac] found: Object
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderWriter.java:2230: warning: [cast] redundant cast to int
[javac] float r = (float)((int)((colors.get(i) >> 16)&0xFF)*1f)/255f;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderWriter.java:2230: warning: [cast] redundant cast to float
[javac] float r = (float)((int)((colors.get(i) >> 16)&0xFF)*1f)/255f;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderWriter.java:2231: warning: [cast] redundant cast to int
[javac] float g = (float)((int)((colors.get(i) >> 8)&0xFF)*1f)/255f;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderWriter.java:2231: warning: [cast] redundant cast to float
[javac] float g = (float)((int)((colors.get(i) >> 8)&0xFF)*1f)/255f;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderWriter.java:2232: warning: [cast] redundant cast to int
[javac] float b = (float)((int)(colors.get(i)&0xFF)*1f)/255f;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderWriter.java:2232: warning: [cast] redundant cast to float
[javac] float b = (float)((int)(colors.get(i)&0xFF)*1f)/255f;
[javac] ^
[javac] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/src/processing/embroider/PEmbroiderWriter.java:68: warning: [fallthrough] possible fall-through into case
[javac] case STITCH:
[javac] ^
[javac] 54 warnings
[copy] Copying 1 file to /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/bin/data
generate.jar:
[jar] Building jar: /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/library/PEmbroider.jar
generate.libprops:
[copy] Copying 1 file to /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider
parse.file:
[echo] /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider/library.properties
copyToSketchbook:
[echo] copying files to the libraries folder in your sketchbook.
[delete] Deleting directory /Users/stephanschulz/Documents/Processing/libraries/PEmbroider
[mkdir] Created dir: /Users/stephanschulz/Documents/Processing/libraries/PEmbroider
BUILD FAILED
/Users/stephanschulz/Documents/Processing/libraries/PEmbroider/resources/build.xml:111: The following error occurred while executing this line:
/Users/stephanschulz/Documents/Processing/libraries/PEmbroider/resources/build.xml:134: /Users/stephanschulz/Documents/Processing/libraries/PEmbroider/tmp/PEmbroider does not exist.
Total time: 3 seconds
The above error happens because after hitting the play button in the Ant window the PEmbroider folder losses all it's files. Not sure why they get deleted.
Hi @stephanschulz
Sorry for the late reply, wondering if you're able to compile the Processing template library? https://github.com/processing/processing-library-template. If not, there might be some problem with your Processing installation...
Another option is to compile with ant
directly, skipping eclipse altogether:
brew install ant
cd path/to/Pembroider/resources
ant
Thanks!
I am on macOS 10.14.6 with Eclipse IDE for Java Developers Version: Luna Service Release 2 (4.4.2)
and trying to compile PEmbroider but get this error message related to
ContentMismanagementSystem.jar; zip file is empty
Will start checking Processing for more hints.