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

error when building from source: CMake Error: The source directory "/flexbar-3.5.0" does not appear to contain CMakeLists.txt. #29

Open
amayer21 opened this issue Jan 16, 2020 · 3 comments

Comments

@amayer21
Copy link

Hello,
I'm trying to install flexbar 3.5.0 in a singularity container and got the following error message:
CMake Error: The source directory "/flexbar-3.5.0-linux" does not appear to contain CMakeLists.txt.

The container is build with Ubuntu 18.04 and I've installed the required libraries (libtbb-dev, libtbb2 and seqan-library-2.4.0). I've followed the instruction from the README.md after correcting the name of the flexbar tar archive and flexbar folder after untaring it (flexbar-3.5.0-linux and not flexbar-3.5.0). Here is the definition file used to build the container:
Flexbar-3.5.0.def.txt

I've found a CMakeLists.txt in the source code of version 3.3 but I'm not sure this will work to build the version 3.5

Any help on this error would be much appreciated.

Thank you very much,
Best wishes,
Alice

@amayer21
Copy link
Author

UPDATE:
I have copied the CMakeLists.txt from 3.3 into the /flexbar-3.5.0-linux directory and commented out the line add_subdirectory( src ) and it seems to work (i.e. $ flexbar --help et $ flexbar --version give the expected output).

see new def file and txt file attached:
Flexbar-3.5.0.def.txt
CMakeLists.txt

Having said that, I don't understand everything in CMakeList.txt, so I'm still worried that the build I've done may not fully work as expected.

Could somebody give feedback about this and maybe add the proper file in the 3.5 source code tar?

Thank you very much,
Best wishes,
Alice

@slobentanzer
Copy link

just here to comment, i had the same problem. bump.

@MelinaKlostermann
Copy link

Had the same problem, but cloning from git instead of downloading the .tar files works:

git clone --branch v3.5.0 https://github.com/seqan/flexbar
mv seqan-library-2.4.0/include flexbar
cd flexbar
cmake .
make

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