Home | News | Documentation | Download

Garfield / Root Errors

Hello, it’s me again.

Once again I’m getting this error when I get to the “make” step of running something.

/home/jason/garfieldpp/Examples/IsobutaneGrid/grid.C:8:10: fatal error: TCanvas.h: No such file or directory
    8 | #include <TCanvas.h>
      |          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/grid.dir/build.make:82: CMakeFiles/grid.dir/grid.C.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/grid.dir/all] Error 2
make: *** [Makefile:103: all] Error 2

Which admittedly is very similar to my last thread. I know this is different though because this time everything else works just fine, I can get all the inbuilt examples of Garfield to work on their own no problem, this only happens when I try to run anything else.

I’ll put up the CMakeLists file and the CMakeCache file because I think they’ll come in handy. I’m not sure if they will be relevent, but my hunch says they could be.

#---Setup the example project---------------------------------------------------
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
project(BasicBlueprint)

#---Find Garfield package-------------------------------------------------------
find_package(Garfield REQUIRED)

#---Build executable------------------------------------------------------------
add_executable(grid grid.C)
target_link_libraries(grid Garfield)

#---Copy all files locally to the build directory-------------------------------
foreach(_file isobutane.gas)
  configure_file(${_file} ${_file} COPYONLY)
endforeach()
# This is the CMakeCache file.
# For build in directory: /home/jason/garfieldpp/Examples/IsobutaneGrid/build
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Value Computed by CMake
BasicBlueprint_BINARY_DIR:STATIC=/home/jason/garfieldpp/Examples/IsobutaneGrid/build

//Value Computed by CMake
BasicBlueprint_SOURCE_DIR:STATIC=/home/jason/garfieldpp/Examples/IsobutaneGrid

//Path to a program.
CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line

//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar

//Choose the type of build, options are: None Debug Release RelWithDebInfo
// MinSizeRel ...
CMAKE_BUILD_TYPE:STRING=

//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON

//CXX compiler
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++

//A wrapper around 'ar' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-10

//A wrapper around 'ranlib' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-10

//Flags used by the CXX compiler during all build types.
CMAKE_CXX_FLAGS:STRING=

//Flags used by the CXX compiler during DEBUG builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g

//Flags used by the CXX compiler during MINSIZEREL builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the CXX compiler during RELEASE builds.
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the CXX compiler during RELWITHDEBINFO builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//C compiler
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc

//A wrapper around 'ar' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-10

//A wrapper around 'ranlib' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-10

//Flags used by the C compiler during all build types.
CMAKE_C_FLAGS:STRING=

//Flags used by the C compiler during DEBUG builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g

//Flags used by the C compiler during MINSIZEREL builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the C compiler during RELEASE builds.
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the C compiler during RELWITHDEBINFO builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//Path to a program.
CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND

//Flags used by the linker during all build types.
CMAKE_EXE_LINKER_FLAGS:STRING=

//Flags used by the linker during DEBUG builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during MINSIZEREL builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during RELEASE builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during RELWITHDEBINFO builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Enable/Disable output of compile commands during generation.
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/home/jason/garfieldpp/install

//Path to a program.
CMAKE_LINKER:FILEPATH=/usr/bin/ld

//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake

//Flags used by the linker during the creation of modules during
// all build types.
CMAKE_MODULE_LINKER_FLAGS:STRING=

//Flags used by the linker during the creation of modules during
// DEBUG builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during the creation of modules during
// MINSIZEREL builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of modules during
// RELEASE builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during the creation of modules during
// RELWITHDEBINFO builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_NM:FILEPATH=/usr/bin/nm

//Path to a program.
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy

//Path to a program.
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump

//No help, variable specified on the command line.
CMAKE_PREFIX_PATH:UNINITIALIZED=/home/jason/ROOT/root_install

//Value Computed by CMake
CMAKE_PROJECT_DESCRIPTION:STATIC=

//Value Computed by CMake
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=

//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=BasicBlueprint

//Path to a program.
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib

//Path to a program.
CMAKE_READELF:FILEPATH=/usr/bin/readelf

//Flags used by the linker during the creation of shared libraries
// during all build types.
CMAKE_SHARED_LINKER_FLAGS:STRING=

//Flags used by the linker during the creation of shared libraries
// during DEBUG builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during the creation of shared libraries
// during MINSIZEREL builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of shared libraries
// during RELEASE builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during the creation of shared libraries
// during RELWITHDEBINFO builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO

