Skip to content

Commit

Permalink
some more fix, add symlink to cadical cadiback
Browse files Browse the repository at this point in the history
  • Loading branch information
arijitsh committed Jan 24, 2025
1 parent 49bb835 commit 5035a1e
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 16 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -488,11 +488,13 @@ if (NOT NOCRYPTOMINISAT)
REQUIRED)
if (cadical)
message(STATUS "Found CaDiCaL library at ${cadical}")
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/deps/cadical/build/)
else()
message(FATAL_ERROR "CaDiCaL library not found")
endif()
if (cadiback)
message(STATUS "Found CaDiBack library at ${cadiback}")
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/deps/cadiback/)
else()
message(FATAL_ERROR "CaDiBack library not found")
endif()
Expand Down
4 changes: 2 additions & 2 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ endif()
# -----------------------------------------------------------------------------
set(stp_link_libs
${MINISAT_LIBRARIES}
${cadical}
${cadiback})
${cadiback}
${cadical})

if (USE_CRYPTOMINISAT)
if (STATICCOMPILE)
Expand Down
3 changes: 2 additions & 1 deletion scripts/deps/setup-cms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ cd ..

git clone https://github.com/msoos/cryptominisat "${dep}" || true
cd "${dep}"
mkdir build && cd build
mkdir build || true
cd build
cmake -DSTATS=OFF -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" ..
cmake --build . --parallel "$(nproc)"
cmake --install .
Expand Down
3 changes: 2 additions & 1 deletion scripts/deps/setup-minisat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ dep="minisat"
cd "${dep_dir}"
git clone https://github.com/stp/minisat "${dep}" || true
cd "${dep}"
mkdir build && cd build
mkdir build || true
cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" ..
cmake --build . --parallel "$(nproc)"
cmake --install .
Expand Down
32 changes: 20 additions & 12 deletions scripts/deps/setup-staticdeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ dep="minisat"
cd "${dep_dir}"
git clone https://github.com/stp/minisat "${dep}" || true
cd "${dep}"
mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" ..
mkdir build || true
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" ..
cmake --build . --parallel "$(nproc)"
cmake --install .
cd ..
cd ../..

dep="cms"

Expand All @@ -31,20 +32,21 @@ cd cadical
git checkout mate-only-libraries-1.8.0
./configure
make -j "$(nproc)"
cp build/libcadical.* ${install_dir}/lib/
ln -s build/libcadical.* ${install_dir}/lib/
cd ..

git clone https://github.com/meelgroup/cadiback || true
cd cadiback
git checkout mate
./configure
make -j "$(nproc)"
cp libcadiback.* ${install_dir}/lib/
ln -s libcadiback.* ${install_dir}/lib/
cd ..

git clone https://github.com/msoos/cryptominisat "${dep}" || true
cd "${dep}"
mkdir build && cd build
mkdir build || true
cd build
cmake -DSTATS=OFF -DSTATICCOMPILE=ON -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" ..
cmake --build . --parallel "$(nproc)"
cmake --install .
Expand All @@ -53,42 +55,48 @@ cd ..

git clone https://github.com/meelgroup/louvain-community || true
cd louvain-community
mkdir build && cd build
mkdir build || true
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" -DSTATICCOMPILE=ON ..
make -j10
cd ../..

git clone https://github.com/meelgroup/sbva || true
cd sbva
mkdir build && cd build
mkdir build || true
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" -DSTATICCOMPILE=ON ..
make -j8
cd ../..

git clone https://github.com/meelgroup/arjun || true
cd arjun
mkdir build && cd build
mkdir build || true
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" -DSTATICCOMPILE=ON ..
make -j8
cd ../..

git clone https://github.com/meelgroup/approxmc || true
cd approxmc
mkdir build && cd build
mkdir build || true
cd build
cmake -DSTATICCOMPILE=ON -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" ..
make -j8
cd ../..

git clone https://github.com/meelgroup/unigen/ || true
cd unigen
mkdir build && cd build
mkdir build || true
cd build
cmake -DSTATICCOMPILE=ON -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" ..
make -j8
cd ../..

git clone https://github.com/arijitsh/cmsgen/ || true
cd cmsgen
mkdir build && cd build
mkdir build || true
cd build
cmake -DSTATICCOMPILE=ON -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" ..
make -j8
cd ../..

0 comments on commit 5035a1e

Please sign in to comment.