hi,
i have been trying to make use of dxlink, where i try to connect to another
computer , where my file is. I noticed that dxlink tries to establish the
connection by ssh, but that imposes a problem. First of all, i can only log in
on this computer with the same username. But when i type my password, it first
doesn't recognize it, and when i retype it, after a while it gives the message:
timeout waiting for response from DX
Error: Can't open display: localhost:13.0
Segmentation fault
I have tried to make a host in my .ssh/config file, where i specify another
user, and allow XForwarding, but that results in the message:
Invalid hostSegmentation fault
My file is:
#include <iostream.h>
#include <dxl.h>
using namespace std;
int main ()
{
cout << "DXLink test\n";
DXLConnection *conn =0;
char result[100];
conn = DXLStartDX("dx -image -noExitOptions -noExecuteMenus
-noConnectionMenus","c014");
DXLLoadVisualProgram(conn, "/home/guest/jcallewa/dxlink/sealevel.net");
/*
* Set the value of the DXLInput tool which is labelled
* "contour_line_value" and execute.
*/
DXLSetValue(conn, "contour_line_value", "0");
DXLExecuteOnce(conn);
/*
* Set the value of the DXLInput tool which is labelled
* "contour_line_value" and execute.
*/
DXLSetValue(conn, "contour_line_value", "2");
DXLExecuteOnce(conn);
/*
* Set the value of the DXLInput tool which is labelled
* "contour_line_value" and execute.
*/
DXLSetValue(conn, "contour_line_value", "5");
DXLExecuteOnce(conn);
/*
* Set the value of the DXLInput tool which is labelled
* "contour_line_value" and execute.
*/
DXLSetValue(conn, "contour_line_value", "20");
DXLExecuteOnce(conn);
/*
* Set the value of the DXLInput tool which is labelled
* "contour_line_value" and execute.
*/
DXLSetValue(conn, "contour_line_value", "50");
DXLExecuteOnce(conn);
/* printf("An image window will appear\n"); */
/* printf("and a sequence of images will be created.\n"); */
cout << "When you are finished, hit return to quit:";
gets(result);
DXLExitDX(conn);
}
It's a slightly modified version of the sealevel.net file, found in the samples.
Am i missing the point of the dxlink or is this some sort of bug?
grtz,
Jan