# Ubuntu 20.04.1 LTS ffglut can not run

**URL:** <https://community.freefem.org/t/ubuntu-20-04-1-lts-ffglut-can-not-run/681>\
**Category:** FreeFEM installation\
**Created:** [December 11, 2020, 8:13am UTC](https://community.freefem.org/t/ubuntu-20-04-1-lts-ffglut-can-not-run/681 "2020-12-11T08:13:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaodizhang29](https://avatars.discourse-cdn.com/v4/letter/x/e99b99/32.png) [@xiaodizhang29](https://community.freefem.org/u/xiaodizhang29)\
**Post date:** [December 11, 2020, 8:13am UTC](https://community.freefem.org/t/ubuntu-20-04-1-lts-ffglut-can-not-run/681/1 "2020-12-11T08:13:42Z")

</div>

Hello there. I get the following error after install FreeFem++ 4.7 on ubuntu 20.04.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/1X/0abdc26144d6f68bd423edcc214bd23528788947.png)

It can not plot a picture. Can you help me please?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [December 11, 2020, 10:17am UTC](https://community.freefem.org/t/ubuntu-20-04-1-lts-ffglut-can-not-run/681/2 "2020-12-11T10:17:13Z")

</div>

You need to provide a plot to `ffglut` before saying it cannot run.  
For example, could you see if the following file can be displayed?

```auto
$ ffglut file.edp

```

[file.edp](https://community.freefem.org/uploads/short-url/wS36KBvKOwHelnQjGH45BNU8iwe.edp) (41.0 KB)

---

<div class="post-metadata">

**Author:** ![xiaodizhang29](https://avatars.discourse-cdn.com/v4/letter/x/e99b99/32.png) [@xiaodizhang29](https://community.freefem.org/u/xiaodizhang29)\
**Post date:** [December 11, 2020, 10:29am UTC](https://community.freefem.org/t/ubuntu-20-04-1-lts-ffglut-can-not-run/681/3 "2020-12-11T10:29:49Z")

</div>

Thanky you! I have run it, but it gives nothing！

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/1X/28861e36172c4d7ab780ce25b9999ae010484a99.png)

---

<div class="post-metadata">

**Author:** ![xiaodizhang29](https://avatars.discourse-cdn.com/v4/letter/x/e99b99/32.png) [@xiaodizhang29](https://community.freefem.org/u/xiaodizhang29)\
**Post date:** [December 11, 2020, 11:33am UTC](https://community.freefem.org/t/ubuntu-20-04-1-lts-ffglut-can-not-run/681/4 "2020-12-11T11:33:57Z")

</div>

Now I try to uninstall it and reinstall, it works. Many thanks.

---

<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:** [December 12, 2020, 10:49am UTC](https://community.freefem.org/t/ubuntu-20-04-1-lts-ffglut-can-not-run/681/5 "2020-12-12T10:49:09Z")

</div>

you can add debuT option

fglut -vv /Users/hecht/Downloads/file.edp \>~/Desktop/ffglut.edp

and the result file are : [ffglut.edp](https://community.freefem.org/uploads/short-url/sy7pr8gMAzJ5CpQvxeipBXpaZRe.edp) (3.3 KB)

if the file is empty =\> ffglut is wrong …

---

<div class="post-metadata">

**Author:** ![LTMeyer](https://avatars.discourse-cdn.com/v4/letter/l/ee59a6/32.png) [@LTMeyer](https://community.freefem.org/u/LTMeyer)\
**Post date:** [February 15, 2021, 5:52pm UTC](https://community.freefem.org/t/ubuntu-20-04-1-lts-ffglut-can-not-run/681/6 "2021-02-15T17:52:24Z")

</div>

Hi everyone,

First, let me thank you for the impressive work that FreeFem is.

I’m facing a similar issue with ffglut. When I try to run ffglut as you suggested a window opens but it freezes and then crashes with a segmentation fault error.

I tried unsuccessfully to installl FreeFem both from the deb package and compiling the sources directly.

Besides, I saw your answer on related topic ([Compiles fine but no graphics in Freefem++ executable (V4) - #4 by frederichecht](https://community.freefem.org/t/compiles-fine-but-no-graphics-in-freefem-executable-v4/42/4)) but I didn’t manage to have an installation of FreeFem with ffglut working.

ffglut apart, FreeFem seems to work fine. Would there be any way to fix the installation of the visualisation plugin?

Regards

---

<div class="post-metadata">

**Author:** ![LTMeyer](https://avatars.discourse-cdn.com/v4/letter/l/ee59a6/32.png) [@LTMeyer](https://community.freefem.org/u/LTMeyer)\
**Post date:** [April 2, 2021, 6:48pm UTC](https://community.freefem.org/t/ubuntu-20-04-1-lts-ffglut-can-not-run/681/7 "2021-04-02T18:48:16Z")

</div>

@xiaodizhang29 is there anything special you did for the re-installation?  
I’m still facing issues with ffglut. It always returns segmentation fault when it tries to open a Window to display the visualisation.  
The installation and the checks went fine.  
For information the configuration part related to GLUT reads :

> 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 GLUT/glut.h usability… no  
> checking GLUT/glut.h presence… no  
> checking for GLUT/glut.h… no  
> checking GL/glut.h usability… yes  
> checking GL/glut.h presence… yes  
> checking for GL/glut.h… yes

---

<div class="post-metadata">

**Author:** ![vlaude](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/vlaude/32/939_2.png) [@vlaude](https://community.freefem.org/u/vlaude)\
**Post date:** [January 26, 2022, 9:29am UTC](https://community.freefem.org/t/ubuntu-20-04-1-lts-ffglut-can-not-run/681/8 "2022-01-26T09:29:32Z")

</div>

I also run in the same problem when installing ff++ from the latest sources (4.10) in Ubuntu 20.04. I believe the problem has nothing to do with ff++ but with gcc. gcc produces a ‘shared dynamical library’ instead of an executable. To see it, run the command ‘file’ in a terminal on the ffglut you have produced:

```auto
> file ffglut

```

For me the output is

```auto
ffglut: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=4dfcb93c9699f45a3c7af8e62106bf66f4ef9728, for GNU/Linux 3.2.0, with debug_info, not stripped

```

As a result the ‘which ffglut’ command returns nothing, even though the file is marked as executable and is on the path. It is the same for FreeFem++ and all other executables produced by compilation (I also compiled a simple ‘hello world’ C program to check).  
A workaround is to specify explicitly the complete path to ffglut; for instance with my installation in ~/install/:

```auto
FreeFem++ -glut /home/vincent.laude/install/bin/ffglut myscript.edp

```
