Problem with Geoviewer

I have Ubuntu version 18.04. I installed Flair using beta version of .deb files.
When I run flair, I get this error

w> Warning: Geometry Viewer not found
e> ERROR: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29’ not found (required by /usr/local/flair/geoviewer.so)
Flair window opens, however, Geometry is not displayed in the geometry tab. What should I do to correct this issue?

Hi vaxion,

you need to compile and install geoviewer from the source (flair-geoviewer-3.0-0.tgz). You can find the instructions here.

Indeed @horvathd is right, the deb package was compiled with ubuntu 19.10 I am setting a virtual machine with ubuntu 18.04lts to provide also for this version

Now I am getting the following error as given below:
make -C viewer
make[1]: Entering directory ‘/home/sujoy/flair-geoviewer-3.0/viewer’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/home/sujoy/flair-geoviewer-3.0/viewer’
make -C geometry
make[1]: Entering directory ‘/home/sujoy/flair-geoviewer-3.0/geometry’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/home/sujoy/flair-geoviewer-3.0/geometry’
make -C data
make[1]: Entering directory ‘/home/sujoy/flair-geoviewer-3.0/data’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/home/sujoy/flair-geoviewer-3.0/data’
make -C graph
make[1]: Entering directory ‘/home/sujoy/flair-geoviewer-3.0/graph’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/home/sujoy/flair-geoviewer-3.0/graph’
make -C math
make[1]: Entering directory ‘/home/sujoy/flair-geoviewer-3.0/math’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/home/sujoy/flair-geoviewer-3.0/math’
make -C tool
make[1]: Entering directory ‘/home/sujoy/flair-geoviewer-3.0/tool’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/home/sujoy/flair-geoviewer-3.0/tool’
make -C xdraw
make[1]: Entering directory ‘/home/sujoy/flair-geoviewer-3.0/xdraw’
c++ -c xdraw.cc -m64 -DUNIX -O3 -funroll-loops -g -DNDEBUG -D_DEBUG=0 -ftree-vectorize -DTHREAD -std=c++11 -W -Wall -Wcast-align -Wcast-qual -Wextra -Wformat -Wpointer-arith -Wredundant-decls -Wshadow -Wno-write-strings -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow -pipe -pthread -ftls-model=initial-exec -Wno-class-memaccess -fwrapv -fstack-protector -fpic -fstrict-aliasing -I. -I…
In file included from xdraw.cc:12:0:
xdraw.h:20:10: fatal error: X11/X.h: No such file or directory
#include <X11/X.h>
^~~~~~~~~
compilation terminated.
…/rules.mk:234: recipe for target ‘xdraw.o’ failed
make[1]: *** [xdraw.o] Error 1
make[1]: Leaving directory ‘/home/sujoy/flair-geoviewer-3.0/xdraw’
makefile:275: recipe for target ‘xdraw/libxdraw.a’ failed
make: *** [xdraw/libxdraw.a] Error 2

Hi!

you will need to install the following packages as well: tk-dev python3-dev

Thank you David. I have now installed python-dev and tk-dev. While compile I get the following error now towards the end:
mkdir -p /usr/local/flair
mkdir -p /usr/local/flair/fonts
install -m 644 geoviewer.so /usr/local/flair
install -m 755 usrbin2dvh /usr/local/flair
install: cannot stat ‘usrbin2dvh’: No such file or directory
makefile:333: recipe for target ‘install’ failed
make: *** [install] Error 1

But now geoviewer is running and I can see the geometry of the input file. Do I need to worry about the errors mentioned above.

Hi Sujoy,

Did you run a “make” command before the “make install”?

@sujoy I had the same problem. Running make again fixed the problem.

Thank you all. This solved the problem.