FreeFem++-cs
an integrated environment for FreeFem++
Antoine Le Hyaric, Jacques-Louis Lions Laboratory, Pierre and Marie Curie University.

 

Installation Instructions

Download FreeFem++-cs from http://www.ljll.math.upmc.fr/~lehyaric/ffcs/install.php. You do not need to be an administrator to install and use FreeFem++-cs in your own account. You do not need to remove other versions of FreeFem++-cs or FreeFem++ from your machine (several different versions of FreeFem++-cs can coexist on the same machine or even in the same account without interference).

The FreeFem++-cs package contains the following programs :

  • FreeFem++-cs : main user interface (including editor and 3D graphics)
  • FreeFem++-cli : command-line interface (no editor)
  • FreeFem++-lang : FreeFem++ language interpreter (used by FreeFem++-cs and FreeFem++-cli)
  • FreeFem++-mpilang : FreeFem++ language interpreter for parallel EDP scripts
  • FreeFem++-server : standalone server, used only when the client and the server do not run on the same machine
  • FreeFem++-vtk : standalone 3D graphics, used only with FreeFem++

1. Windows

Run the executable install package. Then click on the FreeFem++-cs icon on the desktop to run the software.

Note for MPI users on 32-bit Windows : FreeFem++-cs can run FreeFem++ MPI scripts on the local machine only if http://www.microsoft.com/download/en/details.aspx?id=14737 is installed. If MPI is not installed locally, FreeFem++-cs can still run parallel scripts on remote servers.

Note for MPI users on 64-bit Windows : FreeFem++-cs is not able to use MPI on Win64 platforms yet, but it can still run parallel scripts on remote servers.

2. MacOS

Unpack the ZIP archive onto the Desktop. Then click on the FreeFem++-cs icon to run the software.

Note about X11 for MacOS : FreeFem++-cs needs the X11 application. On MacOS 10.5 or later, X11 is started automatically. On MacOS 10.4 or earlier, X11 needs to be started by hand (from Applications/Utilities) before FreeFem++-cs. For more information about X11, please check http://en.wikipedia.org/wiki/X11.app

3. Linux

Untar the package to any location (e.g. the desktop). Then click on "FreeFem++-cs" (in the package main directory) to run the software.

Under Gnome, you have the option to click on "install_on_gnome_desktop" to create a FreeFem++-cs icon on the Gnome desktop.

_MPICH_ needs to be installed before running any parallel FreeFem++ scripts.

4. Compiling from Source

4.1. Prerequisites for Windows

