acts-project / acts

Experiment-independent toolkit for (charged) particle track reconstruction in (high energy) physics experiments implemented in modern C++
https://acts.readthedocs.io
Mozilla Public License 2.0
103 stars 168 forks source link

Cmake error if ACTS_BUILD_PLUGIN_ACTSVG=ON #1818

Open DraTeots opened 1 year ago

DraTeots commented 1 year ago

Bug prerequisites

  1. 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
  2. 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
  3. Full log is here: 2023-02-01_acts-cmake-build-log.txt

  4. 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

  1. Build actsvg on my system, add it to cmake and LD paths
  2. 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

stale[bot] commented 1 year ago

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.

paulgessinger commented 1 year ago

@asalzburger did you look into this?

stale[bot] commented 1 year ago

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.

paulgessinger commented 10 months ago

@DraTeots is this still an issue?

AJPfleger commented 5 months ago

@asalzburger did you encounter this problem?

@DraTeots is this still an issue, with the current version?

github-actions[bot] commented 3 months ago

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.