Menu

#1 Compile error on Ubuntu 18.04

1.0
closed
2019-12-28
2019-12-11
cement_head
No

Hello,

I am using Ubuntu 18.04 LTS and have downloaded GRASShoPER and am trying to compile and install. I have installed all the dependencies. When I try to compile, I get an error with Seqan (see attached text file) and below:

 g++ -std=c++14 cutt_overlapping.cpp -o cutt.exe
cutt_overlapping.cpp:208:75: error: ‘seqan::BamFileInhas not been declared
 void cut_overlaps(std::vector <seqan::BamAlignmentRecord> records, seqan::BamFileIn& bamFileIn) {
                                                                           ^~~~~~~~~
cutt_overlapping.cpp: In functionvoid cut_overlaps(std::vector<seqan::BamAlignmentRecord>, int&)’:
cutt_overlapping.cpp:214:24: error: ‘getContigLengthwas not declared in this scope
     int shortest_len = getContigLength(records[0], bamFileIn);
                        ^~~~~~~~~~~~~~~
cutt_overlapping.cpp: In functionvoid process_sam_file(std::__cxx11::string)’:
cutt_overlapping.cpp:252:12: error: ‘BamFileInis not a member ofseqanseqan::BamFileIn bamFileIn;
            ^~~~~~~~~
cutt_overlapping.cpp:252:12: note: suggested alternative: ‘BamFlagsseqan::BamFileIn bamFileIn;
            ^~~~~~~~~
            BamFlags
cutt_overlapping.cpp:253:15: error: ‘bamFileInwas not declared in this scope
     if (!open(bamFileIn, toCString(bamFileName))) {
               ^~~~~~~~~
cutt_overlapping.cpp:253:15: note: suggested alternative: ‘bamFileNameif (!open(bamFileIn, toCString(bamFileName))) {
               ^~~~~~~~~
               bamFileName
cutt_overlapping.cpp:259:24: error: ‘bamFileInwas not declared in this scope
     readHeader(header, bamFileIn);
                        ^~~~~~~~~
cutt_overlapping.cpp:259:24: note: suggested alternative: ‘bamFileNamereadHeader(header, bamFileIn);
                        ^~~~~~~~~
                        bamFileName
cutt_overlapping.cpp:259:5: error: ‘readHeaderwas not declared in this scope
     readHeader(header, bamFileIn);
     ^~~~~~~~~~
cutt_overlapping.cpp:259:5: note: suggested alternative: ‘readaheadreadHeader(header, bamFileIn);
     ^~~~~~~~~~
     readahead
cutt_overlapping.cpp:265:12: error: ‘atEndwas not declared in this scope
     while(!atEnd(bamFileIn)) {
            ^~~~~
cutt_overlapping.cpp:265:12: note: suggested alternative:
In file included from /usr/include/seqan/bam_io.h:107:0,
                 from cutt_overlapping.cpp:1:
/usr/include/seqan/bam_io/bam_stream.h:603:13: note:   ‘seqan::atEndinline bool atEnd(BamStream & bamIO)
             ^~~~~
Makefile:4: recipe for target 'cutt.exe' failed
make: *** [cutt.exe] Error 1
STOPPING...
1 Attachments

Discussion

  • cement_head

    cement_head - 2019-12-11

    Nevermind - the issue was a very old (1.4) version of SeqAn that is installed as the default on Ubuntu 18.04. I downloaded a much newer version 2.4 from the Debian Repos and GRASShopPER compiled without the SeqAn error.

     
  • Wojciech Frohmberg

    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.