Install Cygwin and its following extra packages : cygstart /cygdrive/c/tmp/setup.exe --quiet-mode --packages bison,curl,flex,gcc-core,gcc-g++,m4,make,opengl,patch,perl,rsync,unzip,wget,cmake,bzip2 . Also install Inno Setup (http://www.jrsoftware.org/isinfo.php). MinGW/MinGW-w64 will be downloaded automatically during the FreeFem++-cs building process. During FreeFem++-cs development, KDiff3 can also be downloaded to merge Mercurial trees.

4.2. Prerequisites for MacOS X

Please install MacPorts and issue the following command : sudo port install perl5 g95 openmpi/+gcc46 xorg-libXext xorg-libXt cmake bzip2

4.3. Prerequisites for Linux

Install the following packages :

  • apt-get-based distributions (like Ubuntu or Debian) : sudo apt-get install bison curl flex g++ gfortran libx11-dev libice-dev libsm-dev libxau-dev libxdmcp-dev libxrender-dev libxft-dev libxext-dev libxpm-dev libxt-dev m4 make mesa-common-dev libglu1-mesa-dev patch wget mpich2 cmake bzip2
  • yum-based distributions (like Fedora) : sudo yum install bison curl flex gcc-c++ gcc-gfortran libXft-devel libXext-devel libXpm-devel libXt-devel m4 gmake mesa-common-dev mesa-libglu1-dev patch wget mpich2 cmake bzip2
  • 4.4. Compiling

    To extract the FreeFem++-cs source from an archive :

    • tar xzf ffcs-version-src.tgz
    • cd ffcs-version

    To extract the FreeFem++-cs source from Mercurial :

    • hg clone http://www.ljll.math.upmc.fr/~lehyaric/ffcs/dev ffcs-dev
    • cd ffcs-dev
    • autoreconf -i

    To compile FreeFem++-cs from the source on Linux, MacOS X or Cygwin :

  • ./configure (add "--help" for a list of options)
  • make
  • make install

The compilation process produces an install package for your architecture (.exe, .tgz, .app or .zip) in the pack subdirectory. Please refer to platform-specific instructions above to use this package.

Configuration options for Slackware 13.1 32 bits and 13.0 64 bits : (fred 01/10/10 13:28)

./configure --prefix=/opt/ffcs --localstatedir=/var --sysconfdir=/etc --libdir=/usr/lib64 --with-freefem-options="--enable-download --enable-optim --enable-opengl --with-flib=/usr/lib64/libgfortran.so.3.0.0 --with-mpi=yes"

5. Making FreeFem++-cs available to all users

On Windows, installing FreeFem++-cs as an administrator makes it automatically available to all users and sets new EDP files icons.

On Linux and MacOS, if you are an administrator, you can make FreeFem++-cs available to all users by running the script "install_as_root" (in the main directory) as root. It will copy the software into /usr/local and create symbolic links /usr/local/bin. For a more advanced setup, the script accepts two parameters: "./install_as_root <prefix> <bindir>". <prefix> is where the FreeFem++-cs directory will be copied (defaults to /usr/local). <bindir> is where soft links to the FreeFem++ and FreeFem++-cs executables will be created (defaults to <prefix>/bin). To uninstall the software, run the "uninstall" script found in the installed FreeFem++-cs directory.

6. Using a remote server

FreeFem++-cs is able to contact remote server to run FreeFem++ scripts :

  • Install FreeFem++-cs (or at least the client part if it was compiled separately) on the client computer (the one where graphics will be displayed).
  • Also install FreeFem++-cs (or at least the server part) on the computer where FreeFem++ computations will run.
  • Start FreeFem++-server on the server. If necessary, the command-line option "-ServerPort" makes the server listen to another TCP port than the default. Please be careful that the server should always be protected against unauthorized use. Because of the very high flexibility of the FreeFem++ language, internet access to this server should always be controlled and restricted to identified users (e.g. through the provided passwd file). As a precautionnary measure, the "system" keyword is disabled on remote FreeFem++-cs servers.
  • In the FreeFem++-cs client, check "Options/Remote Server" and specify the name of the server in "Options/Other Options/Server Name". You may also have to specify a TCP port number in "Options/Other Options/Server Port" if you used "-ServerPort" on the server. And also "Options/Other Options/Server User" and "Options/Other Options/Server Password" according to the contents of the FreeFem++-cs/passwd file on the server


Add your comments

Name :

Comments :


Please copy the following numbers (sorry, this is for computer-generated spam prevention) :





Previous comments (newest first)
bobgus 31/03/12 17:39
yum install ImageMagick

Did the trick
bobgus 31/03/12 17:29
Just a couple of comments.
1) the configure command line needs an explicit option telling whether you want mpi or not. I added --disable-mpi and my configure continued.

2) In the make install process, it is looking for the command 'convert', which I guess I do not have. See below

rsync -avq --delete ../doc/ \"work/Contents/Resources/doc\"
convert ../art/cs-logo-48-4.png work/Contents/Resources/logo.xpm
make[1]: convert: Command not found
make[1]: *** [work/Contents/Resources/logo.xpm] Error 127
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/user1/Downloads/ffcs-dev/pack\'
make: *** [install-recursive] Error 1
[user1@hoho6 ffcs-dev]$

I am running Fedora 16 on a 4 core Intel machine with 8GB.
antoine 15/03/12 11:28
Hi Matt,

