Hi, I read my error files carefully,and would you please tell me where shows my ROOT binary distribution (uses gcc 7) is incompatible with my operating system (uses gcc 9). Thanks for your help again!
Hi, I have install the latest version of ROOT, but when I run the example ,the same error still has.
In this post, it tries (and fails) to execute βx86_64-linux-gnu-g++-7
β, and in this post, it says that you have βgcc version 9.3.0
β.
BTW. Make also sure that your βGarfield++β will be configured with the same C++ standard that your ROOT binaries use.
thanks a lot for your heip! itβs really nice of you, actually I donβt know how to configure βGarfield++β the same C++ standard with my ROOT binaries use and whether it is needed to delete the previous ROOT version.
Hi,I have updated to the latest root version,but it still has the same error, would you please tell me how the C++ compiler compatible with the same C++ standard with which ROOT was compiled.
Please, follow the step-by-step instructions for building Garfield++, setting up the environment and building an example application from my previous post.
Hi ,thank you for your help,I have tried to install several times according to your previous post, there is something confused me a lot, when I input the code line by line, the error shows"CMake Error: The source directory β/home/xxcβ does not appear to contain CMakeLists.txt".But when I input the whole code once a time, it works, the results shows in the below.
xxc@xxc-linux:~ source root-6.24.06/build/bin/thisroot.sh xxc@xxc-linux:~ export GARFIELD_HOME=/home/xxc/garfieldpp-master xxc@xxc-linux:~$ cd GARFIELD_HOME xxc@xxc-linux:~/garfieldpp-master rm -rf build xxc@xxc-linux:~/garfieldpp-master$ cd build
bash: cd: build: No such file or directory xxc@xxc-linux:~/garfieldpp-master$ cmake β¦
CMake Error: The source directory β/home/xxcβ does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI. xxc@xxc-linux:~/garfieldpp-master$ make
[ 1%] Built target magboltz
[ 2%] Generating GarfieldDict.cxx, libGarfieldDict_rdict.pcm, libGarfieldDict.rootmap Scanning dependencies of target Garfield [ 3%] Building CXX object CMakeFiles/Garfield.dir/GarfieldDict.cxx.o [ 4%] Linking CXX shared library libGarfield.so [ 70%] Built target Garfield
[ 70%] Linking CXX executable gem [ 71%] Built target gem
[ 72%] Linking CXX executable mdt_mt [ 72%] Built target mdt_mt
[ 73%] Linking CXX executable mdt [ 73%] Built target mdt
[ 74%] Linking CXX executable penning [ 74%] Built target penning
[ 75%] Linking CXX executable merge [ 75%] Built target merge
[ 76%] Linking CXX executable read [ 76%] Built target read
[ 77%] Linking CXX executable printTable [ 77%] Built target printTable
[ 77%] Linking CXX executable generate [ 78%] Built target generate
[ 78%] Linking CXX executable gallery [ 79%] Built target gallery
[ 79%] Linking CXX executable fieldlines [ 80%] Built target fieldlines
[ 81%] Linking CXX executable polar [ 81%] Built target polar
[ 81%] Linking CXX executable dipole [ 82%] Built target dipole
[ 83%] Linking CXX executable strip [ 83%] Built target strip
[ 84%] Linking CXX executable isochrons [ 84%] Built target isochrons
[ 85%] Linking CXX executable wedge [ 85%] Built target wedge
[ 85%] Linking CXX executable integrate [ 86%] Built target integrate
[ 87%] Linking CXX executable savefield [ 87%] Built target savefield
[ 88%] Linking CXX executable plotfield [ 88%] Built target plotfield
[ 89%] Linking CXX executable plotdedx [ 89%] Built target plotdedx
[ 89%] Linking CXX executable fe55 [ 90%] Built target fe55
[ 91%] Linking CXX executable rangeSi [ 91%] Built target rangeSi
[ 92%] Linking CXX executable qdepSi [ 92%] Built target qdepSi
[ 92%] Linking CXX executable edep [ 93%] Built target edep
[ 94%] Linking CXX executable trim [ 94%] Built target trim
[ 95%] Linking CXX executable srim [ 95%] Built target srim
[ 96%] Linking CXX executable parallelPlatesWeightingField [ 96%] Built target parallelPlatesWeightingField
[ 97%] Linking CXX executable parallelPlates [ 97%] Built target parallelPlates
[ 97%] Linking CXX executable MWPCbyneBEM [ 98%] Built target MWPCbyneBEM
[ 98%] Linking CXX executable crossingWires [ 99%] Built target crossingWires
[ 99%] Linking CXX executable BiconicalGemByneBEM [ 99%] Built target BiconicalGemByneBEM
[ 99%] Linking CXX executable RPCbyneBEM [100%] Built target RPCbyneBEM xxc@xxc-linux:~/garfieldpp-master$ make install
[ 1%] Built target magboltz
[ 70%] Built target Garfield
[ 71%] Built target gem
[ 72%] Built target mdt_mt
[ 73%] Built target mdt
[ 74%] Built target penning
[ 75%] Built target merge
[ 76%] Built target read
[ 77%] Built target printTable
[ 78%] Built target generate
[ 79%] Built target gallery
[ 80%] Built target fieldlines
[ 81%] Built target polar
[ 82%] Built target dipole
[ 83%] Built target strip
[ 84%] Built target isochrons
[ 85%] Built target wedge
[ 86%] Built target integrate
[ 87%] Built target savefield
[ 88%] Built target plotfield
[ 89%] Built target plotdedx
[ 90%] Built target fe55
[ 91%] Built target rangeSi
[ 92%] Built target qdepSi
[ 93%] Built target edep
[ 94%] Built target trim
[ 95%] Built target srim
[ 96%] Built target parallelPlatesWeightingField
[ 97%] Built target parallelPlates
[ 98%] Built target MWPCbyneBEM
[ 99%] Built target crossingWires
[ 99%] Built target BiconicalGemByneBEM
[100%] Built target RPCbyneBEM Install the projectβ¦ β Install configuration: βRelWithDebInfoβ
β Installing: /home/xxc/garfieldpp-master/lib/libGarfieldDict_rdict.pcm
β Up-to-date: /home/xxc/garfieldpp-master/include
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/SolidTube.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentTcad2d.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentNeBem3dMap.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ViewIsochrons.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/MediumGas.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentTcad3d.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/TrackSrim.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/PlottingEngine.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentParallelPlate.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/TrackHeed.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/KDTree.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/SolidBox.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/SolidHole.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/MediumGaN.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/MediumDiamond.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/Shaper.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ViewFEMesh.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/TGeoTet.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/RandomEngine.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/MediumMagboltz.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/Utilities.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/GeometrySimple.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/GeometryRoot.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/Numerics.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ViewGeometry.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/QuadTree.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentGrid.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/Plotting.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ViewCell.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ViewMedium.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentCST.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ViewDrift.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/SolidExtrusion.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/MagboltzInterface.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentAnsys121.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/RandomEngineRoot.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/MediumCdTe.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/Medium.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/Geometry.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/OpticalData.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentVoxel.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/AvalancheMicroscopic.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/TrackSimple.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentComsol.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/SolidWire.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentUser.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/TrackElectron.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/Polygon.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentElmer2D.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/SolidSphere.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentElmer.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ViewBase.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/Component.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/TetrahedralTree.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentAnsys123.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/Track.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ViewField.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentTcadBase.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/FundamentalConstants.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/TrackBichsel.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentNeBem2d.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/MediumPlastic.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/TrackTrim.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/MediumConductor.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/MediumSilicon.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/SolidRidge.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/MediumGaAs.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/TrackPAI.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ViewSignal.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/Random.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/DriftLineRKF.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/GarfieldConstants.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentNeBem3d.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentAnalyticField.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/AvalancheGrid.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/Solid.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/AvalancheMC.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentFieldMap.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/Sensor.hh
β Up-to-date: /home/xxc/garfieldpp-master/include/Garfield/ComponentConstant.hh
β Installing: /home/xxc/garfieldpp-master/lib/libGarfield.so.0.3.0
β Set runtime path of β/home/xxc/garfieldpp-master/lib/libGarfield.so.0.3.0β to ββ
β Up-to-date: /home/xxc/garfieldpp-master/lib/libGarfield.so
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/IonMobility_Ar+_Ar.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/IonMobility_C8Hn+_iC4H10.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/IonMobility_Ne+_Ne.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/Deexcitation
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/Deexcitation/RateConstants_Ar_CO2.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/Deexcitation/RateConstants_Ar_Ar.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/Deexcitation/RateConstants_Ar_CF4.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/Deexcitation/RateConstants_Ar_iC4H10.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/Deexcitation/RateConstants_Ar_C2H6.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/Deexcitation/RateConstants_Ar_C2H2.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/Deexcitation/TransitionRates_Ar.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/Deexcitation/RateConstants_Ar_CH4.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/Deexcitation/OscillatorStrengths_Ar.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/SiM0invw.inv
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/IonMobility_CO2+_CO2.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/OpticalData_Si.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/IonMobility_He+_He.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/IonMobility_Xe+_P32_Xe.txt
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield//Data/IonMobility_Xe+_P12_Xe.txt
β Up-to-date: /home/xxc/garfieldpp-master/lib/libmagboltz.so.11
β Up-to-date: /home/xxc/garfieldpp-master/lib/libmagboltz.so
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/cbdel.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/ftbf54.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/mw3.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/shelllist.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/shellescar.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/shelltscf1.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/C_for_CH4.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/shelltsc.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/shelltscf.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Al.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/U.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Mo.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Te.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ni.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/At.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/V.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Er.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/O.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Sc.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/I.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Si.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ne.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Tl.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Dy.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Gd.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Y.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Pm.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Hf.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Kr.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Bi.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/W.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/H.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Pt.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/K.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Yb.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/La.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/S.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ra.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Li.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Co.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ge.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Po.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Rh.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Zn.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ga.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Cs.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Pd.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Br.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Zr.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ho.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Tm.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Rn.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Xe.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Fe.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ir.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Pb.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ru.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Cd.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Cl.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Au.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Pr.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Lu.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Nd.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Be.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ta.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/F.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Tc.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/B.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Os.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Nb.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Pa.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Cr.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Sm.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Na.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/He.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Rb.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/As.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Sr.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Tb.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Hg.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Sn.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Re.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Th.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ac.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ba.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ce.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/P.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Mg.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ag.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Sb.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/N.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Se.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Mn.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/In.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ca.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Fr.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ar.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Cu.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/C.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Ti.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/henke/Eu.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/ftbf36.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/shelllist_solid.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/Si_G4.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/ftb18.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/ftbf18.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/elastic_disp.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/ftb36.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/delta_path.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/ftb54.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Heed/database/elastic_disp_o.dat
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield/cmake/GarfieldTargets.cmake
β Installing: /home/xxc/garfieldpp-master/share/Garfield/cmake/GarfieldTargets-relwithdebinfo.cmake
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield/cmake/GarfieldConfig.cmake
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield/cmake/GarfieldConfigVersion.cmake
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield/setupGarfield.sh
β Up-to-date: /home/xxc/garfieldpp-master/share/Garfield/setupGarfield.csh
xxc@xxc-linux:~/garfieldpp-master$ cp -r GARFIELD_HOME/Examples/Gem .
xxc@xxc-linux:~/garfieldpp-master mkdir build
xxc@xxc-linux:~/garfieldpp-master$ cd build
xxc@xxc-linux:~/garfieldpp-master/build$ cmake β¦
β The installation folder is set to its default value /home/xxc/garfieldpp-master
β Install path: /home/xxc/garfieldpp-master
β If you want to change this path call cmake -DCMAKE_INSTALL_PREFIX=my_install_path β¦
β Found OpenMP_CXX: -fopenmp
β Found OpenMP_Fortran: -fopenmp
β Found OpenMP: TRUE
β Creating a new library named magboltz with API version 11
β Creating a new library named with API version
β Garfield++ examples will be built. In order disable this option use -DWITH_EXAMPLES=OFF
β Found OpenMP_CXX: -fopenmp
β Found OpenMP_Fortran: -fopenmp
β Found OpenMP: TRUE
CMake Warning at Examples/Geant4GarfieldInterface/CMakeLists.txt:16 (find_package):
By not providing βFindGeant4.cmakeβ in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by βGeant4β, but
CMake did not find one.
Could not find a package configuration file provided by βGeant4β with any
of the following names:
Geant4Config.cmake
geant4-config.cmake
Add the installation prefix of βGeant4β to CMAKE_PREFIX_PATH or set
βGeant4_DIRβ to a directory containing one of the above files. If βGeant4β
provides a separate development package or SDK, be sure it has been
installed.
Geant4 is not found. Example cannot be built.
β Configuring done
β Generating done
β Build files have been written to: /home/xxc/garfieldpp-master
xxc@xxc-linux:~/garfieldpp-master/build$ make
No, you skipped some essential steps.
xxc@xxc-linux:~/garfieldpp-master$ rm -rf build
xxc@xxc-linux:~/garfieldpp-master$ cd build
bash: cd: build: No such file or directory
xxc@xxc-linux:~/garfieldpp-master$ cmake β¦
CMake Error: The source directory β/home/xxcβ does not appear to contain CMakeLists.txt.
Here you deleted the build directory but then did not recreate it, so βcd buildβ doesnβt work, and the subsequent cmake
command also fails because you are not in the build directory but in the top-level source directory.
I donβt understand why the make
command you gave afterwards still seems to work.
To which directory did you clone the Garfield++ repository? And what is the directory to which you want to copy the Gem example? Are they the same? If they are, please start from scratch and use separate directories (otherwise youβll overwrite the CMakeLists.txt).
You also need to source the setupGarfield.sh
script before building the example application.
Thank you for your reply, I realize what the reason for the error is. I tried again,and thatβs the result. should I install the Geant4 or is there anything wrong with my process?
xxc@xxc-linux:~ source root-6.24.06/build/bin/thisroot.sh
xxc@xxc-linux:~ export GARFIELD_HOME=/home/xxc/garfieldpp-master
xxc@xxc-linux:~$ cd GARFIELD_HOME
xxc@xxc-linux:~/garfieldpp-master rm -rf build
xxc@xxc-linux:~/garfieldpp-master$ mkdir build
xxc@xxc-linux:~/garfieldpp-master$ cd build
xxc@xxc-linux:~/garfieldpp-master/build$ cmake β¦
β The installation folder is set to its default value /home/xxc/garfieldpp-master
β Install path: /home/xxc/garfieldpp-master
β If you want to change this path call cmake -DCMAKE_INSTALL_PREFIX=my_install_path β¦
β Found OpenMP_CXX: -fopenmp
β Found OpenMP_Fortran: -fopenmp
β Found OpenMP: TRUE
β Creating a new library named magboltz with API version 11
β Creating a new library named with API version
β Garfield++ examples will be built. In order disable this option use -DWITH_EXAMPLES=OFF
β Found OpenMP_CXX: -fopenmp
β Found OpenMP_Fortran: -fopenmp
β Found OpenMP: TRUE
CMake Warning at Examples/Geant4GarfieldInterface/CMakeLists.txt:16 (find_package):
By not providing βFindGeant4.cmakeβ in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by βGeant4β, but
CMake did not find one.
Could not find a package configuration file provided by βGeant4β with any
of the following names:
Geant4Config.cmake
geant4-config.cmake
Add the installation prefix of βGeant4β to CMAKE_PREFIX_PATH or set
βGeant4_DIRβ to a directory containing one of the above files. If βGeant4β
provides a separate development package or SDK, be sure it has been
installed.
Geant4 is not found. Example cannot be built.
β Configuring done
β Generating done
β Build files have been written to: /home/xxc/garfieldpp-master
xxc@xxc-linux:~/garfieldpp-master/build$ make
make: *** No targets specified and no makefile found. Stop.
xxc@xxc-linux:~/garfieldpp-master/build$ make install
Hi, I have install the Geant 4 according to the error notice. And now the Cmake β¦ step( Re-build Garfield++)works, but when I put the make code, the error shows in the below.
*xxc@xxc-linux:~ source root-6.24.06/build/bin/thisroot.sh
xxc@xxc-linux:~ export GARFIELD_HOME=/home/xxc/garfieldpp-master
xxc@xxc-linux:~$ cd GARFIELD_HOME
xxc@xxc-linux:~/garfieldpp-master rm -rf build
xxc@xxc-linux:~/garfieldpp-master$ mkdir build
xxc@xxc-linux:~/garfieldpp-master$ cd build
xxc@xxc-linux:~/garfieldpp-master/build$ cmake β¦
β The installation folder is set to its default value /home/xxc/garfieldpp-master
β Install path: /home/xxc/garfieldpp-master
β If you want to change this path call cmake -DCMAKE_INSTALL_PREFIX=my_install_path β¦
β Found OpenMP_CXX: -fopenmp
β Found OpenMP_Fortran: -fopenmp
β Found OpenMP: TRUE
β Creating a new library named magboltz with API version 11
β Creating a new library named with API version
β Garfield++ examples will be built. In order disable this option use -DWITH_EXAMPLES=OFF
β Found OpenMP_CXX: -fopenmp
β Found OpenMP_Fortran: -fopenmp
β Found OpenMP: TRUE
β Found EXPAT: /usr/lib/x86_64-linux-gnu/libexpat.so (found suitable version β2.2.9β, minimum required is β2.2.9β)
β Looking for pthread.h
β Looking for pthread.h - found
β Performing Test CMAKE_HAVE_LIBC_PTHREAD
β Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
β Check if compiler accepts -pthread
β Check if compiler accepts -pthread - yes
β Found Threads: TRUE
β Found XercesC: /usr/lib/x86_64-linux-gnu/libxerces-c.so (found suitable version β3.2.2β, minimum required is β3.2.2β)
β Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
β Configuring done
β Generating done
β Build files have been written to: /home/xxc/garfieldpp-master
xxc@xxc-linux:~/garfieldpp-master/build$ sudo make
[sudo] password for xxc:
make: *** No targets specified and no makefile found. Stop.
xxc@xxc-linux:~/garfieldpp-master/build$ make
make: *** No targets specified and no makefile found. Stop.
xxc@xxc-linux:~/garfieldpp-master/build$ sudo make install
make: *** No rule to make target βinstallβ. Stop.
xxc@xxc-linux:~/garfieldpp-master/build$
Hi,
for some reason, CMake thinks that /home/xxc/garfieldpp-master is a build folder (maybe because you have some remnants of a previous build in there).
Instead of typing
cmake ..
can you try
cmake -B . -S ..
(from /home/xxc/garfieldpp-master/build)?
PS: you do not need Geant4 to build Garfield++ (only if you want to build an application that uses both Geant4 and Garfield++).
Thank you for your reply,I have input the cmake -B . -S β¦ instead of cmake β¦, now It can make,but the error still has.
- The installation folder is set to its default value /home/xxc/garfieldpp-master
β Install path: /home/xxc/garfieldpp-master
β If you want to change this path call cmake -DCMAKE_INSTALL_PREFIX=my_install_path β¦
β Found OpenMP_CXX: -fopenmp
β Found OpenMP_Fortran: -fopenmp
β Found OpenMP: TRUE
β Creating a new library named magboltz with API version 11
β Creating a new library named with API version
β Garfield++ examples will be built. In order disable this option use -DWITH_EXAMPLES=OFF
β Found OpenMP_CXX: -fopenmp
β Found OpenMP_Fortran: -fopenmp
β Found OpenMP: TRUE
β Configuring done
β Generating done
β Build files have been written to: /home/xxc/garfieldpp-master
xxc@xxc-linux:~ source root-6.24.06/config/thisroot.sh xxc@xxc-linux:~ export GARFIELD_HOME=/home/xxc/garfieldpp-master
xxc@xxc-linux:~$ cd GARFIELD_HOME xxc@xxc-linux:~/garfieldpp-master rm -rf build
xxc@xxc-linux:~/garfieldpp-master$ mkdir build
xxc@xxc-linux:~/garfieldpp-master$ cd build
xxc@xxc-linux:~/garfieldpp-master/build$ cmake -B . -S β¦
β The CXX compiler identification is GNU 9.3.0
β The Fortran compiler identification is GNU 9.3.0
β Check for working CXX compiler: /usr/bin/c++
β Check for working CXX compiler: /usr/bin/c++ β works
β Detecting CXX compiler ABI info
β Detecting CXX compiler ABI info - done
β Detecting CXX compile features
β Detecting CXX compile features - done
β Check for working Fortran compiler: /usr/bin/gfortran
β Check for working Fortran compiler: /usr/bin/gfortran β works
β Detecting Fortran compiler ABI info
β Detecting Fortran compiler ABI info - done
β Checking whether /usr/bin/gfortran supports Fortran 90
β Checking whether /usr/bin/gfortran supports Fortran 90 β yes
β Install path: /home/xxc/garfieldpp-master
β If you want to change this path call cmake -DCMAKE_INSTALL_PREFIX=my_install_path β¦
β Found PkgConfig: /usr/bin/pkg-config (found version β0.29.1β)
β Found GSL: /usr/include (found version β2.5β)
β 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
β Creating a new library named with API version
β Garfield++ examples will be built. In order disable this option use -DWITH_EXAMPLES=OFF
β The C compiler identification is GNU 9.3.0
β Check for working C compiler: /usr/bin/cc
β Check for working C compiler: /usr/bin/cc β works
β Detecting C compiler ABI info
β Detecting C compiler ABI info - done
β Detecting C compile features
β Detecting C compile features - done
β 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β)
β Found EXPAT: /usr/lib/x86_64-linux-gnu/libexpat.so (found suitable version β2.2.9β, minimum required is β2.2.9β)
β Looking for pthread.h
β Looking for pthread.h - found
β Performing Test CMAKE_HAVE_LIBC_PTHREAD
β Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
β Check if compiler accepts -pthread
β Check if compiler accepts -pthread - yes
β Found Threads: TRUE
β Found XercesC: /usr/lib/x86_64-linux-gnu/libxerces-c.so (found suitable version β3.2.2β, minimum required is β3.2.2β)
β Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
β Configuring done
β Generating done
β Build files have been written to: /home/xxc/garfieldpp-master/build
xxc@xxc-linux:~/garfieldpp-master/build$ sudo make
[sudo] password for xxc:
Scanning dependencies of target magboltz
[ 0%] Building Fortran object Magboltz/CMakeFiles/magboltz.dir/magboltz.f.o
[ 1%] Linking Fortran shared library libmagboltz.so
[ 1%] Built target magboltz
[ 2%] Generating GarfieldDict.cxx, libGarfieldDict_rdict.pcm, libGarfieldDict.rootmap
Scanning dependencies of target Garfield
[ 2%] Building CXX object CMakeFiles/Garfield.dir/Source/AvalancheGrid.cc.o
[ 3%] Building CXX object CMakeFiles/Garfield.dir/Source/AvalancheMC.cc.o
[ 3%] Building CXX object CMakeFiles/Garfield.dir/Source/AvalancheMicroscopic.cc.o
[ 4%] Building CXX object CMakeFiles/Garfield.dir/Source/Component.cc.o
[ 39%] Building CXX object CMakeFiles/Garfield.dir/NeBem/svdcmp.c.o
[ 40%] Building CXX object CMakeFiles/Garfield.dir/NeBem/Vector.c.o
[ 40%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/BGMesh.cpp.o
[ 41%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/ElElasticScat.cpp.o
[ 41%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/EnTransfCS.cpp.o
[ 42%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/EnTransfCS_BGM.cpp.o
[ 42%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/EnergyMesh.cpp.o
[ 43%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/HeedCluster.cpp.o
[ 43%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/HeedCondElectron.cpp.o
[ 44%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/HeedDeltaElectron.cpp.o
[ 44%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/HeedDeltaElectronCS.cpp.o
[ 44%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/HeedMatterDef.cpp.o
[ 45%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/HeedParticle.cpp.o
[ 45%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/HeedParticle_BGM.cpp.o
[ 46%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/HeedPhoton.cpp.o
[ 46%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/PairProd.cpp.o
[ 47%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/PhotoAbsCS.cpp.o
[ 47%] Building CXX object CMakeFiles/Garfield.dir/Heed/heed++/code/PhotoAbsCSLib.cpp.o
[ 48%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/geometry/box.cpp.o
[ 48%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/geometry/circumf.cpp.o
[ 49%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/geometry/gparticle.cpp.o
[ 49%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/geometry/mparticle.cpp.o
[ 50%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/geometry/plane.cpp.o
[ 50%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/geometry/polyline.cpp.o
[ 51%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/geometry/straight.cpp.o
[ 51%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/geometry/surface.cpp.o
[ 51%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/geometry/trajestep.cpp.o
[ 52%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/geometry/vec.cpp.o
[ 52%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/geometry/volume.cpp.o
[ 53%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/ioniz/bethe_bloch.cpp.o
[ 53%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/ioniz/e_cont_enloss.cpp.o
[ 54%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/math/DoubleAc.cpp.o
[ 54%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/math/PolLeg.cpp.o
[ 55%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/math/cubic.cpp.o
[ 55%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/math/kinem.cpp.o
[ 56%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/math/linexi2.cpp.o
[ 56%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/math/lorgamma.cpp.o
[ 57%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/math/parabola.cpp.o
[ 57%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/matrix/inverse.cpp.o
[ 57%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/matrix/multiply.cpp.o
[ 58%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/matter/AtomDef.cpp.o
[ 58%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/matter/GasDef.cpp.o
[ 59%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/matter/GasLib.cpp.o
[ 59%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/matter/MatterDef.cpp.o
[ 60%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/matter/MoleculeDef.cpp.o
[ 60%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/particle/eparticle.cpp.o
[ 61%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/particle/particle_def.cpp.o
[ 61%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/random/PointsRan.cpp.o
[ 62%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/random/chisran.cpp.o
[ 62%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/random/pois.cpp.o
[ 63%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/random/rnorm.cpp.o
[ 63%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/safetl/AbsArr.cpp.o
[ 63%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/safetl/AbsPtr.cpp.o
[ 64%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/stream/definp.cpp.o
[ 64%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/stream/findmark.cpp.o
[ 65%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/stream/prstream.cpp.o
[ 65%] Building CXX object CMakeFiles/Garfield.dir/Heed/wcpplib/util/FunNameStack.cpp.o
[ 66%] Building CXX object CMakeFiles/Garfield.dir/Heed/HeedFieldMap.cpp.o
[ 66%] Linking CXX shared library libGarfield.so
[ 66%] Built target Garfield
Scanning dependencies of target gem
[ 67%] Building CXX object Examples/Gem/CMakeFiles/gem.dir/gem.C.o
[ 67%] Linking CXX executable gem
[ 67%] Built target gem
Scanning dependencies of target mdt_mt
[ 67%] Building CXX object Examples/DriftTube/CMakeFiles/mdt_mt.dir/mdt_mt.C.o
[ 68%] Linking CXX executable mdt_mt
[ 68%] Built target mdt_mt
Scanning dependencies of target mdt
[ 68%] Building CXX object Examples/DriftTube/CMakeFiles/mdt.dir/mdt.C.o
[ 69%] Linking CXX executable mdt
[ 69%] Built target mdt
Scanning dependencies of target penning
[ 70%] Building CXX object Examples/GasFile/CMakeFiles/penning.dir/penning.C.o
[ 70%] Linking CXX executable penning
[ 70%] Built target penning
Scanning dependencies of target merge
[ 70%] Building CXX object Examples/GasFile/CMakeFiles/merge.dir/merge.C.o
[ 71%] Linking CXX executable merge
[ 71%] Built target merge
Scanning dependencies of target read
[ 71%] Building CXX object Examples/GasFile/CMakeFiles/read.dir/read.C.o
[ 72%] Linking CXX executable read
[ 72%] Built target read
Scanning dependencies of target printTable
[ 73%] Building CXX object Examples/GasFile/CMakeFiles/printTable.dir/printTable.C.o
[ 73%] Linking CXX executable printTable
[ 73%] Built target printTable
Scanning dependencies of target generate
[ 74%] Building CXX object Examples/GasFile/CMakeFiles/generate.dir/generate.C.o
[ 74%] Linking CXX executable generate
[ 74%] Built target generate
Scanning dependencies of target gallery
[ 75%] Building CXX object Examples/AnalyticField/CMakeFiles/gallery.dir/gallery.C.o
[ 75%] Linking CXX executable gallery
[ 75%] Built target gallery
Scanning dependencies of target fieldlines
[ 76%] Building CXX object Examples/AnalyticField/CMakeFiles/fieldlines.dir/fieldlines.C.o
[ 76%] Linking CXX executable fieldlines
[ 76%] Built target fieldlines
Scanning dependencies of target polar
[ 77%] Building CXX object Examples/AnalyticField/CMakeFiles/polar.dir/polar.C.o
[ 77%] Linking CXX executable polar
[ 77%] Built target polar
Scanning dependencies of target dipole
[ 78%] Building CXX object Examples/AnalyticField/CMakeFiles/dipole.dir/dipole.C.o
[ 78%] Linking CXX executable dipole
[ 78%] Built target dipole
Scanning dependencies of target strip
[ 78%] Building CXX object Examples/AnalyticField/CMakeFiles/strip.dir/strip.C.o
[ 79%] Linking CXX executable strip
[ 79%] Built target strip
Scanning dependencies of target isochrons
[ 79%] Building CXX object Examples/AnalyticField/CMakeFiles/isochrons.dir/isochrons.C.o
[ 80%] Linking CXX executable isochrons
[ 80%] Built target isochrons
Scanning dependencies of target wedge
[ 80%] Building CXX object Examples/AnalyticField/CMakeFiles/wedge.dir/wedge.C.o
[ 81%] Linking CXX executable wedge
[ 81%] Built target wedge
Scanning dependencies of target integrate
[ 82%] Building CXX object Examples/AnalyticField/CMakeFiles/integrate.dir/integrate.C.o
[ 82%] Linking CXX executable integrate
[ 82%] Built target integrate
Scanning dependencies of target savefield
[ 82%] Building CXX object Examples/Grid/CMakeFiles/savefield.dir/savefield.C.o
[ 83%] Linking CXX executable savefield
[ 83%] Built target savefield
Scanning dependencies of target plotfield
[ 84%] Building CXX object Examples/Grid/CMakeFiles/plotfield.dir/plotfield.C.o
[ 84%] Linking CXX executable plotfield
[ 84%] Built target plotfield
Scanning dependencies of target plotdedx
[ 85%] Building CXX object Examples/Heed/CMakeFiles/plotdedx.dir/plotdedx.C.o
[ 85%] Linking CXX executable plotdedx
[ 85%] Built target plotdedx
Scanning dependencies of target fe55
[ 86%] Building CXX object Examples/Heed/CMakeFiles/fe55.dir/fe55.C.o
[ 86%] Linking CXX executable fe55
[ 86%] Built target fe55
Scanning dependencies of target rangeSi
[ 86%] Building CXX object Examples/Heed/CMakeFiles/rangeSi.dir/rangeSi.C.o
[ 87%] Linking CXX executable rangeSi
[ 87%] Built target rangeSi
Scanning dependencies of target qdepSi
[ 88%] Building CXX object Examples/Heed/CMakeFiles/qdepSi.dir/qdepSi.C.o
[ 88%] Linking CXX executable qdepSi
[ 88%] Built target qdepSi
Scanning dependencies of target edep
[ 89%] Building CXX object Examples/Heed/CMakeFiles/edep.dir/edep.C.o
[ 89%] Linking CXX executable edep
[ 89%] Built target edep
Scanning dependencies of target trim
[ 89%] Building CXX object Examples/Srim/CMakeFiles/trim.dir/trim.C.o
[ 90%] Linking CXX executable trim
[ 90%] Built target trim
Scanning dependencies of target srim
[ 90%] Building CXX object Examples/Srim/CMakeFiles/srim.dir/srim.C.o
[ 91%] Linking CXX executable srim
[ 91%] Built target srim
Scanning dependencies of target exampleGeant4Interface
[ 92%] Building CXX object Examples/Geant4GarfieldInterface/CMakeFiles/exampleGeant4Interface.dir/exampleGarfield.cc.o
In file included from /usr/local/include/TString.h:29,
from /usr/local/include/TNamed.h:26,
from /usr/local/include/TRandom.h:25,
from /usr/local/include/TRandom3.h:25,
from /home/xxc/garfieldpp-master/Include/Garfield/RandomEngineRoot.hh:4,
from /home/xxc/garfieldpp-master/Include/Garfield/Random.hh:6,
from /home/xxc/garfieldpp-master/Examples/Geant4GarfieldInterface/exampleGarfield.cc:46:
/usr/local/include/ROOT/RStringView.hxx:32:37: error: βexperimentalβ in namespace βstdβ does not name a type
32 | using basic_string_view = ::std::experimental::basic_string_view<_CharT,_Traits>;
| ^~~~~~~~~~~~
/usr/local/include/ROOT/RStringView.hxx:35:12: error: βbasic_string_viewβ does not name a type
35 | typedef basic_string_view string_view;
| ^~~~~~~~~~~~~~~~~
/usr/local/include/ROOT/RStringView.hxx:36:12: error: βbasic_string_viewβ does not name a type
36 | typedef basic_string_view<char16_t> u16string_view;
| ^~~~~~~~~~~~~~~~~
/usr/local/include/ROOT/RStringView.hxx:37:12: error: βbasic_string_viewβ does not name a type
37 | typedef basic_string_view<char32_t> u32string_view;
| ^~~~~~~~~~~~~~~~~
/usr/local/include/ROOT/RStringView.hxx:38:12: error: βbasic_string_viewβ does not name a type
38 | typedef basic_string_view<wchar_t> wstring_view;
| ^~~~~~~~~~~~~~~~~
/usr/local/include/ROOT/RStringView.hxx:48:28: error: βstring_viewβ is not a member of βstdβ
48 | inline double stod(std::string_view str, size_t *pos)
| ^~~~~~~~~~~
/usr/local/include/ROOT/RStringView.hxx:48:28: note: βstd::string_viewβ is only available from C++17 onwards
/usr/local/include/ROOT/RStringView.hxx:48:52: error: expected primary-expression before β*β token
48 | inline double stod(std::string_view str, size_t pos)
| ^
/usr/local/include/ROOT/RStringView.hxx:48:53: error: βposβ was not declared in this scope; did you mean βpowβ?
48 | inline double stod(std::string_view str, size_t pos)
| ^~~
| pow
/usr/local/include/ROOT/RStringView.hxx:48:56: error: expression list treated as compound expression in initializer [-fpermissive]
48 | inline double stod(std::string_view str, size_t *pos)
| ^
/usr/local/include/ROOT/RStringView.hxx:65:56: error: βstd::string_viewβ has not been declared
65 | inline std::string &operator+=(std::string &left, std::string_view right)
| ^~~~~~~~~~~
/usr/local/include/ROOT/RStringView.hxx: In function βstd::string& std::__ROOT::operator+=(std::string&, int)β:
/usr/local/include/ROOT/RStringView.hxx:67:29: error: request for member βdataβ in βrightβ, which is of non-class type βintβ
67 | return left.append(right.data(), right.size());
| ^~~~
/usr/local/include/ROOT/RStringView.hxx:67:43: error: request for member βsizeβ in βrightβ, which is of non-class type βintβ
67 | return left.append(right.data(), right.size());
| ^~~~
/usr/local/include/ROOT/RStringView.hxx: At global scope:
/usr/local/include/ROOT/RStringView.hxx:84:17: error: expected type-specifier
84 | operator std::string_view() const { return std::string_view(fData,fLength); }
| ^~~
In file included from /usr/local/include/TNamed.h:26,
from /usr/local/include/TRandom.h:25,
from /usr/local/include/TRandom3.h:25,
from /home/xxc/garfieldpp-master/Include/Garfield/RandomEngineRoot.hh:4,
from /home/xxc/garfieldpp-master/Include/Garfield/Random.hh:6,
from /home/xxc/garfieldpp-master/Examples/Geant4GarfieldInterface/exampleGarfield.cc:46:
/usr/local/include/TString.h:115:13: error: expected type-specifier
115 | operator std::string_view() const { return std::string_view(Data(),fExtent); }
| ^~~
/usr/local/include/TString.h:280:32: error: βstring_viewβ in namespace βstdβ does not name a type
280 | explicit TString(const std::string_view &sub);
| ^~~~~~~~~~~
/usr/local/include/TString.h:280:27: note: βstd::string_viewβ is only available from C++17 onwards
280 | explicit TString(const std::string_view &sub);
| ^~~
/usr/local/include/TString.h:317:37: error: βstring_viewβ in namespace βstdβ does not name a type
317 | TString &operator=(const std::string_view &s);
| ^~~~~~~~~~~
/usr/local/include/TString.h:317:32: note: βstd::string_viewβ is only available from C++17 onwards
317 | TString &operator=(const std::string_view &s);
| ^~~
/usr/local/include/TString.h:444:9: error: βstring_viewβ in namespace βstdβ does not name a type
444 | std::string_view View() const { return std::string_view(GetPointer(),Length()); }
| ^~~~~~~~~~~
/usr/local/include/TString.h:444:4: note: βstd::string_viewβ is only available from C++17 onwards
444 | std::string_view View() const { return std::string_view(GetPointer(),Length()); }
| ^~~
In file included from /usr/local/include/TNamed.h:26,
from /usr/local/include/TRandom.h:25,
from /usr/local/include/TRandom3.h:25,
from /home/xxc/garfieldpp-master/Include/Garfield/RandomEngineRoot.hh:4,
from /home/xxc/garfieldpp-master/Include/Garfield/Random.hh:6,
from /home/xxc/garfieldpp-master/Examples/Geant4GarfieldInterface/exampleGarfield.cc:46:
/usr/local/include/TString.h:839:53: error: βstring_viewβ in namespace βstdβ does not name a type
839 | inline Bool_t operator==(const char *s1, const std::string_view &s2)
| ^~~~~~~~~~~
/usr/local/include/TString.h:839:48: note: βstd::string_viewβ is only available from C++17 onwards
839 | inline Bool_t operator==(const char s1, const std::string_view &s2)
| ^~~
/usr/local/include/TString.h:839:15: error: βBool_t operator==(const char, const int&)β must have an argument of class or enumerated type
839 | inline Bool_t operator==(const char *s1, const std::string_view &s2)
| ^~~~~~~~
/usr/local/include/TString.h:844:37: error: βstring_viewβ in namespace βstdβ does not name a type
844 | inline Bool_t operator==(const std::string_view &s1, const char *s2)
| ^~~~~~~~~~~
/usr/local/include/TString.h:844:32: note: βstd::string_viewβ is only available from C++17 onwards
844 | inline Bool_t operator==(const std::string_view &s1, const char s2)
| ^~~
/usr/local/include/TString.h:844:15: error: βBool_t operator==(const int&, const char)β must have an argument of class or enumerated type
844 | inline Bool_t operator==(const std::string_view &s1, const char *s2)
| ^~~~~~~~
/usr/local/include/TString.h:857:37: error: βstring_viewβ in namespace βstdβ does not name a type
857 | std::string printValue(const std::string_view val);
| ^~~~~~~~~~~
/usr/local/include/TString.h:857:32: note: βstd::string_viewβ is only available from C++17 onwards
857 | std::string printValue(const std::string_view val);
| ^~~
make[2]: *** [Examples/Geant4GarfieldInterface/CMakeFiles/exampleGeant4Interface.dir/build.make:63: Examples/Geant4GarfieldInterface/CMakeFiles/exampleGeant4Interface.dir/exampleGarfield.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1174: Examples/Geant4GarfieldInterface/CMakeFiles/exampleGeant4Interface.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
xxc@xxc-linux:~/garfieldpp-master/build$
Can you try without building the examples (in particular the Geant4 interface example):
cmake -DWITH_EXAMPLES=OFF -B . -S ..
Since your source top-folder seems to be βpollutedβ from a previous build attempt, I would recommend deleting /home/xxc/garfieldpp-master
and starting from a fresh clone.
Hi, I have update the Garfield++ to the latest version, the error described above has been solved. It is just because I have install the Geant4, and the source script has some conflict. I delete the Geant4 path added in the bashrc ,then it works.
Thanks again for your help those days! and how do you know CMake thinks that /home/xxc/garfieldpp-master is a build folder (maybe because you have some remnants of a previous build in there). that 's cool.
Thanks for your reminder, I have not create a example yet. Can I establish a folder? like /home/xxc/garfieldpp-master/test ?
export GARFIELD_HOME=/home/xxc/garfieldpp-master/test
cmake -DCMAKE_INSTALL_PREFIX=/home/xxc/garfieldpp-master/test
Hi οΌI have deleted the /home/xxc/garfieldpp-master file,and started from a fresh clone. but there are still errors.
-
CMake Error: The source directory β/home/xxc/garfieldpp-masterβ does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
bash: /home/xxc/garfieldpp-master/setupGarfield.sh: No such file or directory
xxc@xxc-linux:~ git clone https://gitlab.cern.ch/garfield/garfieldpp.git Cloning into 'garfieldpp'... remote: Enumerating objects: 15083, done. remote: Counting objects: 100% (253/253), done. remote: Compressing objects: 100% (216/216), done. remote: Total 15083 (delta 114), reused 93 (delta 26), pack-reused 14830 Receiving objects: 100% (15083/15083), 68.75 MiB | 1.61 MiB/s, done. Resolving deltas: 100% (11011/11011), done. xxc@xxc-linux:~ source root-6.24.06/build/bin/thisroot.sh
xxc@xxc-linux:~ export GARFIELD_HOME=/home/xxc/garfieldpp xxc@xxc-linux:~ cd GARFIELD_HOME xxc@xxc-linux:~/garfieldpp rm -rf build
xxc@xxc-linux:~/garfieldpp$ mkdir build
xxc@xxc-linux:~/garfieldpp$ cd build
xxc@xxc-linux:~/garfieldpp/build$ cmake β¦
β The CXX compiler identification is GNU 9.3.0
β The Fortran compiler identification is GNU 9.3.0
β Check for working CXX compiler: /usr/bin/c++
β Check for working CXX compiler: /usr/bin/c++ β works
β Detecting CXX compiler ABI info
β Detecting CXX compiler ABI info - done
β Detecting CXX compile features
β Detecting CXX compile features - done
β Check for working Fortran compiler: /usr/bin/gfortran
β Check for working Fortran compiler: /usr/bin/gfortran β works
β Detecting Fortran compiler ABI info
β Detecting Fortran compiler ABI info - done
β Checking whether /usr/bin/gfortran supports Fortran 90
β Checking whether /usr/bin/gfortran supports Fortran 90 β yes
β Install path: /home/xxc/garfieldpp/install
β If you want to change this path call cmake -DCMAKE_INSTALL_PREFIX=my_install_path β¦
β Found PkgConfig: /usr/bin/pkg-config (found version β0.29.1β)
β Found GSL: /usr/include (found version β2.5β)
β 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
β Creating a new library named with API version
β Garfield++ examples will be built. In order disable this option use -DWITH_EXAMPLES=OFF
β The C compiler identification is GNU 9.3.0
β Check for working C compiler: /usr/bin/cc
β Check for working C compiler: /usr/bin/cc β works
β Detecting C compiler ABI info
β Detecting C compiler ABI info - done
β Detecting C compile features
β Detecting C compile features - done
β 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β)
CMake Warning at Examples/Geant4GarfieldInterface/CMakeLists.txt:16 (find_package):
By not providing βFindGeant4.cmakeβ in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by βGeant4β, but
CMake did not find one.Could not find a package configuration file provided by βGeant4β with any
of the following names:Geant4Config.cmake
geant4-config.cmakeAdd the installation prefix of βGeant4β to CMAKE_PREFIX_PATH or set
βGeant4_DIRβ to a directory containing one of the above files. If βGeant4β
provides a separate development package or SDK, be sure it has been
installed.
Geant4 is not found. Example cannot be built.
β Configuring done
β Generating done
β Build files have been written to: /home/xxc/garfieldpp/build
-
CMake Error: The source directory β/home/xxc/garfieldpp-masterβ does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
bash: /home/xxc/garfieldpp-master/setupGarfield.sh: No such file or directory
xxc@xxc-linux:~ git clone https://gitlab.cern.ch/garfield/garfieldpp.git Cloning into 'garfieldpp'... remote: Enumerating objects: 15083, done. remote: Counting objects: 100% (253/253), done. remote: Compressing objects: 100% (216/216), done. remote: Total 15083 (delta 114), reused 93 (delta 26), pack-reused 14830 Receiving objects: 100% (15083/15083), 68.75 MiB | 1.61 MiB/s, done. Resolving deltas: 100% (11011/11011), done. xxc@xxc-linux:~ source root-6.24.06/build/bin/thisroot.sh
xxc@xxc-linux:~ export GARFIELD_HOME=/home/xxc/garfieldpp xxc@xxc-linux:~ cd GARFIELD_HOME xxc@xxc-linux:~/garfieldpp rm -rf build
xxc@xxc-linux:~/garfieldpp$ mkdir build
xxc@xxc-linux:~/garfieldpp$ cd build
xxc@xxc-linux:~/garfieldpp/build$ cmake β¦
β The CXX compiler identification is GNU 9.3.0
β The Fortran compiler identification is GNU 9.3.0
β Check for working CXX compiler: /usr/bin/c++
β Check for working CXX compiler: /usr/bin/c++ β works
β Detecting CXX compiler ABI info
β Detecting CXX compiler ABI info - done
β Detecting CXX compile features
β Detecting CXX compile features - done
β Check for working Fortran compiler: /usr/bin/gfortran
β Check for working Fortran compiler: /usr/bin/gfortran β works
β Detecting Fortran compiler ABI info
β Detecting Fortran compiler ABI info - done
β Checking whether /usr/bin/gfortran supports Fortran 90
β Checking whether /usr/bin/gfortran supports Fortran 90 β yes
β Install path: /home/xxc/garfieldpp/install
β If you want to change this path call cmake -DCMAKE_INSTALL_PREFIX=my_install_path β¦
β Found PkgConfig: /usr/bin/pkg-config (found version β0.29.1β)
β Found GSL: /usr/include (found version β2.5β)
β 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
β Creating a new library named with API version
β Garfield++ examples will be built. In order disable this option use -DWITH_EXAMPLES=OFF
β The C compiler identification is GNU 9.3.0
β Check for working C compiler: /usr/bin/cc
β Check for working C compiler: /usr/bin/cc β works
β Detecting C compiler ABI info
β Detecting C compiler ABI info - done
β Detecting C compile features
β Detecting C compile features - done
β 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β)
CMake Warning at Examples/Geant4GarfieldInterface/CMakeLists.txt:16 (find_package):
By not providing βFindGeant4.cmakeβ in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by βGeant4β, but
CMake did not find one.Could not find a package configuration file provided by βGeant4β with any
of the following names:Geant4Config.cmake
geant4-config.cmakeAdd the installation prefix of βGeant4β to CMAKE_PREFIX_PATH or set
βGeant4_DIRβ to a directory containing one of the above files. If βGeant4β
provides a separate development package or SDK, be sure it has been
installed.
Geant4 is not found. Example cannot be built.
β Configuring done
β Generating done
β Build files have been written to: /home/xxc/garfieldpp/build
Why do you say there are still errors? The above output looks ok to me, you just need to continue with make
and make install
.
sorry, my bad. I found the sentence β Geant4 is not found. Example cannot be built.β I will continue to install it. And would you please tell me what is the different between the root/build/bin/thisroot.sh and root/config/this root.sh. When source the thisroot.sh, which should be chosen? Thanks a lot!