//Flags used by the linker during the creation of static libraries
// during all build types.
CMAKE_STATIC_LINKER_FLAGS:STRING=

//Flags used by the linker during the creation of static libraries
// during DEBUG builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during the creation of static libraries
// during MINSIZEREL builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of static libraries
// during RELEASE builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during the creation of static libraries
// during RELWITHDEBINFO builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_STRIP:FILEPATH=/usr/bin/strip

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE

//Path to a library.
GSL_CBLAS_LIBRARY:FILEPATH=/usr/local/lib/libgslcblas.so

//Path to a library.
GSL_CBLAS_LIBRARY_DEBUG:FILEPATH=/usr/local/lib/libgslcblas.so

//Path to a file.
GSL_INCLUDE_DIR:PATH=/usr/local/include

//Path to a library.
GSL_LIBRARY:FILEPATH=/usr/local/lib/libgsl.so

//Path to a library.
GSL_LIBRARY_DEBUG:FILEPATH=/usr/local/lib/libgsl.so

GSL_ROOT_DIR:STRING=/usr/local

//The directory containing a CMake configuration file for Garfield.
Garfield_DIR:PATH=/home/jason/garfieldpp/install/share/Garfield/cmake

//pkg-config executable
PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/bin/pkg-config

//Path to a library.
ROOT_Core_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libCore.so

//The directory containing a CMake configuration file for ROOT.
ROOT_DIR:PATH=/home/jason/ROOT/root_install/cmake

//Path to a library.
ROOT_Gdml_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libGdml.so

//Path to a library.
ROOT_Geom_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libGeom.so

//Path to a library.
ROOT_Gpad_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libGpad.so

//Path to a library.
ROOT_Graf3d_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libGraf3d.so

//Path to a library.
ROOT_Graf_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libGraf.so

//Path to a library.
ROOT_Hist_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libHist.so

//Path to a library.
ROOT_Imt_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libImt.so

//Path to a library.
ROOT_MathCore_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libMathCore.so

//Path to a library.
ROOT_Matrix_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libMatrix.so

//Path to a library.
ROOT_MultiProc_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libMultiProc.so

//Path to a library.
ROOT_Net_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libNet.so

//Path to a library.
ROOT_Physics_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libPhysics.so

//Path to a library.
ROOT_Postscript_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libPostscript.so

//Path to a library.
ROOT_RIO_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libRIO.so

//Path to a library.
ROOT_ROOTDataFrame_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libROOTDataFrame.so

//Path to a library.
ROOT_ROOTVecOps_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libROOTVecOps.so

//Path to a library.
ROOT_Rint_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libRint.so

//Path to a library.
ROOT_Thread_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libThread.so

//Path to a library.
ROOT_TreePlayer_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libTreePlayer.so

//Path to a library.
ROOT_Tree_LIBRARY:FILEPATH=/home/jason/ROOT/root_install/lib/libTree.so

//Path to a program.
ROOT_genmap_CMD:FILEPATH=ROOT_genmap_CMD-NOTFOUND

//Path to a program.
ROOT_genreflex_CMD:FILEPATH=/home/jason/ROOT/root_install/bin/genreflex

//Path to a program.
ROOT_hadd_CMD:FILEPATH=/home/jason/ROOT/root_install/bin/hadd

//Path to a program.
ROOT_root_CMD:FILEPATH=/home/jason/ROOT/root_install/bin/root

//Path to a program.
ROOT_rootbrowse_CMD:FILEPATH=/home/jason/ROOT/root_install/bin/rootbrowse

//Path to a program.
ROOT_rootcint_CMD:FILEPATH=/home/jason/ROOT/root_install/bin/rootcint

//Path to a program.
ROOT_rootcling_CMD:FILEPATH=/home/jason/ROOT/root_install/bin/rootcling

//Path to a program.
ROOT_rootcp_CMD:FILEPATH=/home/jason/ROOT/root_install/bin/rootcp

//Path to a program.
ROOT_rootdraw_CMD:FILEPATH=ROOT_rootdraw_CMD-NOTFOUND

//Path to a program.
ROOT_rootls_CMD:FILEPATH=/home/jason/ROOT/root_install/bin/rootls

//Path to a program.
ROOT_rootmkdir_CMD:FILEPATH=/home/jason/ROOT/root_install/bin/rootmkdir

//Path to a program.
ROOT_rootmv_CMD:FILEPATH=/home/jason/ROOT/root_install/bin/rootmv

