# Compiles fine but no graphics in Freefem++ executable (V4)

**URL:** https://community.freefem.org/t/compiles-fine-but-no-graphics-in-freefem-executable-v4/42
**Category:** FreeFEM installation
**Created:** [May 7, 2019, 7:58am UTC](https://community.freefem.org/t/compiles-fine-but-no-graphics-in-freefem-executable-v4/42 "2019-05-07T07:58:07Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![arousta](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@arousta](https://community.freefem.org/u/arousta)
#### Post date: [May 7, 2019, 7:58am UTC](https://community.freefem.org/t/compiles-fine-but-no-graphics-in-freefem-executable-v4/42/1 "2019-05-07T07:58:07Z")

</div>

I compile the new v4 with:  
./configure --prefix=/media/ali/extra/install/ffm4.0 --enable-download --with-mpi=no --disable-generic --disable-system-blas --disable-system-umfpack --disable-mshmet --disable-pipe --disable-tetgen --disable-hips --disable-ipopt --disable-parmetis --disable-gmm --disable-nlopt --disable-parms --disable-pastix --disable-pipe --disable-scotch --disable-yams --disable-MMAP --disable-pardiso --disable-hpddm --disable-mmg3d CFLAGS=-march=native CXXFLAGS=-march=native FCFLAGS=-march=native FFLAGS=-march=native

No error, however the Freefem++ executable doesn’t show any plot and acts just like Freefem+±nw exec. I have been using these options for every release so far without any problems.

---

<div class="post-metadata">

### Author: ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)
#### Post date: [May 7, 2019, 12:01pm UTC](https://community.freefem.org/t/compiles-fine-but-no-graphics-in-freefem-executable-v4/42/2 "2019-05-07T12:01:13Z")

</div>

the reason is ffglut is not compile general

att the end of configure you have a message like:

```auto
     *********************************************** 
     WARNING: you do not have the new grachics tools 
         because the configure do not find OpenGL, GLUT or pthread developer stuff 
         read the README to find missing package  
         F. Hecht ])
 to install missing package under debian or ubuntu, try: sudo apt-get install freeglut3-dev ])
     *********************************************** 

```

see [https://doc.freefem.org/introduction/installation.html#compilation-on-ubuntu](https://doc.freefem.org/introduction/installation.html#compilation-on-ubuntu)  
for example;

.

---

<div class="post-metadata">

### Author: ![arousta](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@arousta](https://community.freefem.org/u/arousta)
#### Post date: [May 7, 2019, 2:24pm UTC](https://community.freefem.org/t/compiles-fine-but-no-graphics-in-freefem-executable-v4/42/3 "2019-05-07T14:24:26Z")

</div>

Thanks, I don’t get the warning at the end of configure. Actually I have compiled v3.61 and it works fine. I think the best way is to attach the config.log. Unfortunately looks it’s not possible to attache a file to a post. Here is the summary I get at the end of config:

```auto
configure:22637: freefem++ used download : yes 
configure:22639: -- Dynamic load facility: yes 
configure:22641: -- ARPACK (eigen value): yes 
configure:22643: -- UMFPACK (sparse solver) yes 
configure:22645: -- BLAS yes 
configure:22647: -- with MPI no
configure:22649: -- with PETSC no / PETSC complex no 
configure:22651: -- with hpddm no (need MPI & c++11 : yes ) 
configure:22653: -- with htool no (need MPI & c++11 : yes ) 
configure:22655: -- without libs : tetgen ipopt parmetis mmg3d mshmet gmm nlopt scotch yams pipe MMAP iohdf5 pardiso hpddm htool
configure:22657: -- without plugin: tetgen.so ff-Ipopt.so metis.so mmg3d-v4.0.so mshmet.so aniso.so ilut.so ff-NLopt.so scotch.so freeyams.so pipe.so ff-mmap-semaphore.so iohdf5.so PARDISO.so hpddm.so hpddm_substructuring.so SLEPc-complex.so SLEPc.so htool.so
configure:22661: progs: FreeFem++-nw bamg cvmsh2 ffmedit ffglut 
configure:22721: Please run "3rdparty/getall" to download all necessary packages before running make

```

---

<div class="post-metadata">

### Author: ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)
#### Post date: [June 12, 2019, 4:59pm UTC](https://community.freefem.org/t/compiles-fine-but-no-graphics-in-freefem-executable-v4/42/4 "2019-06-12T16:59:32Z")

</div>

the raison is ffglut v 4 is not compatible with version 3.xx due to surface element  
so please install the new ffglt of version 4. to replace the old one.

---

<div class="post-metadata">

### Author: ![arousta](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@arousta](https://community.freefem.org/u/arousta)
#### Post date: [June 14, 2019, 6:53am UTC](https://community.freefem.org/t/compiles-fine-but-no-graphics-in-freefem-executable-v4/42/5 "2019-06-14T06:53:38Z")

</div>

> [@frederichecht](#):
>
> please install the new ffglt of version 4.

Thanks, you mean the new version of freeglut? Right now I have freeglut3 installed which looks to be the latest version of the freeglut library.

---

<div class="post-metadata">

### Author: ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)
#### Post date: [June 14, 2019, 7:26am UTC](https://community.freefem.org/t/compiles-fine-but-no-graphics-in-freefem-executable-v4/42/6 "2019-06-14T07:26:07Z")

</div>

No change the ffglut by the new version in src/nw/ffglut

MBP-FH5:ff-git hecht$ which ffglut

/usr/local/ff++/openmpi-2.1/4.1/bin/ffglut

---

<div class="post-metadata">

### Author: ![arousta](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@arousta](https://community.freefem.org/u/arousta)
#### Post date: [June 15, 2019, 12:46pm UTC](https://community.freefem.org/t/compiles-fine-but-no-graphics-in-freefem-executable-v4/42/7 "2019-06-15T12:46:17Z")

</div>

Worked, thanks! Also I tried the latest release of V4.2 and the problem is fixed
