Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Cannot build against pip installed root

Aperta
#22,654 2 commenti 1 reazione 2 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@siliataider ci sta già lavorando.

Dal 18/6/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

in:Build System new feature
Check duplicate issues.
  • Checked for duplicates
Description

When I tried to build a cmake project against the pip install of root (by setting the CMAKE_PREFIX_PATH to the path in the dist-packages folder), I get errors:

CMake Error at /usr/local/lib/python3.12/dist-packages/ROOT/cmake/ROOTConfig-targets.cmake:930 (message):
  The imported target "ROOT::Core" references the file

     "/usr/local/lib/python3.12/mock_site_packages/ROOT/lib/libCore.so"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/local/lib/python3.12/dist-packages/ROOT/cmake/ROOTConfig-targets.cmake"

  but not all the files it references.

This issue is just to make sure that pip installations of ROOT will be buildable against!
Thanks
Will

Reproducer
pip install root
export CMAKE_PREFIX_PATH=/usr/local/lib/python3.12/dist-packages/ROOT
...

then do a cmake build

ROOT version

latsest

Installation method

pip install

Operating system

linux

Additional context

No response

Lingua principale
C++
Stelle
3.3k
Fork
1.6k
Merge medio
2g 16h
PR unite (30g)
194

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di root-project/root

Tutte le issue di root-project/root

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.