It could be that the vtk subdirectory has been left in a bad state by a previous error. Could you \"make clean\" in that subdir, try \"make\" again and let me know if it works? If it does not, I will try to compile FFCS on Ubuntu 10.10 myself as well and let you know if I find anything.
Matt 14/03/12 22:25
Hello, I'm attempting to compile 12.3 on *buntu 10.10, and I'm getting the following error which I cannot seem to overcome...


+ cd ..
++ pwd
+ cmakeprog=/home/----/local_builds/freefem++-cs/ffcs-12.3/vtk/cmake-2.8.4/bin/cmake
+ vtk_tgz=vtk-5.6.1.tar.gz
+ vtk_dir=VTK
+ test '!' -f vtk-5.6.1.tar.gz
+ test '!' -d VTK
++ pwd
+ alhcwd=/home/----/local_builds/freefem++-cs/ffcs-12.3/vtk
+ cd VTK
+ test '!' -f ../patches.done
+ test '!' -f CMakeCache.txt
+ make -j 4
make[3]: Entering directory `/home/----/local_builds/freefem++-cs/ffcs-12.3/vtk/VTK'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
make[3]: *** No targets specified and no makefile found. Stop.
make[3]: Leaving directory `/home/----/local_builds/freefem++-cs/ffcs-12.3/vtk/VTK'
make[2]: *** [vtkbuild] Error 2
make[2]: Leaving directory `/home/----/local_builds/freefem++-cs/ffcs-12.3/vtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/----/local_builds/freefem++-cs/ffcs-12.3'
make: *** [all] Error 2


I'm kind of stumped at this point. I've managed to fix up all the errors I've had up until this point, but not this time. Any suggestions?
antoine 16/02/12 11:33
Hi Anna, Hi Tommity,

Congratulations for your good debugging work. Is there any chance that you could fix the bugs directly in Mercurial (as described on the \"Download\" page)? That would help me a lot.

Many thanks in advance,

Cheers,

A.
Anna 15/02/12 11:44
Thanks Tommity,

that helped a lot. I now compiled 12.1 sucessfully. One remark in addition to your hints:

I got additional ERRORS in auto depency searches for:
* superlu
* gmm
* (free)yams

The first two I solved by installing the respective AUR packages. I know it\'s also included in *ff*, but somehow didn\'t work. The yams error was strange, somehow the `ff/upstream/download/pkg/freeyams.2011.09.23.tgz` package was corrupt, so I pulled it from ffcs-11.14 and recompiled. that worked.

cheers!
Cico 06/02/12 10:57
Dear Antoine,

Here are problems, and (partial) solutions for compilation of FreeFem++-cs IDE 12.1 on Ubuntu 11.10 32 bit (in VirtualBox), with mpich2, and with

$ ./configure --with-freefem-options="--enable-download"

1) freeyams has newer version, so perhaps you should update Makefiles (required version is not avaliable anymore)
2) there are two wrong paths in ff/upstream/download/mmg3d/patch-mmg3dv4.diff:
- around line 633: change paths from mmg3d4/build/sources/mmg3d.c to mmg3d4/build/sources/mmg3dmain/mmg3d.c
- around line 802: change paths from mmg3d4/build/sources/mmg3dlib.c to mmg3d4/build/sources/mmg3dlib/mmg3dlib.c
3) dir pack/work/Contents/Resources/Doc has to be created manually before compilation

4) there is still problem with superlu. I capture output from make and in the *middle* there is following output (which eventually stops 'make', after a long time):

-----------------(capture)-------
\n\n ****** superlu ****** \n\n
egrep: WHERE-LD: No such file or directory
make[8]: Entering directory `/home/basletic/Desktop/ffcs-12.1/ff/upstream/download/superlu'
Makefile:20: ff-FLAGS: No such file or directory
grep '^CXX *=' ../Makefile >>ff-FLAGS
grep '^CC *=' ../Makefile >>ff-FLAGS
grep '^CFLAGS *=' ../Makefile|sed 's/$/ -fPIC/' >>ff-FLAGS
grep '^BLAS[A-Z ]*=' ../Makefile|grep = >>ff-FLAGS
grep '^AR *=' ../Makefile|grep = >>ff-FLAGS
grep '^ARFLAGS *=' ../Makefile|grep = >>ff-FLAGS
grep '^RANLIB *=' ../Makefile|grep = >>ff-FLAGS
grep '^WGET *=' ../Makefile|grep = >>ff-FLAGS
make[8]: Leaving directory `/home/basletic/Desktop/ffcs-12.1/ff/upstream/download/superlu'
make[8]: Entering directory `/home/basletic/Desktop/ffcs-12.1/ff/upstream/download/superlu'
make install
make[9]: Entering directory `/home/basletic/Desktop/ffcs-12.1/ff/upstream/download/superlu'
tar xvzf ../pkg/superlu_4.0.tar.gz
echo superlu LD -L@DIR@/lib -lsuperlu_4.0 >SuperLU_4.0/../../lib/WHERE.superlu
/bin/sh: cannot create SuperLU_4.0/../../lib/WHERE.superlu: Directory nonexistent
make[9]: *** [WHERE] Error 2
make[9]: *** Waiting for unfinished jobs....
SuperLU_4.0/
SuperLU_4.0/DOC/
-----------------(capture)-------

Note the Error at the end. I must say that I do not fully understand all the details and 'inner' workings, so I do not know exactly what to do with this information. Let me point out that after subsequent 'make' compilation ends with no error and program seems to be working (I did not made thorough tests).

I hope this may help you ...

Tommity 02/02/12 19:27
Installing on ArchLinux

First install mpich2 (it's on AUR: http://aur.archlinux.org/packages.php?ID=1503):
yaourt -S mpich2

Then extract the archive in the [dir_archive], go to that dir and start compiling:
./configure --with-mpi-prefix="/opt/mpich2/include" --with-mpi-path="/opt/mpich2/bin"

on error:
can't find file to patch at input line 633
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Only in mmg3d4-new/build/sources/: met
|diff -u mmg3d4/build/sources/mmg3d.c mmg3d4-new/build/sources/mmg3d.c
|--- mmg3d4/build/sources/mmg3d.c 2011-05-12 17:50:36.000000000 +0200
|+++ mmg3d4-new/build/sources/mmg3d.c 2011-09-01 19:36:51.000000000 +0200
--------------------------
File to patch: [dir_archive]/ff/upstream/download/mmg3d/mmg3d4/build/sources/mmg3dmain/mmg3d.c

on error:
can't find file to patch at input line 802
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u mmg3d4/build/sources/mmg3dlib.c mmg3d4-new/build/sources/mmg3dlib.c
|--- mmg3d4/build/sources/mmg3dlib.c 2011-04-15 15:32:59.000000000 +0200
|+++ mmg3d4-new/build/sources/mmg3dlib.c 2011-07-07 11:23:59.000000000 +0200
--------------------------
File to patch: [dir_archive]/ff/upstream/download/mmg3d/mmg3d4/build/sources/mmg3dlib/mmg3dlib.c

These two error appear also when you do "make", same solution!

If you got error creating the directories Resurces/doc make it and run again "make":
cd [dir_archive]/pack/work/Contents/
mkdir Resources
cd Resources
mkdir doc
cd [dir_archive]
make

At the end:
sudo make install

Done!

Hdd needed space to compile about 2.6GB
Time to compile: about 2hours on dualcore 2GHz
zellag 22/01/12 17:03
merci beaucoup
Anna 18/01/12 16:44
Hello, I\'m compiling 11.14 on archlinux. md5 check passed. only `./configure --prefix=/opt/ff-cs` is used.

`make` pauses for

patching file build/sources/mesh.h
can\'t find file to patch at input line 633
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Only in mmg3d4-new/build/sources/: met
|diff -u mmg3d4/build/sources/mmg3d.c mmg3d4-new/build/sources/mmg3d.c
|--- mmg3d4/build/sources/mmg3d.c 2011-05-12 17:50:36.000000000 +0200
|+++ mmg3d4-new/build/sources/mmg3d.c 2011-09-01 19:36:51.000000000 +0200
--------------------------
File to patch: ?

same at line 802, later it says

make[9]: *** [tag-tar] Error 1
make[9]: Leaving directory `/home/anna/src/ffcs-11.14/ff/upstream/download/mmg3d\'
make[8]: [build-4] Error 2 (ignored)

