problema con freefem++

Installazione, configurazione e uso di programmi e strumenti.
entoni
Prode Principiante
Messaggi: 13
Iscrizione: mercoledì 17 settembre 2008, 14:12

problema con freefem++

Messaggio da entoni »

ciao a tutti,
sto provando a installare freefem++ (scaricato dal sito ufficiale) ma quando faccio make mi da degli errori. ho guardato su una discussione precedente in cui si parlava di un problema praticamente identico al mio ma non sono riuscito a venirne a capo... vi posto quello che viene fuori quando faccio ./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for g77... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
checking how to get verbose linking output from f77... configure: WARNING: cannot determine how to obtain linking information from f77

checking for Fortran libraries of f77...
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for pthread_create in -lpthread... yes
checking wether we are on a MacIntosh... no
checking wether we are on  SunOS... no
checking wether we are on Microsoft Windows... no
checking whether to generate debugging information... no
checking whether the C compiler accepts -O3... yes
checking whether the C++ compiler accepts -O3... yes
checking whether the Fortran 77 compiler accepts -O3... yes
checking whether the C compiler accepts -mmmx... yes
checking whether the C++ compiler accepts -mmmx... yes
checking whether the Fortran 77 compiler accepts -mmmx... yes
checking whether the C compiler accepts -msse... yes
checking whether the C++ compiler accepts -msse... yes
checking whether the Fortran 77 compiler accepts -msse... yes
checking whether the C compiler accepts -msse2... yes
checking whether the C++ compiler accepts -msse2... yes
checking whether the Fortran 77 compiler accepts -msse2... yes
checking suffix to add to package name... none
checking wether we can compile for X11... yes
checking how to run the C++ preprocessor... g++ -E
checking for X... no
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking OpenGL/gl.h usability... no
checking OpenGL/gl.h presence... no
checking for OpenGL/gl.h... no
checking GL/gl.h usability... no
checking GL/gl.h presence... no
checking for GL/gl.h... no
checking add suffix  ... yes
checking for mpiCC... no
checking for arit_zero in -lcadnafree... no
checking /home/enrico/Scrivania/freefem++-2.24-2/download/cadna/cadnafree.h usability... no
checking /home/enrico/Scrivania/freefem++-2.24-2/download/cadna/cadnafree.h presence... no
checking for /home/enrico/Scrivania/freefem++-2.24-2/download/cadna/cadnafree.h... no
configure:  without cadna *****
checking for fftw_execute in -lfftw3... no
checking fftw3.h usability... no
checking fftw3.h presence... no
checking for fftw3.h... no
checking for fftw_execute in -lfftw3... (cached) no
checking for fftw3.h... (cached) no
checking for daxpy_ in -framework vecLib... no
checking for daxpy_ in -lblas... no
checking for daxpy_ in -L/usr/lib/atlas -lblas... no
checking for daxpy_ in -lf2c... no
checking for daxpy_ in -lf77blas... no
checking for daxpy_ in -latlas... no
checking for daxpy_ in -lgslcblas... no

checking for lapack in LIBS  ... no
configure: -- NO ARPACK --  wget: no
configure: -- NOT  UMFPACK  ff_wget = no
checking for asinh... yes
checking for acosh... yes
checking for atanh... yes
checking for getenv... yes
checking for jn... yes
checking for erfc... yes
checking for tgamma... yes
checking for second_... no
checking for libtool... yes
checking for dlfcn.h... yes
checking for dlinfo in -ldl... yes
checking whether dlopen links ok... yes
checking whether the C++ compiler accepts -rdynamic... yes
checking for latex... yes
checking for makeindex... yes
checking for dvips... yes
checking for pdf2ps... yes
checking for epstopdf... no
checking for convert... no
checking for pdflatex... yes
checking for fltk-config... no
checking that FLTK is compiled with threads... no
configure: not using default FLTK because it does not know threads
checking flex compatibility with bison... yes
checking kernel version... 2.6.27
checking libc version... libc-2.8.90
configure: creating ./config.status
config.status: creating Makefile
config.status: creating download/Makefile
config.status: creating download/blas/Makefile
config.status: creating download/arpack/Makefile
config.status: creating download/umfpack/Makefile
config.status: creating download/fltk/Makefile
config.status: creating src/Makefile
config.status: creating src/bamglib/Makefile
config.status: creating src/Graphics/Makefile
config.status: creating src/femlib/Makefile
config.status: creating src/Algo/Makefile
config.status: creating src/lglib/Makefile
config.status: creating src/fflib/Makefile
config.status: creating src/std/Makefile
config.status: creating src/x11/Makefile
config.status: creating src/ide/Makefile
config.status: creating src/nw/Makefile
config.status: creating src/mpi/Makefile
config.status: creating src/agl/Makefile
config.status: creating src/glx/Makefile
config.status: creating src/bamg/Makefile
config.status: creating src/bin-win32/Makefile
config.status: creating examples++/Makefile
config.status: creating examples++-eigen/Makefile
config.status: creating examples++-tutorial/Makefile
config.status: creating examples++-mpi/Makefile
config.status: creating examples++-load/Makefile
config.status: creating examples++-chapt3/Makefile
config.status: creating examples++-bug/Makefile
config.status: creating examples++-other/Makefile
config.status: creating DOC/Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure:  freefem++ used  download : 
configure: --  Dynamic load facility: yes
configure: --  ARPACK (eigen value): no
configure: --  UMFPACK (sparse solver) no
configure: --  BLAS no
configure: --  FLTK (ide package) no
configure: --  with X11            no
configure: --  with MPI            no
configure:    progs:  FreeFem++-nw bamg  cvmsh2   

grazie mille se qualcuno ha voglia di darmi una mano!
ciao!
Avatar utente
Ipnorospo
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3685
Iscrizione: venerdì 5 gennaio 2007, 1:57

Re: problema con freefem++

Messaggio da Ipnorospo »

mi ricordo che alcuni miei amici avevano avuto dei problemi pure loro ad installare freefem da sorgenti...
se non sbaglio c'è freefem nei repo però non so che versione sia(non ho ubuntu installato ed il sito dei pacchetti non è raggiungibile come spesso gli capita)
ho guardato su una discussione precedente in cui si parlava di un problema praticamente identico al mio ma non sono riuscito a venirne a capo
puoi linkarla così ci dò un'occhiata?
il configure sembra a posto,puoi postare il risultato del make:mi raccomando usa il TAG code... ;)
They see me trollin
entoni
Prode Principiante
Messaggi: 13
Iscrizione: mercoledì 17 settembre 2008, 14:12

