seqan / flexbar

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

error while installing from source 3.50 version #31

Open shashibioinfo143 opened 4 years ago

shashibioinfo143 commented 4 years ago

Hi sir,

We have followed commands mentioned in manuel

tar xzf flexbar-3.5.0.tar.gz

tar xJf seqan-library-2.4.0.tar.xz

mv seqan-library-2.4.0/include flexbar-3.5.0

cd flexbar-3.5.0 cmake . make

but it shows error at after make command

cmake . -- Flexbar 64 bit architecture -- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) -- Build will not support bzip2. -- Configuring done -- Generating done -- Build files have been written to: /home/ngc-bioinfo/Downloads/flexbar-3.5.0 ngc-bioinfo@ngc-bioinfo:~/Downloads/flexbar-3.5.0$ make [ 50%] Building CXX object src/CMakeFiles/flexbar.dir/Flexbar.cpp.o In file included from /home/ngc-bioinfo/Downloads/flexbar-3.5.0/src/Flexbar.cpp:24:0: /home/ngc-bioinfo/Downloads/flexbar-3.5.0/src/Flexbar.h:15:10: fatal error: tbb/pipeline.h: No such file or directory

include <tbb/pipeline.h>

      ^~~~~~~~~~~~~~~~

compilation terminated. src/CMakeFiles/flexbar.dir/build.make:62: recipe for target 'src/CMakeFiles/flexbar.dir/Flexbar.cpp.o' failed make[2]: [src/CMakeFiles/flexbar.dir/Flexbar.cpp.o] Error 1 CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/flexbar.dir/all' failed make[1]: [src/CMakeFiles/flexbar.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

we cant install latest version in other way via sudo apt install flexbar if you can please help me to resolve this

Thank you

kashyapchhatbar commented 2 years ago

Because latest tbb library no longer imports via

#include <tbb/pipeline.h>
#include <tbb/task_scheduler_init.h>

It should be changed to the following and flexbar devs need to update a lot of code which uses the deprecated pipeline from tbb.

#include <tbb/parallel_pipeline.h>

For a temporary solution, you can use an older version of https://github.com/oneapi-src/oneTBB like 2020.02 (which worked for me)