acts
acts copied to clipboard
Cmake error if ACTS_BUILD_PLUGIN_ACTSVG=ON
Bug prerequisites
-
When ACTS v21.1.1 is built with flags:
cmake -Wno-dev -DCMAKE_INSTALL_PREFIX=/home/user/acts/acts-v21.1.1 -DCMAKE_CXX_STANDARD=17 -DACTS_BUILD_PLUGIN_TGEO=ON -DACTS_BUILD_PLUGIN_DD4HEP=ON -DACTS_BUILD_PLUGIN_JSON=ON -DACTS_BUILD_PLUGIN_ACTSVG=ON /home/user/acts/src/v21.1.1&& cmake --build . -- -j 4&& cmake --build . --target install
-
Cmake message confirms installation of Actsvg plugin:
... -- Enable component 'Core' in 'Core' -- Ignore component 'PluginAutodiff' in 'Plugins/Autodiff' -- Enable component 'PluginActSVG' in 'Plugins/ActSVG' -- Ignore component 'PluginCuda' in 'Plugins/Cuda' -- Enable component 'PluginIdentification' in 'Plugins/Identification' -- Enable component 'PluginJson' in 'Plugins/Json' -- Ignore component 'PluginLegacy' in 'Plugins/Legacy' -- Ignore component 'PluginOnnx' in 'Plugins/Onnx' -- Ignore component 'PluginSycl' in 'Plugins/Sycl' -- Ignore component 'PluginExaTrkX' in 'Plugins/ExaTrkX' -- Enable component 'PluginTGeo' in 'Plugins/TGeo' -- Enable component 'PluginDD4hep' in 'Plugins/DD4hep' -- Ignore component 'Fatras' in 'Fatras' -- Ignore component 'Alignment' in 'Alignment' -- Ignore subdirectory 'Examples' -- Ignore subdirectory 'docs' -- Configuring done
-
Full log is here: 2023-02-01_acts-cmake-build-log.txt
-
Acts successfully compiled and installed
What goes wrong
Our reconstruction framework using Acts have this in cmake:
find_package(Acts REQUIRED COMPONENTS Core PluginIdentification PluginTGeo PluginDD4hep)
it gives an error:
-- loading components:
-- Core
-- PluginActSVG
-- PluginIdentification
-- PluginJson
-- PluginTGeo
-- PluginDD4hep
CMake Error at CMakeLists.txt:77 (find_package):
Found package configuration file:
/home/romanov/eic/soft/acts/acts-v21.1.1/lib/cmake/Acts/ActsConfig.cmake
but it set Acts_FOUND to FALSE so package "Acts" is considered to be NOT
FOUND. Reason given by package:
The following imported targets are referenced, but are missing:
actsvg::core actsvg::meta
(A bit confusing that it prints loading PluginActSVG when not asked but OK probably, right?)
What I have tried
- Build actsvg on my system, add it to cmake and LD paths
- Used
-DACTS_USE_SYSTEM_ACTSVG=ON
and played with ACTSVG related flag combinations
What goes as expected
Building with -DACTS_BUILD_PLUGIN_ACTSVG=OFF
makes everything work
This issue/PR has been automatically marked as stale because it has not had recent activity. The stale label will be removed if any interaction occurs.
@asalzburger did you look into this?
This issue/PR has been automatically marked as stale because it has not had recent activity. The stale label will be removed if any interaction occurs.
@DraTeots is this still an issue?
@asalzburger did you encounter this problem?
@DraTeots is this still an issue, with the current version?
This issue/PR has been automatically marked as stale because it has not had recent activity. The stale label will be removed if any interaction occurs.