... and some more

then it continues compiling, and later it aborts at these files:

/home/anna/src/ffcs-11.14/ff/upstream/download/include/mmg3d-v4/dataff.h:71:6: error: multiple definition of ‘enum ff_data_type’
/home/anna/src/ffcs-11.14/ff/upstream/download/include/mmg3d-v4/dataff.h:11:6: error: previous definition here
/home/anna/src/ffcs-11.14/ff/upstream/download/include/mmg3d-v4/dataff.h:84:17: error: redefinition of ‘struct DataFF’
/home/anna/src/ffcs-11.14/ff/upstream/download/include/mmg3d-v4/dataff.h:24:17: error: previous definition of ‘struct DataFF’
/home/anna/src/ffcs-11.14/ff/upstream/download/include/mmg3d-v4/dataff.h:103:9: error: invalid type in declaration before ‘;’ token
/home/anna/src/ffcs-11.14/ff/upstream/download/include/mmg3d-v4/dataff.h:103:9: error: conflicting declaration ‘typedef int DataFF’
/home/anna/src/ffcs-11.14/ff/upstream/download/include/mmg3d-v4/dataff.h:43:3: error: ‘DataFF’ has a previous declaration as ‘typedef struct DataFF DataFF’
make[6]: *** [mmg3d-v4.0.so] Error 1

