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

Cannot compile #2

Open
jm62300 opened this issue Jun 22, 2021 · 3 comments
Open

Cannot compile #2

jm62300 opened this issue Jun 22, 2021 · 3 comments

Comments

@jm62300
Copy link

jm62300 commented Jun 22, 2021

Hi @cernoch @horenmar @mjerabek ,
I am trying to use your lib but I am not able to compile it.
I ran the following command line and that reports that:

$ cmake -H. -Bbuild
CMake Error at CMakeLists.txt:22 (add_subdirectory):
The source directory

/home/lagniez/Works/balls/3rdParty/pblib/cli/minisat

does not contain a CMakeLists.txt file.

-- Configuring incomplete, errors occurred!
See also "/home/lagniez/Works/balls/3rdParty/pblib/build/CMakeFiles/CMakeOutput.log".

Can you help me?
Actually it looks like it is waiting for a CMakeLists.txt in the repository cli (normal because add_subdirectory(cli/minisat EXCLUDE_FROM_ALL)).

My cmake version is 3.18.4, and I use g++-10.

Best regards,
JM

@horenmar
Copy link
Contributor

git submodule update --init IIRC

@jm62300
Copy link
Author

jm62300 commented Jun 23, 2021

I tested your command line and that does not work, I still have the same issue.
Actually I tested:
$ git submodule update --init
$ cmake -H. -Bbuild
-- The CXX compiler identification is GNU 10.3.0
-- 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:22 (add_subdirectory):
The source directory

/home/lagniez/Works/balls/3rdParty/pblib/cli/minisat

does not contain a CMakeLists.txt file.

-- Configuring incomplete, errors occurred!
See also "/home/lagniez/Works/balls/3rdParty/pblib/build/CMakeFiles/CMakeOutput.log".

@StillWaterJ
Copy link

I also encountered this problem. The cli/minisat directory is empty, then I checked the pblib on github, in which cli/minisat directory is linked to https://github.com/master-keying/minisat/tree/9ce29becfd33eebb373c56571cb90a30c21fccbc.
Then I downloaded the minisat from the url above, rename it and put it at cli/minisat.
When I run the command
cmake -H. -Bbuild
again, the error is gone.
Hope this helps you.

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

3 participants