Flair Geoviewer cannot compile and install

Dear FLUKA expert, I compiled and installed the Flair geoviewer3.4-5.2.tgz using source on the CentOS 7 system. The Python version is 3.13. The following error occurred:

g++: fatal error: no input files

compilation terminated.

make: *** [geometryobject.o] Error 1

make: *** [geoviewer.o] Error 1

make: *** [gmesh.o] Error 1

make: *** [gobject.o] Error 1

make: *** [pyutils.o] Error 1

make: *** [viewerobject.o] Error 1

After manually compiling and generating these xxxx. o files, I executed the commands “make” and “make install DESTDIR=my_flair_path”. Flair can be opened normally, but once I click on the Geometry option, Flair immediately crashes. I don’t know how to solve this problem anymore, and I hope the experts can provide help. Thank you very much.

Dear yaoxuan,

Sorry for the late reply.

What command did you use which gave the g++: fatal error: no input files error message?
Which veresion of g++ are you using on CentOS 7?

Cheers,
David

Dear Dávid,
Thank you for your reply.

This is the complete command for me to install Flair Geoviewer:
tar -zxvf flair-geoviewer-3.4-5.2.tgz
cd flair-geoviewer-3.4
make

It will display:
g++: fatal error: no input files
compilation terminated.
make: *** [geometryobject.o] Error 1

Due to the display error indicating that the file ‘geometriobject. o’ does not exist, I used the following command to compile and generate the geometriobject. o file separately:
g++ -I/public/home/cuiyx/miniconda3/include/python3.13
-I/public/home/cuiyx/Flair/flair-geoviewer-3.4
-I/public/home/cuiyx/Flair/flair-geoviewer-3.4/data
-I/public/home/cuiyx/Flair/flair-geoviewer-3.4/farm
-I//public/home/cuiyx/Flair/flair-geoviewer-3.4/geometry
-I/public/home/cuiyx/Flair/flair-geoviewer-3.4/gldraw
-I/public/home/cuiyx/Flair/flair-geoviewer-3.4/graph
-I//public/home/cuiyx/Flair/flair-geoviewer-3.4/math
-I/public/home/cuiyx/Flair/flair-geoviewer-3.4/physics
-I/public/home/cuiyx/Flair/flair-geoviewer-3.4/tool
-I/public/home/cuiyx/Flair/flair-geoviewer-3.4/viewer
-I/public/home/cuiyx/Flair/flair-geoviewer-3.4/xdraw
-std=c++17
-fPIC -c geometryobject.cc -o geometryobject.o

Then I continue to use the ‘make’ command for compilation, and it will continue to report errors
g++: fatal error: no input files
compilation terminated.
make: *** [geoviewer.o] Error 1

I used the above method to compile all the missing *****. o files separately, and finally completed the compilation and installation of Flair Geoviewer using the make command without any problems. However, when I ran Flair and clicked on the geometry option, Flair crashed and exited.

I am using the version g++9.5.

This is an upgrade installation, and there were no issues with the previous version installation.

Dear yaoxuan,

the issue seems to be with your anaconda/miniconda environment. The crash usually happens when greoviewer was compiled incorrectly.

I would suggest to install g++ and python natively from source and try again.

Cheers,
David

Dear Dávid,

I have recompiled and installed gcc and Python. This time, the versions are gcc15.2 and Python 12.12.

But the same problem still occurred when I used the “make” command. Here is the error message for this time:

g++ -c -m64 -g -DUNIX -std=c++17 -O3 -DNDEBUG -D_DEBUG=0 -DTHREAD -pedantic -W -Wall -Wcast-qual -Wextra -Wformat -Wpointer-arith -Wshadow -Wno-write-strings -Wcast-align -Wredundant-decls -Wno-long-long -Wno-non-virtual-dtor -Wno-variadic-macros -Woverloaded-virtual -Wpointer-arith -Wshadow -Wunused -Wuninitialized -Wwrite-strings -Wshadow -pthread -Wno-class-memaccess -Wno-vla -fpic -fno-strict-aliasing -I. -I.. -I -I/public/home/cuiyx/python3.12/include/python3.12 -I/public/home/cuiyx/python3.12/include/python3.12

g++: fatal error: no input files
compilation terminated.
make: *** [geometryobject.o] Error1

From the error message, it appears that the above command is missing the input file for the “*******. cc” file.
I manually modified this command:
g++ -c -m64 -g -DUNIX -std=c++17 -O3 -DNDEBUG -D_DEBUG=0 -DTHREAD -pedantic -W -Wall -Wcast-qual -Wextra -Wformat -Wpointer-arith -Wshadow -Wno-write-strings -Wcast-align -Wredundant-decls -Wno-long-long -Wno-non-virtual-dtor -Wno-variadic-macros -Woverloaded-virtual -Wpointer-arith -Wshadow -Wunused -Wuninitialized -Wwrite-strings -Wshadow -pthread -Wno-class-memaccess -Wno-vla -fpic -fno-strict-aliasing -I. -I.. -I -I/public/home/cuiyx/python3.12/include/python3.12 -I/public/home/cuiyx/python3.12/include/python3.12 geometryobject.cc

I manually generated the “********. o” file corresponding to the “*******. cc” file. The compilation can continue, and the command ‘make install DESTDIR=my_flair_path’ was successfully executed. But after running Flair, it still shows that the Geometry module is not installed.

Can you try the following
go to the directory of geoviewer, there should be a geoviewer.so file generated from the makefile
Open python and type

$ python
Python 3.13.7 (main, Nov 24 2025, 20:51:28) [GCC 15.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import geoviewer
>>>

If you see any errors appearing after import it might reveal any error in the compilation