If you have time could you check if the unicode version of PSWBTM I posted above compiles for you under Linux?
There are probably still bugs. But the GUI should fire up fine. And configuring engines etc should work.
Regards,
Michel
Moderator: Andres Valverde
could try that tonight, but I am not really used to Linux, and I will proably get a lot of error messages for missing libraries or include files, and then I would not know what to do. (I could not even compile the test.c you gave above...)
libwxbase2.8-dev
libwxgtk2.8-dev
apt-get install libwxbase2.8-dev libwxgtk2.8-dev
g++: wx-config --cflags: No such file or directory
g++: wx-config --libs: No such file or directory
error: wx/wx.h: No such file or directory
Michel wrote:Were you really using back quotes here? I mean ` .... `. Not ' .... '.
void SetUpChildIO(to_prog, from_prog)
int to_prog[2], from_prog[2];
{
signal(SIGPIPE, SIG_IGN);
pipe(to_prog);
pipe(from_prog);
}
xboard()
{ ...
SetUpChildIO(to_prog, from_prog);
if ((pid = fork()) == 0) {
/* Child process */
dup2(to_prog[0], 0);
dup2(from_prog[1], 1);
close(to_prog[0]);
close(to_prog[1]);
close(from_prog[0]);
close(from_prog[1]);
dup2(1, fileno(stderr)); /* force stderr to the pipe */
if (dir[0] != NULLCHAR && chdir(dir) != 0) {
perror(dir);
exit(1);
}
execvp(argv[0], argv);
/* If we get here, exec failed */
perror(argv[0]);
exit(1);
}
/* Parent process */
close(to_prog[0]);
close(from_prog[1]);
cp = (ChildProc *) calloc(1, sizeof(ChildProc));
cp->kind = CPReal;
cp->pid = pid;
cp->fdFrom = from_prog[0];
cp->fdTo = to_prog[1];
Ok, I will look at your changes and see if I can merge them in.Michel wrote:Hi Pradu,
Wouldn't it be better to use unicode? As I showed it is a relatively trivial change. That way PSWBTM can be easily compiled by Linux users themselves. Linux users do not really like static executables.
Regards,
Michel
Ok, I will look at your changes and see if I can merge them in.
Return to Winboard and related Topics
Users browsing this forum: No registered users and 20 guests