acts icon indicating copy to clipboard operation
acts copied to clipboard

Cmake error if ACTS_BUILD_PLUGIN_ACTSVG=ON

Open DraTeots opened this issue 2 years ago • 6 comments

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

DraTeots avatar Feb 01 '23 17:02 DraTeots

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.

stale[bot] avatar Mar 19 '23 14:03 stale[bot]

@asalzburger did you look into this?

paulgessinger avatar Mar 20 '23 08:03 paulgessinger

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.

stale[bot] avatar May 09 '23 02:05 stale[bot]

@DraTeots is this still an issue?

paulgessinger avatar Dec 11 '23 08:12 paulgessinger

@asalzburger did you encounter this problem?

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

AJPfleger avatar May 22 '24 09:05 AJPfleger

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.

github-actions[bot] avatar Jun 25 '24 06:06 github-actions[bot]