pharo-project / pharo-vm

This is the VM used by Pharo
http://pharo.org
Other
112 stars 68 forks source link

CMake configuration failure on libgit2 #182

Open ronsaldo opened 3 years ago

ronsaldo commented 3 years ago

When invoking CMake for building the VM on:

I am getting the following configuration failure error:

...
-- Disabled features:
 * debugpool, debug pool allocator
 * SSH, SSH transport support
 * SPNEGO, SPNEGO authentication support
 * iconv, iconv encoding conversion support

FATALAggggh not implemented yet
CMake Error at cmake/importLibGit2.cmake:73 (add_dependencies):
  Cannot add target-level dependencies to non-existent target "libgit2_copy".

  The add_dependencies works for top-level logical targets created by the
  add_executable, add_library, or add_custom_target commands.  If you want to
  add file-level dependencies see the DEPENDS option of the add_custom_target
  and add_custom_command commands.
Call Stack (most recent call first):
  cmake/importLibGit2.cmake:86 (build_git2)
  cmake/Linux.cmake:45 (include)
  CMakeLists.txt:490 (add_third_party_dependencies_per_platform)
...
marcoil commented 2 years ago

Some plugins need libraries that aren't included in the README. The build system tries to download and build them but it's not working for me and I get the same error you did. I solved it installing them directly, with

sudo apt install libgit2-dev libsdl2-dev libfreetype-dev