Could you provide any help? thanks
antoine 23/11/11 11:27
Hi lxy,

A new precompiled version of FFCS for Windows is now available for download. You are welcome to try it. Please let me know how it works for you.

Best regards,

Antoine.
Cico 18/11/11 11:53
Hi Antoine,

Thanks a lot! (Although, I do not mind compiling FFCS from source ...)
antoine 15/11/11 12:27
Hi Cico,

If you are interested, FFCS 11.12 now contains FreeFem++ 3.16 and is available from the download page, precompiled for Ubuntu 11.10.

Best regards,

Antoine.
antoine 10/11/11 12:04
Hi Cico,

Many thanks for the detailed solution.

Antoine.
Cico 08/11/11 15:55
I can confirm that following works:

1) adding
-D OPENGL_gl_LIBRARY=$ubuntux11libdir/libGL.so
in configure.ac (+autoconf)

2) adding
#include <stddef.h>
at the beginning if
ffcs-11.11/vtk/VTK/Utilities/vtkmetaio/metaUtils.cxx

Compilation works and executable seems to be working. (ffcs-11.11 source, FF++ 3.14, Ubuntu 11.10 32 bit)
Cico 08/11/11 11:12
Hi Antoine,

Thanks a lot for the fast answer! Yes, I was able to rectify a problem with OPENGL_gl_LIBRARY as you suggested, but as you said, there are still some problems during compilation ...

(You are probably aware of this, but: with vtk 5.6.1, compilation fails somewhere in vtk, seems to be a vtk problem?; with vtk 5.8.0 compilation fails due to the libdepend [perl] script complaining about missing file somewhere inside vtk [*.cmake file]; unfortunately at this moment this is above my expertize ...).

I am looking forward for your new package. And thanks again for the great program.
antoine 07/11/11 14:42
Hi Cico,

Thank you very much for the detailed report. I have noticed the same problem as you on Ubuntu 11.10 and we have reached the same conclusion: adding /usr/lib/i386-linux-gnu/... to the paths in ffcs/configure.ac (ie adding "-D OPENGL_gl_LIBRARY=$ubuntulibdir/libGL.so" to ffcs_vtk_cmake_opts). The package will be out as soon as the regression tests pass (I have a few other bugs to solve but it should not take long now).