//Path to a program.
ROOT_rootrm_CMD:FILEPATH=/home/jason/ROOT/root_install/bin/rootrm

//Path to a library.
pkgcfg_lib_GSL_gsl:FILEPATH=/usr/local/lib/libgsl.so

//Path to a library.
pkgcfg_lib_GSL_gslcblas:FILEPATH=/usr/local/lib/libgslcblas.so

//Path to a library.
pkgcfg_lib_GSL_m:FILEPATH=/usr/lib/x86_64-linux-gnu/libm.so


########################
# INTERNAL cache entries
########################

//ADVANCED property for variable: CMAKE_ADDR2LINE
CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/home/jason/garfieldpp/Examples/IsobutaneGrid/build
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=18
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=4
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR
CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB
CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER_AR
CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB
CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_DLLTOOL
CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=/usr/bin/ccmake
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
//Name of external makefile project generator.
CMAKE_EXTRA_GENERATOR:INTERNAL=
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Generator instance identifier.
CMAKE_GENERATOR_INSTANCE:INTERNAL=
//Name of generator platform.
CMAKE_GENERATOR_PLATFORM:INTERNAL=
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Source directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/home/jason/garfieldpp/Examples/IsobutaneGrid
//MODIFIED property for variable: CMAKE_INSTALL_PREFIX
CMAKE_INSTALL_PREFIX-MODIFIED:INTERNAL=ON
//Install .so files without execute permission.
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//Platform information initialized
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_READELF
CMAKE_READELF-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.18
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//uname command
CMAKE_UNAME:INTERNAL=/usr/bin/uname
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//Details about finding GSL
FIND_PACKAGE_MESSAGE_DETAILS_GSL:INTERNAL=[/usr/local/include][/usr/local/lib/libgsl.so][/usr/local/lib/libgslcblas.so][v2.7()]
//Details about finding PkgConfig
FIND_PACKAGE_MESSAGE_DETAILS_PkgConfig:INTERNAL=[/usr/bin/pkg-config][v0.29.2()]
//ADVANCED property for variable: GSL_CBLAS_LIBRARY
GSL_CBLAS_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: GSL_CBLAS_LIBRARY_DEBUG
GSL_CBLAS_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
GSL_CFLAGS:INTERNAL=-I/usr/local/include
GSL_CFLAGS_I:INTERNAL=
GSL_CFLAGS_OTHER:INTERNAL=
GSL_FOUND:INTERNAL=1
GSL_INCLUDEDIR:INTERNAL=/usr/local/include
//ADVANCED property for variable: GSL_INCLUDE_DIR
GSL_INCLUDE_DIR-ADVANCED:INTERNAL=1
GSL_INCLUDE_DIRS:INTERNAL=/usr/local/include
GSL_LDFLAGS:INTERNAL=-L/usr/local/lib;-lgsl;-lgslcblas;-lm
GSL_LDFLAGS_OTHER:INTERNAL=
GSL_LIBDIR:INTERNAL=/usr/local/lib
GSL_LIBRARIES:INTERNAL=gsl;gslcblas;m
//ADVANCED property for variable: GSL_LIBRARY
GSL_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: GSL_LIBRARY_DEBUG
GSL_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
GSL_LIBRARY_DIRS:INTERNAL=/usr/local/lib
GSL_LIBS:INTERNAL=
GSL_LIBS_L:INTERNAL=
GSL_LIBS_OTHER:INTERNAL=
GSL_LIBS_PATHS:INTERNAL=
GSL_MODULE_NAME:INTERNAL=gsl
GSL_PREFIX:INTERNAL=/usr/local
//ADVANCED property for variable: GSL_ROOT_DIR
GSL_ROOT_DIR-ADVANCED:INTERNAL=1
GSL_STATIC_CFLAGS:INTERNAL=-I/usr/local/include
GSL_STATIC_CFLAGS_I:INTERNAL=
GSL_STATIC_CFLAGS_OTHER:INTERNAL=
GSL_STATIC_INCLUDE_DIRS:INTERNAL=/usr/local/include
GSL_STATIC_LDFLAGS:INTERNAL=-L/usr/local/lib;-lgsl;-lgslcblas;-lm
GSL_STATIC_LDFLAGS_OTHER:INTERNAL=
GSL_STATIC_LIBDIR:INTERNAL=
GSL_STATIC_LIBRARIES:INTERNAL=gsl;gslcblas;m
GSL_STATIC_LIBRARY_DIRS:INTERNAL=/usr/local/lib
GSL_STATIC_LIBS:INTERNAL=
GSL_STATIC_LIBS_L:INTERNAL=
GSL_STATIC_LIBS_OTHER:INTERNAL=
GSL_STATIC_LIBS_PATHS:INTERNAL=
//ADVANCED property for variable: GSL_VERSION
GSL_VERSION-ADVANCED:INTERNAL=1
GSL_VERSION:INTERNAL=2.7
GSL_gsl_INCLUDEDIR:INTERNAL=
GSL_gsl_LIBDIR:INTERNAL=
GSL_gsl_PREFIX:INTERNAL=
GSL_gsl_VERSION:INTERNAL=
//ADVANCED property for variable: PKG_CONFIG_EXECUTABLE
PKG_CONFIG_EXECUTABLE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_Core_LIBRARY
ROOT_Core_LIBRARY-ADVANCED:INTERNAL=1
//MODIFIED property for variable: ROOT_DIR
ROOT_DIR-MODIFIED:INTERNAL=ON
//ADVANCED property for variable: ROOT_Gdml_LIBRARY
ROOT_Gdml_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_Geom_LIBRARY
ROOT_Geom_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_Gpad_LIBRARY
ROOT_Gpad_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_Graf3d_LIBRARY
ROOT_Graf3d_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_Graf_LIBRARY
ROOT_Graf_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_Hist_LIBRARY
ROOT_Hist_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_Imt_LIBRARY
ROOT_Imt_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_MathCore_LIBRARY
ROOT_MathCore_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_Matrix_LIBRARY
ROOT_Matrix_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_MultiProc_LIBRARY
ROOT_MultiProc_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_Net_LIBRARY
ROOT_Net_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_Physics_LIBRARY
ROOT_Physics_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_Postscript_LIBRARY
ROOT_Postscript_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_RIO_LIBRARY
ROOT_RIO_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_ROOTDataFrame_LIBRARY
ROOT_ROOTDataFrame_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_ROOTVecOps_LIBRARY
ROOT_ROOTVecOps_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_Rint_LIBRARY
ROOT_Rint_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_Thread_LIBRARY
ROOT_Thread_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_TreePlayer_LIBRARY
ROOT_TreePlayer_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_Tree_LIBRARY
ROOT_Tree_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_genreflex_CMD
ROOT_genreflex_CMD-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_hadd_CMD
ROOT_hadd_CMD-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_root_CMD
ROOT_root_CMD-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_rootbrowse_CMD
ROOT_rootbrowse_CMD-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_rootcint_CMD
ROOT_rootcint_CMD-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_rootcling_CMD
ROOT_rootcling_CMD-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_rootcp_CMD
ROOT_rootcp_CMD-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_rootls_CMD
ROOT_rootls_CMD-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_rootmkdir_CMD
ROOT_rootmkdir_CMD-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_rootmv_CMD
ROOT_rootmv_CMD-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ROOT_rootrm_CMD
ROOT_rootrm_CMD-ADVANCED:INTERNAL=1
__pkg_config_arguments_GSL:INTERNAL=QUIET;gsl
__pkg_config_checked_GSL:INTERNAL=1
//ADVANCED property for variable: pkgcfg_lib_GSL_gsl
pkgcfg_lib_GSL_gsl-ADVANCED:INTERNAL=1
//ADVANCED property for variable: pkgcfg_lib_GSL_gslcblas
pkgcfg_lib_GSL_gslcblas-ADVANCED:INTERNAL=1
//ADVANCED property for variable: pkgcfg_lib_GSL_m
pkgcfg_lib_GSL_m-ADVANCED:INTERNAL=1
prefix_result:INTERNAL=/usr/local/lib

Any help would be appreciated.


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.22/00
Platform: Ubuntu 21.04
Compiler: g++ 10.3 / cmake 3.18.4 when appropriate


Hi,
I think your CMakeLists.txt might be slightly out of date. There was a little change a couple of months ago changing the name of the target from Garfield to Garfield::Garfield. Can you give it a try with something like this?

cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
project(BasicBlueprint)
if(NOT TARGET Garfield::Garfield)
  find_package(Garfield REQUIRED)
endif()

# ---Define executables-----------------------------------------------------    -----
add_executable(grid grid)
target_link_libraries(grid Garfield::Garfield)
 
#---Copy all files locally to the build directory-------------------------------
foreach(_file isobutane.gas)
  configure_file(${_file} ${_file} COPYONLY)
endforeach()

It always is the little things. Yeah, that fixed it. Thank you Heinrich.