2010년 7월 19일 월요일

Enable Qt-Terminal in Gnuplot

It is little bit tricky to compile gnuplot with qt terminal.

1st .
./configure --enable-qt

2nd
edit two source files

in line 1126-1128 of term/cairo.trm file.
// cairo_params->width = cairo_params_default->width;
// cairo_params->height = cairo_params_default->height;
// cairo_params->base_linewidth = cairo_params_default->base_linewidth;

this caused compile error for gcc
it is set strict ANSI-C syntax, so it does not accept C++ comment style.
Change it in C standard comments
/* cairo_params->width = cairo_params_default->width; */
/* cairo_params->height = cairo_params_default->height; */
/* cairo_params->base_linewidth = cairo_params_default->base_linewidth; */

in line 2061 of src/wxterminal/gp_cairo.c
// EAM DEBUG

caused error also.

My OS is OpenSUSE 11.2.

Update

Compile GNUPLOT with AQUATERM (only 32bit)in Snow Leopard
export LDFLAGS=-m32
export CFLAGS=-m32
./configure -with-readline=bsd --without-x

댓글 없음:

댓글 쓰기