Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build errors with deps and instructions #3

Open
tkapias opened this issue Sep 4, 2022 · 0 comments
Open

Build errors with deps and instructions #3

tkapias opened this issue Sep 4, 2022 · 0 comments

Comments

@tkapias
Copy link

tkapias commented Sep 4, 2022

  1. Your makefile is not fetching the 3 libs dependancies : fmt, gsl-lite, expected-lite
  • I had to compile and install them separatly for the build to find them.
  • CMake error type :
CMake Error at CMakeLists.txt (find_package):                                                                                                                     
  Could not find a package configuration file provided by "gsl-lite" with any                                                                                                                
  of the following names:                                                                                                                                                                    
                                                                                                                                                                                             
    gsl-liteConfig.cmake                                                                                                                                                                     
    gsl-lite-config.cmake                                                                                                                                                                    
                                                                                                                                                                                             
  Add the installation prefix of "gsl-lite" to CMAKE_PREFIX_PATH or set                                                                                                                      
  "gsl-lite_DIR" to a directory containing one of the above files.  If                                                                                                                       
  "gsl-lite" provides a separate development package or SDK, be sure it has                                                                                                                  
  been installed.
  1. Cmake don't like your instruction for a release build and it miss the build type.
  • Updated instruction :
git clone --depth=1 https://github.com/fbdtemme/bencode
cd bencode; mkdir build; cd build
cmake -DCMAKE_BUILD_TYPE=Release
      -DBENCODE_BUILD_TESTS=OFF \
      -DBENCODE_BUILD_BENCHMARKS=OFF \
      -DBENCODE_BUILD_DOCS=OFF \
      ..
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant