YavorGIvanov / sam.cpp

MIT License
1.26k stars 52 forks source link

Followed instructions, does not build #19

Open chrisbward opened 1 year ago

chrisbward commented 1 year ago
➜  sam.cpp git:(master) mkdir build && cd build
➜  build git:(master) cmake .. && make -j4

-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:21 (add_subdirectory):
  The source directory

    /media/user/home/Tools/06_MachineLearning/Segmentation/sam.cpp/ggml

  does not contain a CMakeLists.txt file.

-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Configuring incomplete, errors occurred!
YavorGIvanov commented 1 year ago

You probably forgot the "--recursive" part in the git clone --recursive https://github.com/YavorGIvanov/sam.cpp from the instructions.

You can probably get it compiling by initing and updating the ggml submodule.

git submodule init
git submodule update
mkdir build && cd build
cmake .. && make -j4