seqan / flexbar

flexible barcode and adapter removal
BSD 3-Clause "New" or "Revised" License
76 stars 29 forks source link

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 4 years ago

amayer21 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

MelinaKlostermann commented 2 years ago

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