Re: problema con freefem++

Messaggio da entoni »

eccomi allora la discussione era questa: http://forum.ubuntu-it.org/viewtopic.php?t=47015

invece quello che mi dice il make è:

Codice: Seleziona tutto

make  all-recursive
make[1]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2'
Making all in download
make[2]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/download'
Making all in blas
make[3]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/download/blas'
make  all-am
make[4]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/download/blas'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/download/blas'
make[3]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/download/blas'
Making all in arpack
make[3]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/download/arpack'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/download/arpack'
Making all in umfpack
make[3]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/download/umfpack'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/download/umfpack'
Making all in fltk
make[3]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/download/fltk'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/download/fltk'
make[3]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/download'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/download'
make[2]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/download'
Making all in src
make[2]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/src'
Making all in bamglib
make[3]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/src/bamglib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/src/bamglib'
Making all in femlib
make[3]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/src/femlib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/src/femlib'
Making all in Graphics
make[3]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/src/Graphics'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/src/Graphics'
Making all in Algo
make[3]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/src/Algo'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/src/Algo'
Making all in lglib
make[3]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/src/lglib'
make  all-am
make[4]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/src/lglib'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../fflib -I../bamglib -I../Graphics -I../femlib    -DNDEBUG -O3 -mmmx -msse -msse2 -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT lg.tab.o -MD -MP -MF ".deps/lg.tab.Tpo" -c -o lg.tab.o lg.tab.cpp; \
	then mv -f ".deps/lg.tab.Tpo" ".deps/lg.tab.Po"; else rm -f ".deps/lg.tab.Tpo"; exit 1; fi
