Giter Club home page Giter Club logo

Comments (6)

msoos avatar msoos commented on July 19, 2024

Hi,

You need to use -DSTATICCOMPILE=ON for all of the things compiled with cmake. It will then compile everything perfectly as a static binary!

I hope this helps,

Mate

from arjun.

msoos avatar msoos commented on July 19, 2024

Thanks for the feedback about the cd .. ! I now fixed it :)

Mate

from arjun.

ydotlai avatar ydotlai commented on July 19, 2024

Thanks a lot to Mate.

from arjun.

ydotlai avatar ydotlai commented on July 19, 2024

Hi Mate:

I am trying to statically compile Arjun. I encountered some issue when I was compiling cryptominisat:

[ 1%] Building CXX object cmsat5-src/CMakeFiles/cryptominisat5.dir/cnf.cpp.o
[ 3%] Building CXX object cmsat5-src/CMakeFiles/cryptominisat5.dir/probe.cpp.o
[ 5%] Building CXX object cmsat5-src/CMakeFiles/cryptominisat5.dir/oracle_use.cpp.o
[ 7%] Building CXX object cmsat5-src/CMakeFiles/cryptominisat5.dir/backbone.cpp.o
/home/mok/work_space/arjun_space/cryptominisat/src/backbone.cpp: In member function ‘bool CMSat::Solver::backbone_simpl(int64_t, bool&)’:
/home/mok/work_space/arjun_space/cryptominisat/src/backbone.cpp:53:29: error: too few arguments to function ‘int CadiBack::doit(const std::vector&, int, std::vector&, std::vector&)’
53 | int sat = CadiBack::doit(cnf, conf.verbosity, ret);

| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/mok/work_space/arjun_space/cryptominisat/src/backbone.cpp:24:
/home/mok/work_space/arjun_space/cryptominisat/../cadiback/cadiback.h:5:5: note: declared here
5 | int doit (const std::vector& cnf,
| ^~~~
/home/mok/work_space/arjun_space/cryptominisat/src/backbone.cpp:28:37: warning: unused parameter ‘orig_max_confl’ [-Wunused-parameter]
28 | bool Solver::backbone_simpl(int64_t orig_max_confl, bool& finished)
| ~~~~~~~~^~~~~~~~~~~~~~
make[2]: *** [cmsat5-src/CMakeFiles/cryptominisat5.dir/build.make:118: cmsat5-src/CMakeFiles/cryptominisat5.dir/backbone.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:157: cmsat5-src/CMakeFiles/cryptominisat5.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

from arjun.

msoos avatar msoos commented on July 19, 2024

I see. You need to use 69255f55e411207c4bdea02c6c2ab1ef29740ce1 of CadiBack -- I added a new feature yesterday. Sorry!

Mate

from arjun.

ydotlai avatar ydotlai commented on July 19, 2024

It works now. Thank Mate.

from arjun.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.