Il programma in questione si chiama surfer, su sourceforge lo si trova qua:
http://sourceforge.net/projects/surf/
scaricando l'ultima versione, leggo nel file readme che basta risolvere le seguenti dipendenze (che dovrei aver fatto):
GNU gcc/g++ version 2.7.x or higher
make
cups
GNU flex Version 2.5 or higher
GTK+ Version 1.2.0 or higher (only if GUI is needed)
POSIX Threads ( glibc2 on Linux)
GNU MP(gmp) Version 2 or higher
lib-tiff
lib-jpeg
zlib
ps2pdf
linux-kernel-header (on Suse Linux 11.x)
lib-xmu
e in seuguito dare i comandi:
./configure && make && make install
io pensavo di creare il pacchetto .deb e quindi dare il comando checkinstall, come descritto nel wiki di ubuntu.
Il problema è che durante ./cunfigure ottengo tantissimi warning, e durante il make un erore che m'impedisce di andare avanti, eccoli cui:
errore da ./configure:
Codice: Seleziona tutto
...
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: Makefile.in seems to ignore the --datarootdir setting
config.status: creating src/Makefile
config.status: WARNING: src/Makefile.in seems to ignore the --datarootdir setting
config.status: creating image-formats/Makefile
config.status: WARNING: image-formats/Makefile.in seems to ignore the --datarootdir setting
config.status: creating drawfunc/Makefile
config.status: WARNING: drawfunc/Makefile.in seems to ignore the --datarootdir setting
config.status: creating yaccsrc/Makefile
config.status: WARNING: yaccsrc/Makefile.in seems to ignore the --datarootdir setting
config.status: creating curve/Makefile
config.status: WARNING: curve/Makefile.in seems to ignore the --datarootdir setting
config.status: creating mt/Makefile
config.status: WARNING: mt/Makefile.in seems to ignore the --datarootdir setting
config.status: creating draw/Makefile
config.status: WARNING: draw/Makefile.in seems to ignore the --datarootdir setting
config.status: creating misc/Makefile
config.status: WARNING: misc/Makefile.in seems to ignore the --datarootdir setting
config.status: creating debug/Makefile
config.status: WARNING: debug/Makefile.in seems to ignore the --datarootdir setting
config.status: creating gtkgui/Makefile
config.status: WARNING: gtkgui/Makefile.in seems to ignore the --datarootdir setting
config.status: creating dither/Makefile
config.status: WARNING: dither/Makefile.in seems to ignore the --datarootdir setting
Codice: Seleziona tutto
make[1]: *** [Script.o] Errore 1
make[1]: uscita dalla directory «/home/kikkas/Scaricati/surf-1.0.6/yaccsrc»
make: *** [all-recursive] Errore 1
Codice: Seleziona tutto
../gtkgui/DrawingArea.h: At global scope:
...
../gtkgui/DrawingArea.h:47: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
../gtkgui/DrawingArea.h:47: error: expected ‘;’ before ‘*’ token
../gtkgui/DrawingArea.h:49: error: expected ‘;’ before ‘void’
../gtkgui/DrawingArea.h:76: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
../gtkgui/DrawingArea.h:76: error: expected ‘;’ before ‘*’ token
../gtkgui/DrawingArea.h:77: error: ISO C++ forbids declaration of ‘GdkPixmap’ with no type
../gtkgui/DrawingArea.h:77: error: expected ‘;’ before ‘*’ token
../gtkgui/DrawingArea.h:78: error: ISO C++ forbids declaration of ‘GdkGC’ with no type
../gtkgui/DrawingArea.h:78: error: expected ‘;’ before ‘*’ token
../gtkgui/DrawingArea.h:80: error: ISO C++ forbids declaration of ‘GdkGC’ with no type
../gtkgui/DrawingArea.h:80: error: expected ‘;’ before ‘*’ token
../gtkgui/DrawingArea.h:81: error: ISO C++ forbids declaration of ‘GdkGC’ with no type
../gtkgui/DrawingArea.h:81: error: expected ‘;’ before ‘*’ token
../gtkgui/DrawingArea.h:93: error: ‘GtkWidget’ has not been declared
../gtkgui/DrawingArea.h:93: error: ‘GdkEventConfigure’ has not been declared
../gtkgui/DrawingArea.h:93: error: ‘gpointer’ has not been declared
../gtkgui/DrawingArea.h:94: error: ‘GtkWidget’ has not been declared
../gtkgui/DrawingArea.h:94: error: ‘GdkEventExpose’ has not been declared
../gtkgui/DrawingArea.h:94: error: ‘gpointer’ has not been declared
../gtkgui/DrawingArea.h:95: error: ‘GtkWidget’ has not been declared
../gtkgui/DrawingArea.h:95: error: ‘gpointer’ has not been declared
In file included from Script.cc:56:
../draw/SurfaceCalc.h: In member function ‘void SurfaceCalc::surface_set_pixel(int, int, const colorrgb&)’:
../draw/SurfaceCalc.h:97: warning: conversion to ‘float’ from ‘double’ may alter its value
../draw/SurfaceCalc.h:97: warning: conversion to ‘float’ from ‘double’ may alter its value
../draw/SurfaceCalc.h:97: warning: conversion to ‘float’ from ‘double’ may alter its value
../draw/SurfaceCalc.h: In member function ‘void SurfaceCalc::surface_set_r_pixel(int, int, const colorrgb&)’:
../draw/SurfaceCalc.h:102: warning: conversion to ‘float’ from ‘double’ may alter its value
../draw/SurfaceCalc.h:102: warning: conversion to ‘float’ from ‘double’ may alter its value
../draw/SurfaceCalc.h:102: warning: conversion to ‘float’ from ‘double’ may alter its value
../draw/SurfaceCalc.h: In member function ‘void SurfaceCalc::surface_set_gb_pixel(int, int, const colorrgb&)’:
../draw/SurfaceCalc.h:107: warning: conversion to ‘float’ from ‘double’ may alter its value
../draw/SurfaceCalc.h:107: warning: conversion to ‘float’ from ‘double’ may alter its value
../draw/SurfaceCalc.h:107: warning: conversion to ‘float’ from ‘double’ may alter its value
...Ho provato anche con una versione più vecchia, ma niente da fare, mi da comunque un sacco di errori..
edit: nel caso servisse sto usando ubuntu (con gnome) lucid lynx 32 bit aggiornata fino ad oggi.

