Hoglet / TimeIT

The unobtrusive time tracker
GNU General Public License v3.0
19 stars 7 forks source link

CMake fails (fmt missing) #58

Closed ptoews closed 2 years ago

ptoews commented 2 years ago

I'm not able to install this using cmake, see the error below.

OS: Ubuntu 20.04

$ cmake ..
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
writing /home/philipp/Downloads/TimeIT/src/lib/inc/libtimeit/version.h
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1") 
CMake Error at src/CMakeLists.txt:34 (find_package):
  By not providing "Findfmt.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "fmt", but
  CMake did not find one.

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

    fmtConfig.cmake
    fmt-config.cmake

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

-- Configuring incomplete, errors occurred!
See also "/home/philipp/Downloads/TimeIT/Release/CMakeFiles/CMakeOutput.log".
Hoglet commented 2 years ago

try: sudo apt install libfmt-dev

ptoews commented 2 years ago

Thanks, I also had to install a few more packages: sudo apt install libjansson-dev libxss-dev libnotify-dev libgtkmm-2.4-dev