ld: warning: in /Users/andres/Coding/Syphon/implementations/svn/trunk/Syphon Framework/build/Release/Syphon.framework/Syphon, missing required architecture ppc in file
".objc_class_name_SyphonServer", referenced from:
literal-pointer@__OBJC@__cls_refs@SyphonServer in jsyphon_JSyphonServer.o
ld: symbol(s) not found
I guess this is not very important, as I can go along with the debug libs for the time being.
--- First attempt ----
I tried to run the code that andres suggested, I tried to run the code posted in this reply after I copied the correct files in the correct place:
~/Documents/Processing/libraries/
jsyphon/
library/
jsyphon.jar
libJSyphon.jnilib
The Processing library requires you compile version 0197 or later of Processing yourself (it doesn't work with the current release version).I downloaded the zip file posted further up here earlier and run the example code SendFrames.pde, but I get this error:
import java.applet.Applet;
import javax.media.opengl.GL;
import javax.swing.JFrame;
import jsyphon.JSyphonServer;
import codeanticode.glgraphics.GLConstants;
import codeanticode.glgraphics.GLGraphicsOffScreen;
import codeanticode.glgraphics.GLTexture;
import processing.core.PApplet;
@SuppressWarnings("serial")
public class OffscreenTest extends PApplet{
private int w,h;
private JSyphonServer syphon;
private GLGraphicsOffScreen canvas;
private GLTexture tex;
public OffscreenTest(int w, int h){
this.w = w;
this.h = h;
}
public void setup(){
size(w,h,GLConstants.GLGRAPHICS);
frameRate(60);
canvas = new GLGraphicsOffScreen(this,w,h);
tex = new GLTexture(this);
initSyphon(canvas.gl);
}
public void initSyphon(GL gl) {
if (syphon != null) {
syphon.stop();
}
syphon = new JSyphonServer();
syphon.test();
syphon.initWithName("OffscreenTest");
}
public void draw(){
background(255,0,0);
canvas.beginDraw();
canvas.clear(0, 0, 0, 0);
canvas.fill(0, 255, 255, random(50, 200));
for(int i=0; i<100; i++){
canvas.ellipse(random(0, canvas.width), random(0, canvas.height), random(10, 50), random(10, 50));
}
canvas.endDraw();
tex = canvas.getTexture();
//image(tex,0,0);
syphon.publishFrameTexture(tex.getTextureID(), tex.getTextureTarget(), 0, 0, tex.width, tex.height, tex.width, tex.height, false);
}
public static void main(String[] args){
JFrame frame = new JFrame();
Applet app = new OffscreenTest(1280,720);
frame.add(app);
frame.setBounds(0,0,1280,720);
frame.setUndecorated(true);
frame.setVisible(true);
app.init();
}
}
I’ve installed QCRehab and the Syphon plugin, but i’m having trouble with the next bit of the tutorial…
I downloaded the Syphon library from the link on the page:
http://interfaze.info/files/syphon/Syphon-0.0.1.zip
and installed it in the Processing libraries folder as shown, but when i copy and paste the code Miguel gives on this page and run the Processing script, i get the error message:
UnsatisfiedLinkError: no JSyphon in Java.library.path
psyphon_terrain from johannes jørgensen on Vimeo.