Dear all, I have a problem with the geometry tab in flair
I saw that there are several similar posts, but I was not hable to find a solution
I’m using fluka+flair on a windows 10 OS.
I followed this guide https://fluka.cern/documentation/installation/fluka-flair-windows10-wsl
everything seems to work, I can run and plot the results of a simulation, but as the title suggest, if I click on the geometry tab the program crash.
If I try to open a void file, I can enter into the geometry tab avoiding crash
I wasn’t able to find the d3layer.cc file, as suggest in
sorry if it is trivial, but
tar xvf flair-3.1-4.tgz
cd flair-3.1
make
and then
make install
seems to work
if I try the same with flai-geoviewer it fail in the first make
-Wwrite-strings -Wshadow -pipe -pthread -fwrapv -fstack-protector -fpic -fno-strict-aliasing -I. -I… -I/usr/include/tcl8.6
geometryobject.cc:12:10: fatal error: Python.h: No such file or directory #include <Python.h>
^~~~~~~~~~
compilation terminated.
makefile:312: recipe for target ‘geometryobject.o’ failed
make: *** [geometryobject.o] Error 1
but
which python
/usr/bin/python
python --version
Python 2.7.17
sorry to bother you again, but still I’m not hable to solve it
I install flair, then make on flair-geoviewer everything seems fine, but if i run
sudo make install install-bin install-mine THREAD=no
for f in AUTHORS BUGS README LICENSE; do
install -m 644 $f /usr/local/flair/$f.geoviewer;
done
for f in fonts/*.tga;do
install -m 644 $f /usr/local/flair/fonts;
done
make: * No rule to make target ‘install-bin’. Stop.
I had a look and it seems that due to a hick-up during the merging of different development branches the original patch which had fixed the bug addressed in Geoviewer tab-Segmentation fault, did not make it into this release.
One solution is indeed to compile with THREAD=no but in that case you will lose quite a bit of performance. Therefore, I suggest to replace the file d3layer.cc in the sub-directory viewer of the geoeditor with this version (compatible with FLAIR 3.1-4a)