rm -f liblg.a
ar rv liblg.a lg.tab.o mymain.o 
ar: creating liblg.a
a - lg.tab.o
a - mymain.o
ranlib liblg.a
make[4]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/src/lglib'
make[3]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/src/lglib'
Making all in fflib
make[3]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/src/fflib'
make  all-am
make[4]: Entering directory `/home/enrico/Scrivania/freefem++-2.24-2/src/fflib'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT AFunction.o -MD -MP -MF ".deps/AFunction.Tpo" -c -o AFunction.o AFunction.cpp; \
	then mv -f ".deps/AFunction.Tpo" ".deps/AFunction.Po"; else rm -f ".deps/AFunction.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT AFunction2.o -MD -MP -MF ".deps/AFunction2.Tpo" -c -o AFunction2.o AFunction2.cpp; \
	then mv -f ".deps/AFunction2.Tpo" ".deps/AFunction2.Po"; else rm -f ".deps/AFunction2.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT array_long.o -MD -MP -MF ".deps/array_long.Tpo" -c -o array_long.o array_long.cpp; \
	then mv -f ".deps/array_long.Tpo" ".deps/array_long.Po"; else rm -f ".deps/array_long.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT array_real.o -MD -MP -MF ".deps/array_real.Tpo" -c -o array_real.o array_real.cpp; \
	then mv -f ".deps/array_real.Tpo" ".deps/array_real.Po"; else rm -f ".deps/array_real.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT array_complex.o -MD -MP -MF ".deps/array_complex.Tpo" -c -o array_complex.o array_complex.cpp; \
	then mv -f ".deps/array_complex.Tpo" ".deps/array_complex.Po"; else rm -f ".deps/array_complex.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT lex.o -MD -MP -MF ".deps/lex.Tpo" -c -o lex.o lex.cpp; \
	then mv -f ".deps/lex.Tpo" ".deps/lex.Po"; else rm -f ".deps/lex.Tpo"; exit 1; fi
lex.cpp: In member function ‘int mylex::EatCommentAndSpace(std::string*)’:
lex.cpp:167: warning: deprecated conversion from string constant to ‘char*’
lex.cpp: In member function ‘int mylex::basescan()’:
lex.cpp:217: warning: deprecated conversion from string constant to ‘char*’
lex.cpp:237: warning: deprecated conversion from string constant to ‘char*’
lex.cpp:268: warning: deprecated conversion from string constant to ‘char*’
lex.cpp:270: warning: deprecated conversion from string constant to ‘char*’
lex.cpp:344: warning: deprecated conversion from string constant to ‘char*’
lex.cpp: In member function ‘bool mylex::SetMacro(int&)’:
lex.cpp:469: warning: deprecated conversion from string constant to ‘char*’
lex.cpp:473: warning: deprecated conversion from string constant to ‘char*’
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT lgmesh.o -MD -MP -MF ".deps/lgmesh.Tpo" -c -o lgmesh.o lgmesh.cpp; \
	then mv -f ".deps/lgmesh.Tpo" ".deps/lgmesh.Po"; else rm -f ".deps/lgmesh.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT lgmat.o -MD -MP -MF ".deps/lgmat.Tpo" -c -o lgmat.o lgmat.cpp; \
	then mv -f ".deps/lgmat.Tpo" ".deps/lgmat.Po"; else rm -f ".deps/lgmat.Tpo"; exit 1; fi
In file included from lgmat.cpp:40:
../femlib/MatriceCreuse_tpl.hpp: In member function ‘bool MatriceProfile<R>::addMatTo(R, std::map<std::pair<int, int>, R, std::less<std::pair<int, int> >, std::allocator<std::pair<const std::pair<int, int>, R> > >&, bool, int, int, bool)’:
../femlib/MatriceCreuse_tpl.hpp:270: error: ‘numeric_limits’ was not declared in this scope
../femlib/MatriceCreuse_tpl.hpp:270: error: expected primary-expression before ‘double’
../femlib/MatriceCreuse_tpl.hpp:270: error: expected ‘,’ or ‘;’ before ‘double’
../femlib/MatriceCreuse_tpl.hpp: In member function ‘bool MatriceMorse<R>::addMatTo(R, std::map<std::pair<int, int>, R, std::less<std::pair<int, int> >, std::allocator<std::pair<const std::pair<int, int>, R> > >&, bool, int, int, bool)’:
../femlib/MatriceCreuse_tpl.hpp:1163: error: ‘numeric_limits’ was not declared in this scope
../femlib/MatriceCreuse_tpl.hpp:1163: error: expected primary-expression before ‘double’
../femlib/MatriceCreuse_tpl.hpp:1163: error: expected ‘,’ or ‘;’ before ‘double’
../femlib/MatriceCreuse_tpl.hpp: In member function ‘void MatriceMorse<R>::prod(const MatriceMorse<RB>&, MatriceMorse<RAB>&)’:
../femlib/MatriceCreuse_tpl.hpp:1275: error: ‘numeric_limits’ was not declared in this scope
../femlib/MatriceCreuse_tpl.hpp:1275: error: expected primary-expression before ‘double’
../femlib/MatriceCreuse_tpl.hpp:1275: error: expected ‘,’ or ‘;’ before ‘double’
lgmat.cpp: In function ‘void BuildCombMat(std::map<std::pair<int, int>, R, std::less<std::pair<int, int> >, std::allocator<std::pair<const std::pair<int, int>, R> > >&, const KNM_<R>&, int, int, R, bool)’:
lgmat.cpp:475: error: ‘numeric_limits’ was not declared in this scope
lgmat.cpp:475: error: expected primary-expression before ‘double’
lgmat.cpp:475: error: expected ‘,’ or ‘;’ before ‘double’
make[4]: *** [lgmat.o] Error 1
make[4]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/src/fflib'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/src/fflib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/enrico/Scrivania/freefem++-2.24-2'
make: *** [all] Error 2

immagino che gli error alla fine non siano cosa buona :D

eh il freefem che c'e' sui repo e una versione vecchia e sarebbe meglio questa  :P
Avatar utente
Ipnorospo
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3685
Iscrizione: venerdì 5 gennaio 2007, 1:57

Re: problema con freefem++

Messaggio da Ipnorospo »

la discussione è un pò vecchiotta, cmq hai già provato ad installare i pacchetti suggeriti lì?
cercando un pò su internet mi sono imbattuto qui:http://aur.archlinux.org/packages.php?ID=8241
lascia perdere che sia archlinux, nel sesto commento uno dice che non riesce a compilare freefem++ 2.24.2(che dovrebbe essere la tua versione) e dà la colpa alla versione di gcc postando due link...ora ci dò una letta più approfondita però fallo anche tu che magari stò prendendo un granchio colossale... ;)  ;D
They see me trollin
entoni
Prode Principiante
Messaggi: 13
Iscrizione: mercoledì 17 settembre 2008, 14:12

Re: problema con freefem++

Messaggio da entoni »

io dando un'occhiata in giro avevo letto qualcosa riguardo g77 che su intrepid non c'e' piu pero le mie conoscenze non mi hanno permesso di spingermi troppo oltre :D
per quanto riguarda i pacchetti li ho installati quasi tutti tranne un paio che non mi trovava facendo il comando apt-get install xxxx tralaltro packages.ubuntu.com non mi riesce ad aprire la pagina..
Avatar utente
Ipnorospo
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3685
Iscrizione: venerdì 5 gennaio 2007, 1:57

Re: problema con freefem++

Messaggio da Ipnorospo »

in effetti ho letto i link e confermano che ci sono dei problemi con le versioni recenti di gcc...
che versione di ubuntu e di gcc hai sul tuo computer?
They see me trollin
entoni
Prode Principiante
Messaggi: 13
Iscrizione: mercoledì 17 settembre 2008, 14:12

Re: problema con freefem++

Messaggio da entoni »

ubuntu 8.10 (intrepid)
allora per gcc ci sono installati:
gcc    versione 4:4.3.1-1ubuntu2
e
gcc-3.4    versione 3.4.6-6ubuntu3
Avatar utente
Ipnorospo
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3685
Iscrizione: venerdì 5 gennaio 2007, 1:57

Re: problema con freefem++

Messaggio da Ipnorospo »

tra l'altro leggendo meglio quello che non riusciva a compilare freefem è il mantainer ufficiale di quel pacchetto per archlinux.... (rotfl)
cmq le parti importanti sono:
Yesterday I tried to compile freefem++ 2.24-2 in very different ways.
http://www.freefem.org/ff++/index.htm

The major problem is due to a bug in g++ 4.3.1 about the definition of "numeric_limits"
Here you are two explanation links:
http://www.ann.jussieu.fr/pipermail/fre ... 00092.html
http://gcc.gnu.org/ml/gcc/2007-07/msg00702.html

So I tried to compile using gcc-3.4, g++-3.4 and g95 (beacuse in gcc-3.4 gfortran is missing)
But with that old versions came out a bunch of other issues while linking the libraries.
per cui penso sia inutile provare a compilare freefem usando la versione vecchia di gcc(puoi provare ma a quanto pare saltano fuori altri problemi)...
alla fine lui è riuscito a compilarla:
Hi again!

After hours of trial and error, I managed to compile the single componend of freefem++ with a correct configure almost every subprogram or library builds correctly.

Compiling folder-by-folder version 2.24-3 from the stable cvs tree, I was happy not to find the numeric_limits issue.

The main problems are in the ide.
I needed to patch those files inserting explicitly some standard library references to get them work with g++ 4.3.1 without errors!

Now I will try the full standard Makefile-recursive compilation. But the pieces now work!

If everything will go smoothly there will be only an issue left: I wasn't able to enable the X part of the program by now...
e qua chissà cosa ha fatto... :(
They see me trollin
entoni
Prode Principiante
Messaggi: 13
Iscrizione: mercoledì 17 settembre 2008, 14:12

Re: problema con freefem++

Messaggio da entoni »

grazie del sostegno!
vediamo un po che si puo fare...
Avatar utente
Ipnorospo
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3685
Iscrizione: venerdì 5 gennaio 2007, 1:57

Re: problema con freefem++

Messaggio da Ipnorospo »

grazie del sostegno!
vediamo un po che si puo fare...
non sono così avanti da sapere cosa bisogna aggiungere per far sì che si compili bene con le versioni recenti di gcc, al limite proverei a contattarlo e vedere cosa ti dice(intendo il mantainer del pacchetto)... :-\
They see me trollin
Avatar utente
FioPos
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 428
Iscrizione: mercoledì 7 maggio 2008, 20:50
Distribuzione: Ubuntu 12.10 Quantal 64 bit
Località: prov. CO

Re: problema con freefem++

Messaggio da FioPos »

è tutto oggi che sto sbattendo la testa con gcc-3.4... ho bisogno di installare g77 per tentare di far girare freefem su intrepid, ma se ci provo mi trova solo la versione nuova, se faccio forza versione poi mi va in conflitto con alltro...  >:(
Avatar utente
FioPos
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 428
Iscrizione: mercoledì 7 maggio 2008, 20:50
Distribuzione: Ubuntu 12.10 Quantal 64 bit
Località: prov. CO

Re: problema con freefem++

Messaggio da FioPos »

ciao alla fine sono riuscito a installare g77 rimuovendo le nuove versioni dei pacchetti gcc e compagnia e installando manualmente quelle che mi richiedeva g77, però sono alle prese con altri problemi.
Ho provato a installare tutti i pacchetti suggeriti nell'altra discussione ma con questo risultati.

./configure:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking how to get verbose linking output from g77... -v
checking for Fortran libraries of g77...  -L/usr/lib/gcc/x86_64-linux-gnu/3.4.6 -L/usr/lib/gcc/x86_64-linux-gnu/3.4.6/../../../../lib -L/usr/lib/gcc/x86_64-linux-gnu/3.4.6/../../.. -L/lib/../lib -L/usr/lib/../lib -lfrtbegin -lg2c -lm -lgcc_s
try 0
try 0
try 0
try 0
try 0
configure: WARNING:   get dir of -lg2c  FLIBS :   -lg2c
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for pthread_create in -lpthread... yes
checking wether we are on a MacIntosh... no
checking wether we are on  SunOS... no
checking wether we are on Microsoft Windows... no
checking whether to generate debugging information... no
checking whether the C compiler accepts -O3... yes
checking whether the C++ compiler accepts -O3... yes
checking whether the Fortran 77 compiler accepts -O3... yes
checking whether the C compiler accepts -mmmx... yes
checking whether the C++ compiler accepts -mmmx... yes
checking whether the Fortran 77 compiler accepts -mmmx... yes
checking whether the C compiler accepts -msse... yes
checking whether the C++ compiler accepts -msse... yes
checking whether the Fortran 77 compiler accepts -msse... yes
checking whether the C compiler accepts -msse2... yes
checking whether the C++ compiler accepts -msse2... yes
checking whether the Fortran 77 compiler accepts -msse2... yes
checking whether the C compiler accepts -m3dnow... yes
checking whether the C++ compiler accepts -m3dnow... yes
checking whether the Fortran 77 compiler accepts -m3dnow... yes
checking suffix to add to package name... none
checking wether we can compile for X11... yes
checking how to run the C++ preprocessor... g++ -E
checking for X... no
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking OpenGL/gl.h usability... no
checking OpenGL/gl.h presence... no
checking for OpenGL/gl.h... no
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glx.h usability... yes
checking GL/glx.h presence... yes
checking for GL/glx.h... yes
checking for gluSphere in -lGLU... no
checking add suffix  ... yes
checking for mpiCC... no
checking for arit_zero in -lcadnafree... no
checking /media/Doc/freefem++-2.24-2/download/cadna/cadnafree.h usability... no
checking /media/Doc/freefem++-2.24-2/download/cadna/cadnafree.h presence... no
checking for /media/Doc/freefem++-2.24-2/download/cadna/cadnafree.h... no
configure:  without cadna *****
checking for fftw_execute in -lfftw3... yes
checking fftw3.h usability... yes
checking fftw3.h presence... yes
checking for fftw3.h... yes
checking for daxpy_ in -framework vecLib... no
checking for daxpy_ in -lblas... yes
checking for blas_zdotu_sub in -lblas... yes

checking cblas.h usability... yes
checking cblas.h presence... yes
checking for cblas.h... yes
checking vecLib/cblas.h usability... no
checking vecLib/cblas.h presence... no
checking for vecLib/cblas.h... no
checking atlas/cblas.h usability... no
checking atlas/cblas.h presence... no
checking for atlas/cblas.h... no
checking for lapack in LIBS  ... no
checking for dsaupd_ in -larpack... no
checking for libarpack with locate... no
configure: -- NO ARPACK --  wget: no
checking umfpack.h usability... no
checking umfpack.h presence... no
checking for umfpack.h... no
checking umfpack/umfpack.h usability... no
checking umfpack/umfpack.h presence... no
checking for umfpack/umfpack.h... no
checking ufsparse/umfpack.h usability... no
checking ufsparse/umfpack.h presence... no
checking for ufsparse/umfpack.h... no
checking suitesparse/umfpack.h usability... no
checking suitesparse/umfpack.h presence... no
checking for suitesparse/umfpack.h... no
checking UMFPACK/umfpack.h usability... no
checking UMFPACK/umfpack.h presence... no
checking for UMFPACK/umfpack.h... no
checking for amd_info in -lamd... no
configure: -- NOT  UMFPACK  ff_wget = no
checking for asinh... yes
checking for acosh... yes
checking for atanh... yes
checking for getenv... yes
checking for jn... yes
checking for erfc... yes
checking for tgamma... yes
checking for second_... yes
checking for libtool... yes
checking for dlfcn.h... yes
checking for dlinfo in -ldl... yes
checking whether dlopen links ok... yes
checking whether the C++ compiler accepts -rdynamic... yes
checking for latex... yes
checking for makeindex... yes
checking for dvips... yes
checking for pdf2ps... yes
checking for epstopdf... yes
checking for convert... no
checking for pdflatex... yes
checking for fltk-config... yes
checking that FLTK is compiled with threads... yes
checking flex compatibility with bison... yes
checking kernel version... 2.6.24
checking libc version... libc-2.8.90
configure: creating ./config.status
config.status: creating Makefile
config.status: creating download/Makefile
config.status: creating download/blas/Makefile
config.status: creating download/arpack/Makefile
config.status: creating download/umfpack/Makefile
config.status: creating download/fltk/Makefile
config.status: creating src/Makefile
config.status: creating src/bamglib/Makefile
config.status: creating src/Graphics/Makefile
config.status: creating src/femlib/Makefile
config.status: creating src/Algo/Makefile
config.status: creating src/lglib/Makefile
config.status: creating src/fflib/Makefile
config.status: creating src/std/Makefile
config.status: creating src/x11/Makefile
config.status: creating src/ide/Makefile
config.status: creating src/nw/Makefile
config.status: creating src/mpi/Makefile
config.status: creating src/agl/Makefile
config.status: creating src/glx/Makefile
config.status: creating src/bamg/Makefile
config.status: creating src/bin-win32/Makefile
config.status: creating examples++/Makefile
config.status: creating examples++-eigen/Makefile
config.status: creating examples++-tutorial/Makefile
config.status: creating examples++-mpi/Makefile
config.status: creating examples++-load/Makefile
config.status: creating examples++-chapt3/Makefile
config.status: creating examples++-bug/Makefile
config.status: creating examples++-other/Makefile
config.status: creating DOC/Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure:   freefem++ used  download : 
configure: --  Dynamic load facility: yes
configure: --  ARPACK (eigen value): no
configure: --  UMFPACK (sparse solver) no
configure: --  BLAS yes
configure: --  FLTK (ide package) yes
configure: --  with X11             no
configure: --  with MPI             no
configure:     progs:  FreeFem++-nw bamg  cvmsh2    FreeFem++-ide FreeFem++-cs FreeFem++-client FreeFem++-server   

make (risparmio la prima parte):
ake[4]: Entering directory `/media/Doc/freefem++-2.24-2/src/fflib'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -m3dnow -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT AFunction.o -MD -MP -MF ".deps/AFunction.Tpo" -c -o AFunction.o AFunction.cpp; \
then mv -f ".deps/AFunction.Tpo" ".deps/AFunction.Po"; else rm -f ".deps/AFunction.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -m3dnow -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT AFunction2.o -MD -MP -MF ".deps/AFunction2.Tpo" -c -o AFunction2.o AFunction2.cpp; \
then mv -f ".deps/AFunction2.Tpo" ".deps/AFunction2.Po"; else rm -f ".deps/AFunction2.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -m3dnow -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT array_long.o -MD -MP -MF ".deps/array_long.Tpo" -c -o array_long.o array_long.cpp; \
then mv -f ".deps/array_long.Tpo" ".deps/array_long.Po"; else rm -f ".deps/array_long.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -m3dnow -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT array_real.o -MD -MP -MF ".deps/array_real.Tpo" -c -o array_real.o array_real.cpp; \
then mv -f ".deps/array_real.Tpo" ".deps/array_real.Po"; else rm -f ".deps/array_real.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -m3dnow -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT array_complex.o -MD -MP -MF ".deps/array_complex.Tpo" -c -o array_complex.o array_complex.cpp; \
then mv -f ".deps/array_complex.Tpo" ".deps/array_complex.Po"; else rm -f ".deps/array_complex.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -m3dnow -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT lex.o -MD -MP -MF ".deps/lex.Tpo" -c -o lex.o lex.cpp; \
then mv -f ".deps/lex.Tpo" ".deps/lex.Po"; else rm -f ".deps/lex.Tpo"; exit 1; fi
lex.cpp: In member function ‘int mylex::EatCommentAndSpace(std::string*)’:
lex.cpp:167: warning: deprecated conversion from string constant to ‘char*’
lex.cpp: In member function ‘int mylex::basescan()’:
lex.cpp:217: warning: deprecated conversion from string constant to ‘char*’
lex.cpp:237: warning: deprecated conversion from string constant to ‘char*’
lex.cpp:268: warning: deprecated conversion from string constant to ‘char*’
lex.cpp:270: warning: deprecated conversion from string constant to ‘char*’
lex.cpp:344: warning: deprecated conversion from string constant to ‘char*’
lex.cpp: In member function ‘bool mylex::SetMacro(int&)’:
lex.cpp:469: warning: deprecated conversion from string constant to ‘char*’
lex.cpp:473: warning: deprecated conversion from string constant to ‘char*’
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -m3dnow -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT lgmesh.o -MD -MP -MF ".deps/lgmesh.Tpo" -c -o lgmesh.o lgmesh.cpp; \
then mv -f ".deps/lgmesh.Tpo" ".deps/lgmesh.Po"; else rm -f ".deps/lgmesh.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -DNDEBUG -O3 -mmmx -msse -msse2 -m3dnow -DDRAWING -DBAMG_LONG_LONG  -DNCHECKPTR -rdynamic -MT lgmat.o -MD -MP -MF ".deps/lgmat.Tpo" -c -o lgmat.o lgmat.cpp; \
then mv -f ".deps/lgmat.Tpo" ".deps/lgmat.Po"; else rm -f ".deps/lgmat.Tpo"; exit 1; fi
In file included from lgmat.cpp:40:
../femlib/MatriceCreuse_tpl.hpp: In member function ‘bool MatriceProfile::addMatTo(R, std::map, R, std::less >, std::allocator, R> > >&, bool, int, int, bool)’:
../femlib/MatriceCreuse_tpl.hpp:270: error: ‘numeric_limits’ was not declared in this scope
../femlib/MatriceCreuse_tpl.hpp:270: error: expected primary-expression before ‘double’
../femlib/MatriceCreuse_tpl.hpp:270: error: expected ‘,’ or ‘;’ before ‘double’
../femlib/MatriceCreuse_tpl.hpp: In member function ‘bool MatriceMorse::addMatTo(R, std::map, R, std::less >, std::allocator, R> > >&, bool, int, int, bool)’:
../femlib/MatriceCreuse_tpl.hpp:1163: error: ‘numeric_limits’ was not declared in this scope
../femlib/MatriceCreuse_tpl.hpp:1163: error: expected primary-expression before ‘double’
../femlib/MatriceCreuse_tpl.hpp:1163: error: expected ‘,’ or ‘;’ before ‘double’
../femlib/MatriceCreuse_tpl.hpp: In member function ‘void MatriceMorse::prod(const MatriceMorse&, MatriceMorse&)’:
../femlib/MatriceCreuse_tpl.hpp:1275: error: ‘numeric_limits’ was not declared in this scope
../femlib/MatriceCreuse_tpl.hpp:1275: error: expected primary-expression before ‘double’
../femlib/MatriceCreuse_tpl.hpp:1275: error: expected ‘,’ or ‘;’ before ‘double’
lgmat.cpp: In function ‘void BuildCombMat(std::map, R, std::less >, std::allocator, R> > >&, const KNM_&, int, int, R, bool)’:
lgmat.cpp:475: error: ‘numeric_limits’ was not declared in this scope
lgmat.cpp:475: error: expected primary-expression before ‘double’
lgmat.cpp:475: error: expected ‘,’ or ‘;’ before ‘double’
make[4]: *** [lgmat.o] Error 1
make[4]: Leaving directory `/media/Doc/freefem++-2.24-2/src/fflib'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/media/Doc/freefem++-2.24-2/src/fflib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/media/Doc/freefem++-2.24-2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/Doc/freefem++-2.24-2'
make: *** [all] Error 2

In particolare ho notato rispetto al post dell'altra discussione (in cui l'installazione era riuscita) che ho alcuni "no" che lui non aveva su 'convert', 'X' e in fondo su  'ARPAC' e 'UMFPACK'.
Però non riesco a trovare i pacchetti mancanti, mi sapreste dare una mano?
Grazie in anticipo  ;)
Avatar utente
Ipnorospo
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3685
Iscrizione: venerdì 5 gennaio 2007, 1:57

Re: problema con freefem++

Messaggio da Ipnorospo »

ciao,cercando ho trovato questa discussione:http://forum.ubuntu-it.org/viewtopic.php?t=152489
se non altro è un pò più recente...
prova a dare come suggerito:

Codice: Seleziona tutto

sudo apt-get build-dep nomeprogramma
per vedere se ti manca qualche dipendenza...
They see me trollin
Avatar utente
FioPos
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 428
Iscrizione: mercoledì 7 maggio 2008, 20:50
Distribuzione: Ubuntu 12.10 Quantal 64 bit
Località: prov. CO

Re: problema con freefem++

Messaggio da FioPos »

grazie per la dritta, ma il guiaio è (come si diceva anche di là) che la versione dei repo è proprio un programma vecchio, mentre non c'è freefem++... quindi non posso farli trovare le dipendenze di un pacchetto che non c'è (al massimo qualcuna potrebbe esssere in comune col vecchio x puro culo..  ;D)
Cmq ora sto provando a installare il pacchetto che suggerisce quella discussione... vediamo
Avatar utente
Ipnorospo
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3685
Iscrizione: venerdì 5 gennaio 2007, 1:57

Re: problema con freefem++

Messaggio da Ipnorospo »

al massimo qualcuna potrebbe esssere in comune col vecchio x puro culo
sì, l'idea è sperare che abbiano un pò di dipendenze in comune...
They see me trollin
Avatar utente
FioPos
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 428
Iscrizione: mercoledì 7 maggio 2008, 20:50
Distribuzione: Ubuntu 12.10 Quantal 64 bit
Località: prov. CO

Re: problema con freefem++

Messaggio da FioPos »

provato ho provato ma senza risultato!  ;D
Ho installato più o meno di tutto cercando di soddisfare i "no" che mi dà in output il 'configure', ora ce ne sono un po' meno ma comunque il make dà errori. Più tardi cerco di postare i risultati... grazie intanto per l'aiuto
Avatar utente
FioPos
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 428
Iscrizione: mercoledì 7 maggio 2008, 20:50
Distribuzione: Ubuntu 12.10 Quantal 64 bit
Località: prov. CO

Re: problema con freefem++

Messaggio da FioPos »

Allora dopo un'altro maremoto di pacchetti installlati, non ne sono ancora venuto a capo. Il guaio è che quel dannato configure non ti dice chiaro e tondo che pacchetti vuole, solodei 'no' su alcuni elementi che quando vai a cercare da che diavolo di pacchetto escono, scopri che potrebbero essere cento. Un esempio su tutti il "with MPI... no" alla fine del configure, ci sono decine dipacchetti conntenti mpi nel nome declinati in varie salse... idem per openGL più su:

Codice: Seleziona tutto

./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking how to get verbose linking output from g77... -v
checking for Fortran libraries of g77...  -L/usr/lib/gcc/x86_64-linux-gnu/3.4.6 -L/usr/lib/gcc/x86_64-linux-gnu/3.4.6/../../../../lib -L/usr/lib/gcc/x86_64-linux-gnu/3.4.6/../../.. -L/lib/../lib -L/usr/lib/../lib -lfrtbegin -lg2c -lm -lgcc_s
 try 0 
 try 0 
 try 0 
 try 0 
 try 0 
configure: WARNING:   get dir of -lg2c  FLIBS :   -lg2c 
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for pthread_create in -lpthread... yes
checking wether we are on a MacIntosh... no
checking wether we are on  SunOS... no
checking wether we are on Microsoft Windows... no
checking whether to generate debugging information... no
checking whether the C compiler accepts -O3... yes
checking whether the C++ compiler accepts -O3... yes
checking whether the Fortran 77 compiler accepts -O3... yes
checking whether the C compiler accepts -mmmx... yes
checking whether the C++ compiler accepts -mmmx... yes
checking whether the Fortran 77 compiler accepts -mmmx... yes
checking whether the C compiler accepts -msse... yes
checking whether the C++ compiler accepts -msse... yes
checking whether the Fortran 77 compiler accepts -msse... yes
checking whether the C compiler accepts -msse2... yes
checking whether the C++ compiler accepts -msse2... yes
checking whether the Fortran 77 compiler accepts -msse2... yes
checking whether the C compiler accepts -m3dnow... yes
checking whether the C++ compiler accepts -m3dnow... yes
checking whether the Fortran 77 compiler accepts -m3dnow... yes
checking suffix to add to package name... none
checking wether we can compile for X11... yes
checking how to run the C++ preprocessor... g++ -E
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XF86VidModeQueryVersion in -lXxf86vm... no
checking for XpmReadFileToImage in -lXpm... yes
checking for X11_LIBS... "  -lXext  -lX11 -lXpm  -lm"
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking OpenGL/gl.h usability... no
checking OpenGL/gl.h presence... no
checking for OpenGL/gl.h... no
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glx.h usability... yes
checking GL/glx.h presence... yes
checking for GL/glx.h... yes
checking for glBegin in -lGL... yes
checking for gluSphere in -lGLU... yes
checking add suffix  ... yes
checking for mpiCC... no
checking for arit_zero in -lcadnafree... no
checking /media/Doc/freefem++-2.24-2/download/cadna/cadnafree.h usability... no
checking /media/Doc/freefem++-2.24-2/download/cadna/cadnafree.h presence... no
checking for /media/Doc/freefem++-2.24-2/download/cadna/cadnafree.h... no
configure:  without cadna ***** 
checking for fftw_execute in -lfftw3... yes
checking fftw3.h usability... yes
checking fftw3.h presence... yes
checking for fftw3.h... yes
checking for daxpy_ in -framework vecLib... no
checking for daxpy_ in -lblas... yes
checking for blas_zdotu_sub in -lblas... yes

checking cblas.h usability... yes
checking cblas.h presence... yes
checking for cblas.h... yes
checking vecLib/cblas.h usability... no
checking vecLib/cblas.h presence... no
checking for vecLib/cblas.h... no
checking atlas/cblas.h usability... no
checking atlas/cblas.h presence... no
checking for atlas/cblas.h... no
checking for lapack in LIBS  ... no
checking for dsaupd_ in -larpack... yes
checking umfpack.h usability... no
checking umfpack.h presence... no
checking for umfpack.h... no
checking umfpack/umfpack.h usability... yes
checking umfpack/umfpack.h presence... yes
checking for umfpack/umfpack.h... yes
checking ufsparse/umfpack.h usability... no
checking ufsparse/umfpack.h presence... no
checking for ufsparse/umfpack.h... no
checking suitesparse/umfpack.h usability... no
checking suitesparse/umfpack.h presence... no
checking for suitesparse/umfpack.h... no
checking for amd_info in -lamd... yes
checking for umf_i_malloc in -lumfpack... yes
checking for asinh... yes
checking for acosh... yes
checking for atanh... yes
checking for getenv... yes
checking for jn... yes
checking for erfc... yes
checking for tgamma... yes
checking for second_... yes
checking for times... yes
checking for sysconf... yes
checking for libtool... yes
checking for dlfcn.h... yes
checking for dlinfo in -ldl... yes
checking whether dlopen links ok... yes
checking whether the C++ compiler accepts -rdynamic... yes
checking for latex... yes
checking for makeindex... yes
checking for dvips... yes
checking for pdf2ps... yes
checking for epstopdf... yes
checking for convert... no
checking for pdflatex... yes
checking for fltk-config... yes
checking that FLTK is compiled with threads... yes
checking flex compatibility with bison... yes
checking kernel version... 2.6.24
checking libc version... libc-2.8.90
configure: creating ./config.status
config.status: creating Makefile
config.status: creating download/Makefile
config.status: creating download/blas/Makefile
config.status: creating download/arpack/Makefile
config.status: creating download/umfpack/Makefile
config.status: creating download/fltk/Makefile
config.status: creating src/Makefile
config.status: creating src/bamglib/Makefile
config.status: creating src/Graphics/Makefile
config.status: creating src/femlib/Makefile
config.status: creating src/Algo/Makefile
config.status: creating src/lglib/Makefile
config.status: creating src/fflib/Makefile
config.status: creating src/std/Makefile
config.status: creating src/x11/Makefile
config.status: creating src/ide/Makefile
config.status: creating src/nw/Makefile
config.status: creating src/mpi/Makefile
config.status: creating src/agl/Makefile
config.status: creating src/glx/Makefile
config.status: creating src/bamg/Makefile
config.status: creating src/bin-win32/Makefile
config.status: creating examples++/Makefile
config.status: creating examples++-eigen/Makefile
config.status: creating examples++-tutorial/Makefile
config.status: creating examples++-mpi/Makefile
config.status: creating examples++-load/Makefile
config.status: creating examples++-chapt3/Makefile
config.status: creating examples++-bug/Makefile
config.status: creating examples++-other/Makefile
config.status: creating DOC/Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure:   freefem++ used  download :  
configure: 	 	 --  Dynamic load facility: yes 
configure: 		 --  ARPACK (eigen value): yes 
configure: 		 --  UMFPACK (sparse solver) yes 
configure: 		 --  BLAS yes 
configure: 		 --  FLTK (ide package) yes 
configure: 		 --  with X11             yes
configure: 		 --  with MPI             no
configure:     progs: FreeFem++ FreeFem++-nw bamg  cvmsh2 drawbdmesh FreeFem++-glx   FreeFem++-ide FreeFem++-cs FreeFem++-client FreeFem++-server   
scusate lo sfogo ma è davvero frustrante, tra l'altro devo anche bloccare gli aggiornamenti automatici che vorrebbero farmi avanzare gcc e compagnia bella... già perchè ho dovuto di proposito installare le vecchie versioni altrimenti g77 non funziona con intrepid!  >:(
Sinceramnete sto pensando di installarlo su windows, per principio non mi va di gettare subito la spugna e tornare a redmond con la coda tra le gambe al primo problema ma con questo maledetto freefem sto esurendo la pazienza.

Ah x la cronaca il risultato del make:

Codice: Seleziona tutto

	....
hen mv -f ".deps/lgmat.Tpo" ".deps/lgmat.Po"; else rm -f ".deps/lgmat.Tpo"; exit 1; fi
In file included from lgmat.cpp:40:
../femlib/MatriceCreuse_tpl.hpp: In member function ‘bool MatriceProfile<R>::addMatTo(R, std::map<std::pair<int, int>, R, std::less<std::pair<int, int> >, std::allocator<std::pair<const std::pair<int, int>, R> > >&, bool, int, int, bool)’:
../femlib/MatriceCreuse_tpl.hpp:270: error: ‘numeric_limits’ was not declared in this scope
../femlib/MatriceCreuse_tpl.hpp:270: error: expected primary-expression before ‘double’
../femlib/MatriceCreuse_tpl.hpp:270: error: expected ‘,’ or ‘;’ before ‘double’
../femlib/MatriceCreuse_tpl.hpp: In member function ‘bool MatriceMorse<R>::addMatTo(R, std::map<std::pair<int, int>, R, std::less<std::pair<int, int> >, std::allocator<std::pair<const std::pair<int, int>, R> > >&, bool, int, int, bool)’:
../femlib/MatriceCreuse_tpl.hpp:1163: error: ‘numeric_limits’ was not declared in this scope
../femlib/MatriceCreuse_tpl.hpp:1163: error: expected primary-expression before ‘double’
../femlib/MatriceCreuse_tpl.hpp:1163: error: expected ‘,’ or ‘;’ before ‘double’
../femlib/MatriceCreuse_tpl.hpp: In member function ‘void MatriceMorse<R>::prod(const MatriceMorse<RB>&, MatriceMorse<RAB>&)’:
../femlib/MatriceCreuse_tpl.hpp:1275: error: ‘numeric_limits’ was not declared in this scope
../femlib/MatriceCreuse_tpl.hpp:1275: error: expected primary-expression before ‘double’
../femlib/MatriceCreuse_tpl.hpp:1275: error: expected ‘,’ or ‘;’ before ‘double’
lgmat.cpp: In function ‘void BuildCombMat(std::map<std::pair<int, int>, R, std::less<std::pair<int, int> >, std::allocator<std::pair<const std::pair<int, int>, R> > >&, const KNM_<R>&, int, int, R, bool)’:
lgmat.cpp:475: error: ‘numeric_limits’ was not declared in this scope
lgmat.cpp:475: error: expected primary-expression before ‘double’
lgmat.cpp:475: error: expected ‘,’ or ‘;’ before ‘double’
make[3]: *** [lgmat.o] Error 1

Se qualcuno riesce a darmi qualche altra idea farei volentieri qualche ultimo tentativo.
ciao a tutti
make[3]: Leaving directory `/media/Doc/freefem++-2.24-2/src/fflib'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/media/Doc/freefem++-2.24-2/src/fflib'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/media/Doc/freefem++-2.24-2/src'
make: *** [install-recursive] Error 1
Avatar utente
FioPos
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 428
Iscrizione: mercoledì 7 maggio 2008, 20:50
Distribuzione: Ubuntu 12.10 Quantal 64 bit
Località: prov. CO

