FRENSIE installing and compiling error

  • Thread starter emilmammadzada
  • Start date
  • Tags
    Error
In summary, cmake was unable to find the correct system paths. I edited the Frensie.sh file and added the appropriate system paths.
  • #1
emilmammadzada
109
18
TL;DR Summary
FRENSIE installing and compiling error
When i want compiling to Frensie code , app gave me this error
emil@DESKTOP-:~/FRENSIE-pub/build$ cmake ..
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- The Fortran compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/gfortran - skipped
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP_Fortran: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Found SWIG: /usr/bin/swig4.0 (found suitable version "4.0.2", minimum required is "4.0.0")
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.18", minimum required is "2.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.18", minimum required is "2.7")
-- Found NumPy: version "1.16.6" /home/emil/.local/lib/python2.7/site-packages/numpy/core/include
-- Found Boost: /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version "1.72.0", minimum required is "1.72.0") found components: test_exec_monitor
CMake Error at cmake/EnableBoostSupport.cmake:25 (IF):
if given arguments:

"EQUAL" "RELEASE"

Unknown arguments specified
Call Stack (most recent call first):
CMakeLists.txt:170 (ENABLE_BOOST_SUPPORT)-- Configuring incomplete, errors occurred!
See also "/home/emil/FRENSIE-pub/build/CMakeFiles/CMakeOutput.log".
 
Engineering news on Phys.org
  • #2
You are not supposed to run cmake yourself!, you are supposed to copy and run the script frensie.sh to configure. That runs cmake. It's in the folder scripts, but follow the build instructions.
 
  • Like
Likes emilmammadzada
  • #3
Alex A said:
You are not supposed to run cmake yourself!, you are supposed to copy and run the script frensie.sh to configure. That runs cmake. It's in the folder scripts, but follow the build instructions.
I did the same, it gave an error
emil@DESKTOP-:~/FRENSIE-pub/build$ l
frensie.sh*
emil@DESKTOP-:~/FRENSIE-pub/build$ ./frensie.sh
cmake version 3.22.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.CMake Error: The source directory "/home/emil/FRENSIE-pub/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
 
  • #4
Did you do build instruction 5,
"change the variables in the script to reflect the desired system paths (if the basic build instructions where use for a package the PACKAGE_PREFIX variable can be left blank in the script)."
 
  • Like
Likes emilmammadzada
  • #5
Alex A said:
Did you do build instruction 5,
"change the variables in the script to reflect the desired system paths (if the basic build instructions where use for a package the PACKAGE_PREFIX variable can be left blank in the script)."
How should I change the variables in that file? Is it in the CmakeList.txt file?
 

Attachments

  • CMakeLists.txt.txt
    10.8 KB · Views: 72
  • #6
Edit this section in the script,
Code:
HDF5_PREFIX_PATH=
MOAB_PREFIX_PATH=
DAGMC_PREFIX_PATH=
BOOST_PREFIX_PATH=
MPI_PREFIX_PATH=
ROOT_PREFIX_PATH=
SWIG_PREFIX_PATH=
DOXYGEN_PREFIX_PATH=
FRENSIE_SRC=
FRENSIE_INSTALL=
XSDIR_PATH=

Not everything is required.
 
  • Like
Likes emilmammadzada
  • #7
Alex A said:
Edit this section in the script,
Code:
HDF5_PREFIX_PATH=
MOAB_PREFIX_PATH=
DAGMC_PREFIX_PATH=
BOOST_PREFIX_PATH=
MPI_PREFIX_PATH=
ROOT_PREFIX_PATH=
SWIG_PREFIX_PATH=
DOXYGEN_PREFIX_PATH=
FRENSIE_SRC=
FRENSIE_INSTALL=
XSDIR_PATH=

Not everything is required.
I have added the fensie.sh.App give me this error
[emil@DESKTOP-:~/FRENSIE-pub/build$ ./frensie.sh
cmake version 3.22.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
CMake Error at cmake/EnforceOutOfSourceBuild.cmake:20 (MESSAGE):
This project cannot be installed in the source directory.
Call Stack (most recent call first):
CMakeLists.txt:32 (ENFORCE_OUT_OF_SOURCE_BUILD)-- Configuring incomplete, errors occurred!
See also "/home/emil/FRENSIE-pub/build/CMakeFiles/CMakeOutput.log".]
[
EXTRA_ARGS=$@
HDF5_PREFIX_PATH=
MOAB_PREFIX_PATH=
DAGMC_PREFIX_PATH=
BOOST_PREFIX_PATH=/usr/include/boost
MPI_PREFIX_PATH=
ROOT_PREFIX_PATH=
SWIG_PREFIX_PATH=/usr/bin/swig
DOXYGEN_PREFIX_PATH=/usr/bin/doxygen
FRENSIE_SRC=/home/emil/FRENSIE-pub/build
FRENSIE_INSTALL=/home/emil/FRENSIE-pub
XSDIR_PATH=/home/emil/FRENSIE-pub/packages/data/xsdir]
 
Last edited:

1. What is FRENSIE and why is it used?

FRENSIE is a Monte Carlo radiation transport code used for simulating the transport of particles and radiation in materials. It is used in various fields such as nuclear engineering, medical physics, and radiation protection.

2. How do I install FRENSIE on my computer?

The installation process for FRENSIE varies depending on your operating system. Detailed instructions can be found on the official FRENSIE website. Generally, you will need to download the source code, configure and compile it, and then run the installation script.

3. What are some common errors encountered during the installation and compilation of FRENSIE?

Some common errors include missing dependencies, incorrect compiler settings, and issues with the installation script. These errors can usually be resolved by carefully following the installation instructions and checking for any typos or mistakes in the commands.

4. How can I troubleshoot a compilation error in FRENSIE?

If you encounter a compilation error, the first step is to carefully read the error message and try to identify the source of the problem. It could be a missing library or a syntax error in your code. You can also try searching for the error message online or consulting the FRENSIE user manual for troubleshooting tips.

5. Is there any support available for FRENSIE installation and compilation issues?

Yes, the FRENSIE community is very active and supportive. You can post your questions and issues on the FRENSIE forum or join the FRENSIE Slack channel to connect with other users and developers. You can also contact the FRENSIE team directly for assistance.

Similar threads

Replies
18
Views
7K
  • Programming and Computer Science
Replies
2
Views
316
  • Programming and Computer Science
Replies
4
Views
4K
  • Programming and Computer Science
Replies
5
Views
9K
Replies
1
Views
2K
  • Programming and Computer Science
Replies
2
Views
4K
  • Programming and Computer Science
Replies
2
Views
5K
  • Programming and Computer Science
Replies
1
Views
3K
  • Programming and Computer Science
Replies
4
Views
3K
Back
Top