Smattr / clink

a modern re-implementation of Cscope
The Unlicense
46 stars 2 forks source link

can't get it to build #237

Closed bkerin closed 5 months ago

bkerin commented 7 months ago

I tried for a while by adding all sorts of clang packages that do I have no idea what to ubuntu and got through a number of cmake warnings but ultimately got stuck with this:

$ cmake -B build
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:38 (find_package):
  By not providing "FindLIBCLANG.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "LIBCLANG",
  but CMake did not find one.

  Could not find a package configuration file provided by "LIBCLANG" with any
  of the following names:

    LIBCLANGConfig.cmake
    libclang-config.cmake

  Add the installation prefix of "LIBCLANG" to CMAKE_PREFIX_PATH or set
  "LIBCLANG_DIR" to a directory containing one of the above files.  If
  "LIBCLANG" provides a separate development package or SDK, be sure it has
  been installed.

CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.22)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/home/bkerin/tmp/clink/clink/build/CMakeFiles/CMakeOutput.log".
[ble: exit 1]
Smattr commented 7 months ago

Thanks for your interest in this project!

Are you following the steps in the README? I ask because the first line of warning output from your build suggests CMake is not seeing the right CMakeLists.txt.

I believe the package you want for the Clang deps is libclang-dev, sudo apt install libclang-dev.

Smattr commented 5 months ago

I guess this was resolved out-of-band. Please re-open if you’re still having problems.