Re: problema con freefem++ RISOLTO!!!!!!!!!!!!!!!!!!!

Messaggio da FioPos »

:)  (good) 
Ho finalmente trovato come uscire dalle sabbie mobili!! Non nel senso che sono riuscito a compilare corretttamnete i simpatici sorgenti di freefem++, ma non mi è più necessario.

Mi sono infatti imbattuto in questo "Freefem++-cs - an integrated environment for FreeFem++" , sinceramente non ho avuto tempo e voglia finora di leggermi per bene cosa sia e cosa cambi rispetto a FreeFem++ standard ma la cosa importante è questa: basta scaricare l'arhivio tar.gz (questo è il link: http://www.ann.jussieu.fr/~lehyaric/ffc ... 3-1548.php), scompattare il tutto in una posizione a piacere (magari una cartella che non richieda privilegi di root x non avere grane) e poi... un bel doppio clic sull'applicazione eseguibile "FreeFem++-cs" !!
Il programma partirà subito senza bisogno di installazioni ulteriori.

L'interfaccia e il funzionamento mi sembrano identici alla versione x win che ho usato in università, gestisce i file .edp ... perfetto!  (yes) ,
Quindi almeno per quanto mi riguarda problema risolto, spero la cosa possa servire anche ad altri (anzi magari metto un link a questa discussione anche negli altri treadh sull'argomento)
francescogro
Prode Principiante
Messaggi: 7
Iscrizione: venerdì 19 ottobre 2007, 9:43

Re: problema con freefem++

Messaggio da francescogro »

Ciao! Anch'io ho avuto problemi a installare Freefem++ su Intrepid, penso a causa della mancanza del pacchetto g77, compilatore di fortran 77.
Non ho capito come mai abbiano smesso  di supportarlo, comunque dopo ore di smanettamenti sono riuscito a installare freefem++ 3.0.5!
Ecco una miniprocedura:
-> installare le dipendenze richieste nel README che trovate nel tar scaricato dal sito ufficiale.
Le dipendenze sono:
  gcc g++  g77
  wget
  m4 bison flex patch
  libx11-dev libxt-dev libxext-dev
    libxpm4 libxpm4-dbg
    libsuitesparse-dev libarpack2-devlibarpack2 libarpack2-dev
    libfltk1.1 libfltk1.1-dbg libfltk1.1-dev
    libopenmpi1 libopenmpi-dev
    libopenmpi-dbg libxpm-dev
    freeglut3 freeglut3-dev
    libx11-dev  libxt-dev  libxext-dev
    libglut3-dev
Con synaptics ve la cavate rapidamente. Alcuni pacchetti in realtà non ci sono nei repository, tipo g77 e libarpack. Fa niente!
Quello che è importante è che installiate il pacchetto gfortran (io ho installato anche fort77 e f2c ma non sono sicuro che siano vitali per la compilazione)

Nota: Se volete usare freefem MPI, la versione parallela, potreste dover installare libmpich e pacchetti correlati.

-> A questo punto, navigate nella cartella in cui avete scompattato il tar e lanciate:

Codice: Seleziona tutto

./configure '--enable-download' 'F77=gfortran'
Così il make può recuperare da internet i pacchetti che gli servono, e dovrebbe usare gfortran invece di g77 per compilare le librerie scritte in fortran.

Nota: se siete dietro un proxy dovete settare wget adeguatamente perché scarichi i file da internet. Googlate "wget proxy set" o simili.

Ora tutto dovrebbe essere pronto per il famigerato:

Codice: Seleziona tutto

make
e quindi, dopo una decina di minuti (per me),

Codice: Seleziona tutto

sudo make install
Se tutto va bene, siete entrati nel mondo delle EDP!!!!!!
Avatar utente
FioPos
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 428
Iscrizione: mercoledì 7 maggio 2008, 20:50
Distribuzione: Ubuntu 12.10 Quantal 64 bit
Località: prov. CO

Re: problema con freefem++

Messaggio da FioPos »

magari quando avrò tempo - dopo gli esami molto facilmente...  >:( -ci riprovo, più per principio che x altro visto che con Freefem - cs ho felicemente aggirato il problema e sono comunque entrato nello scintillante mondo delle edp....  :)
Scrivi risposta

Ritorna a “Applicazioni”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 6 ospiti