Installing Garfield++

Hello everyone, I’m trying to install garfield++ on ubuntu but this error keeps coming up

CMake Error at CMakeLists.txt:77 (include):
include could not find load file:

/home/sarah/products/Root/modules/RootNewMacros.cmake

– Found PkgConfig: /usr/bin/pkg-config (found version “0.29.1”)
– Found GSL: /usr/include (found version “2.4”)
– Found OpenMP_CXX: -fopenmp (found version “4.5”)
– Found OpenMP_Fortran: -fopenmp (found version “4.5”)
– Found OpenMP: TRUE (found version “4.5”)
– Creating a new library named magboltz with API version 11
CMake Error at CMakeLists.txt:184 (root_generate_dictionary):
Unknown CMake command “root_generate_dictionary”.

– Configuring incomplete, errors occurred!
See also “/home/sarah/Documents/garfield/build/CMakeFiles/CMakeOutput.log”.

how to fix it please ?
thank you so much in advance.

Welcome to the ROOT forum
@hschindl might help you.

Maybe @mato or @caiazza can help? Or a ROOT expert?

BTW. The “RootNewMacros.cmake” error suggests that you try to use a ROOT “source code” distribution instead of its “(pre)compiled binaries”.

The same error occured
/home/sarah/products/Root/modules/RootNewMacros.cmake

– Found PkgConfig: /usr/bin/pkg-config (found version “0.29.1”)
– Found GSL: /usr/include (found version “2.4”)
– Found OpenMP_CXX: -fopenmp (found version “4.5”)
– Found OpenMP_Fortran: -fopenmp (found version “4.5”)
– Found OpenMP: TRUE (found version “4.5”)
– Creating a new library named magboltz with API version 11
CMake Error at CMakeLists.txt:184 (root_generate_dictionary):
Unknown CMake command “root_generate_dictionary”.

– Configuring incomplete, errors occurred!
See also “/home/sarah/garfieldpp/build/CMakeFiles/CMakeOutput.log”.

I don’t even know what’s the problem?

What do you get from:
root-config --platform --arch --version
root-config --prefix
root-config --cflags

Check that you have GSL: gsl-config --version
and make sure that you have at least “CMake 3.9”: cmake --version

Attach the three “*.out.txt” files created by my “simple instructions on how to build Garfield++ (with examples) from scratch”.

BTW. @hschindl The configuration step outputs a strange line:

(...)
-- Found OpenMP: TRUE (found version "4.5")
-- Creating a new library named magboltz with API version 11
-- Creating a new library named  with API version # NOTE: NO NAME AND NO VERSION
-- Garfield++ examples will be built. In order disable this option use -DWITH_EXAMPLES=OFF
(...)

Hmm, that does look strange, thanks…

that’s what i got …
please what do you mean about ( Attach the three “*.out.txt” files created by my ), what should i do ?!
thanks so much in advance

Follow these instructions. This should produce three *.out.txt files.

I’m so sorry for the late reply.
i’ve followed the instructions above, here’s a screenshots with details hoping you could help me please.


So, we do not know what happens.

Try this …

The ROOT Team provides ready-to-use binary distributions for some systems (see “Download a pre-compiled binary distribution” therein), including various Ubuntu versions, which you just need to download and unpack.

For Ubuntu 18.04 / x86_64 / gcc 7.5: https://root.cern/download/?C=M;O=A;P=*[uU][bB][uU][nN][tT][uU]*18*

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.