Best regards,

Antoine.
Cico 07/11/11 14:22
Hi Antoine,

I am trying to compile your ffcs-11.11.tgz (\\\'Source\\\') on freshly installed Ubuntu 11.10 (32 bit; in VirtualBox). However, (your) VTK compilation fails because it cannot find OPENGL_gl_LIBRARY. You are using VTK version 5.6.x. I do not know about 5.8.x version ...

I tracked down the problem to location of Ubuntu-system-file libGL.so, on Ubuntu 11.10: it is not more in /usr/lib/ (as in Ubuntu 11.04 and 10.04, where I successfully compiled FFCS), but is installed (by default) in /usr/lib/i386-linux-gnu/

One obvious solution would be to copy or link libGL.so file to expected path (/usr/lib/), but I would rather correct this via VTK compilation. Could you please tell me where would I tell to VTK: OPENGL_gl_LIBRARY is (or includes) /usr/lib/i386-linux-gnu/ ? What would be the best place for this? I tried \\\'export OPENGL_gl_LIBRARY=/usr/lib/i386-linux-gnu/libGL.so\\\' before FFCS compilation, but without success.

(Admittedly, all this might be a VTK-problem, not FFCS-problem ...)
lxy 13/10/11 15:28
Dear Professor Antoine Le Hyaric,
I am very glad to receive your careful reply! Thank you very much for your consideration! Your reply is very helpful to me! But when compiling the ffcs-11.7 on Cygwin,the following error messages generate:
make[6]:***[UMFPACK64.dll]error1
make[6]:Leaving directory /home/lxy/ffcs-11.7/ff/upstream/examples++-load
make[5]:***[load_compile]error2
make[5]:Leaving directory /home/lxy/ffcs-11.7/ff/upstream/examples++-load
make[4]:***[all-recursive]error1
make[4]:Leaving directory /home/lxy/ffcs-11.7/ff/upstream
make[3]:***[all]error2
make[3]:Leaving directory /home/lxy/ffcs-11.7/ff/upstream
make[2]:***[compile]error2
make[2]:Leaving directory /home/lxy/ffcs-11.7/ff
make[1]:***[install]error2
make[1]:Leaving directory /home/lxy/ffcs-11.7/ff
make:***[install-recursive]error1
I am eager to receive your reply! Thank you very much for your kind consideration!
Best wishes to you!
antoine 12/10/11 11:21
@lxy:

The link to ffcs-11.7.tgz has been fixed. Please try and download it again from:

http://www.ljll.math.upmc.fr/lehyaric/ffcs/news/20110308-1432.php

Sorry for any inconvenience.

Best regards,

Antoine.
lxy 12/10/11 08:51
Dear Professor Antoine Le Hyaric,
I am very glad to receive your careful reply! Thank you very much for your consideration! Your reply is very helpful to me! But I can not download the ffcs-11.7.tgz from the webset
http://www.ann.jussieu.fr/~lehyaric/ffcs/news.htm, would it be possible to send me the ffcs-11.7.tgz (my email: (edited).And I had written a letter to you using this email.)? I am eager to receive your reply! Thank you very much for your kind consideration!
Best weshes to you!
antoine 10/10/11 15:25
@Ixy:

Unfortunately, FreeFem++-cs version 11.11 is not ready for Windows yet.
I would advise you to use the latest precompiled Windows version (11.7)
for the time being. It is very close to 11.11 functionality-wise.

Please let me know if there are any problems with version 11.7 and I
will try to correct them in the next Windows version.

Best regards,

Antoine.
lxy 10/10/11 08:49
Dear professors,
I try to compile freefem++cs on Cygwin.But when compiling,the following error messages generate:
$ make
/bin/bash ./config.status --recheck
/bin/bash ./config.status: No such files or directory
make:***[config.status]error 127
I am eager to receive your reply!Thank you very much!
Best wishes to you!
Cico 10/07/11 23:31
@GP:

> I am trying to compile ffcs-11.7 on Ubuntu 10.10 32-bit on VMWare. And, getting
> this error message

The problem seems to be the missing libz libraries (look at 'cannot find -lz' message). Try

sudo apt-get install libzip-dev

It solved problem on my configuration (Ubuntu 10.10 in VirtualBox, 32bit, parallel, FreeFem++-cs 11.10, compile from scratch).
GP 06/04/11 22:25
Hi Antoine,

Yes, it would be okay, but even with "--enable-tools-failure" options, I couldn't get executives created. It is okay, I have downloaded pre-built 64-bit version, and using on 64-bit Ubuntu VM and works perfectly. Thanks for your help!
antoine 06/04/11 15:24
> I am trying to compile ffcs-11.7 on Ubuntu 10.10 32-bit on VMWare. And, getting
> this error message

FreeFem++ downloads many external tools, and it may happen that some of them fail to compile on some platforms. When this happens, you can configure FreeFem++-cs with the option "--enable-tools-failure" to allow FFCS to finish compiling regardless. In your case, the only impact is that scripts based on scotch will not work. Would that be ok for you?
GP 04/04/11 19:20
I am trying to compile ffcs-11.7 on Ubuntu 10.10 32-bit on VMWare. And, getting this error message with make:
cp Makefile.inc scotch_5.1_esmumps/src/
cd scotch_5.1_esmumps/src/; make scotch
make[10]: Entering directory `/home/vmubuntu/ffcs-11.7/ff/upstream/download/scotch/scotch_5.1_esmumps/src'
(cd libscotch ; make VERSION=\"5.1\" scotch && make install)
make[11]: Entering directory `/home/vmubuntu/ffcs-11.7/ff/upstream/download/scotch/scotch_5.1_esmumps/src/libscotch'
rm -f *~ *.o lib*.a common2* parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes
make CC="gcc " CCD="gcc " SCOTCHLIB=scotch \
scotch.h \
scotchf.h \
libscotch.a \
libscotcherr.a \
libscotcherrexit.a
make[12]: Entering directory `/home/vmubuntu/ffcs-11.7/ff/upstream/download/scotch/scotch_5.1_esmumps/src/libscotch'
gcc -m32 -DNDEBUG -O3 -rdynamic -fPIC -DLONG -Drestrict=__restrict -DCOMMON_PTHREAD -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_RENAME -DSCOTCH_DETERMINISTIC -DSCOTCH_VERSION=\""5.1"\" dummysizes.c -o dummysizes -m32 -lz -lm -lpthread
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[12]: *** [dummysizes] Error 1
make[12]: Leaving directory `/home/vmubuntu/ffcs-11.7/ff/upstream/download/scotch/scotch_5.1_esmumps/src/libscotch'
make[11]: *** [scotch] Error 2
make[11]: Leaving directory `/home/vmubuntu/ffcs-11.7/ff/upstream/download/scotch/scotch_5.1_esmumps/src/libscotch'
make[10]: *** [scotch] Error 2
make[10]: Leaving directory `/home/vmubuntu/ffcs-11.7/ff/upstream/download/scotch/scotch_5.1_esmumps/src'
make[9]: *** [scotch_5.1_esmumps/FAIT] Error 2
make[9]: Leaving directory `/home/vmubuntu/ffcs-11.7/ff/upstream/download/scotch'
make[8]: *** [compile-dir] Error 2
make[8]: Leaving directory `/home/vmubuntu/ffcs-11.7/ff/upstream/download'
make[7]: *** [tag-compile-pkg] Error 1
make[7]: Leaving directory `/home/vmubuntu/ffcs-11.7/ff/upstream/download'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/home/vmubuntu/ffcs-11.7/ff/upstream/download'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/vmubuntu/ffcs-11.7/ff/upstream'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/vmubuntu/ffcs-11.7/ff/upstream'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/vmubuntu/ffcs-11.7/ff'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/vmubuntu/ffcs-11.7/ff'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vmubuntu/ffcs-11.7'
make: *** [all] Error 2
antoine 09/03/11 21:59
@ujack:

Just delete vtk/cmake-2.8.3.tar.gz and everything will be fine (unless the download fails again, of course).
ujack 09/03/11 19:52
i am compiling on Mandriva 2010.2 and an error message with cmake. it seems the file is missing or did not download properly??

any help

[root@localhost ffcs-11.6]# make
make -j 2 all-recursive
make[1]: Entering directory `/home/jurombo/Downloads/ffcs-11.6'
Making all in vtk
make[2]: Entering directory `/home/jurombo/Downloads/ffcs-11.6/vtk'
make[2]: warning: -jN forced in submake: disabling jobserver mode.
env NBUILDPROCS=2 ./build 2.8 \
3 5.6 1 " -D CMAKE_BUILD_TYPE=Release -D CMAKE_VERBOSE_MAKEFILE=TRUE"
+ cmake_major=2.8
+ cmake_minor=3
+ vtk_major=5.6
+ vtk_minor=1
+ vtk_cmake_opts=' -D CMAKE_BUILD_TYPE=Release -D CMAKE_VERBOSE_MAKEFILE=TRUE'
+ cmake_tgz=cmake-2.8.3.tar.gz
+ cmake_dir=cmake-2.8.3
+ test '!' -f cmake-2.8.3.tar.gz
+ test '!' -d cmake-2.8.3
+ tar xzf cmake-2.8.3.tar.gz

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
make[2]: *** [vtkbuild] Error 2
make[2]: Leaving directory `/home/jurombo/Downloads/ffcs-11.6/vtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jurombo/Downloads/ffcs-11.6'
make: *** [all] Error 2
antoine 31/01/11 12:22
@C. Trophime:

Hi,

The configure option "--with-freefem=" has been removed because there are too many differences between FF versions (currently 3.11 and 3.12) to make the same FFCS work with two of them (the patch files ff/patches cannot apply cleanly). But I am currently in the process of porting FFCS to FF 3.12. It will be ready in a few days.

The configure options "--with-vtk-dir/version=" have also been removed because there are too many different versions of VTK out there. I have been forced to choose one version and patch+recompile it every time. But if you are interested we could work together to find a better way to specify a working VTK installation.

I hope that this is ok for you. Please let me know if I can be of further help.

Best regards,

Antoine.
C. Trophime 31/01/11 11:39
Hi,
I wish to install ffcs on top of a previous freefem++ 3.12 installation
on debian squeeze (I wish to package ffc independantly from freefem++). Is it possible to do so?

I also have question regarding vtk. It seems that you are using 5.6.1 version.
Is it really mandatory to rebuild all vtk stuff?

Best regards
C.
antoine 29/11/10 11:32
@xiang xingfei:

Could you let me know which OS name and version you are using, so that I can try and reproduce the issue?
xiang xingfei 29/11/10 04:15
After running this software several seconds, I was always told that the interface should be closed.
anonymous 24/09/10 16:36
dsa
antoine 04/06/10 08:08
@napoleon:

There should not be any question mark. It looks like a problem with the FreeFem++-cs archive, but I did not find the "??@@" in any of the archives that I checked. Could you tell me which archive you downloaded?

"./configure" is not available in the binary archives because they are already compiled and ready to run. Just type "./FreeFem++-cs" and you should be fine.
napoleon muizi le 04.06.10 00:31:37
hey,
I downloaded freefem++-cs,untar and when i introduce this command,

divine@divine-laptop:~/Downloads/FreeFem++-cs_10.13$ ls
??#@@?8?@8?@????@@@@@?????????@?@?????@@?-??-? FreeFem++
AUTHORS FreeFem++-cs
Contents INSTALL
COPYING install_as_root
ffg install_on_gnome_desktop
ffs README


what are those question marks ??#@@..

moreover when i type this command

divine@divine-laptop:~/Downloads/FreeFem++-cs_10.13$ ./configure

i have this message:

bash: ./configure: No such file or directory


i work on ubuntu 9.0.4

any help?