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

bam/sam.h #54

Open
simonkidd opened this issue Jan 11, 2019 · 7 comments
Open

bam/sam.h #54

simonkidd opened this issue Jan 11, 2019 · 7 comments

Comments

@simonkidd
Copy link

Hi

After a successful ./configure I run make I get an fatal error that reads:

make[1]: Entering directory `.../shendurelab-LACHESIS-2e27abb/src/include/gtools'
g++ -c SAMStepper.cc -Wall -ansi -pedantic -g -O3 -std=c++11 
In file included from SAMStepper.cc:18:0:
**SAMStepper.h:65:21: fatal error: bam/sam.h: No such file or directory**
 **#include <bam/sam.h>**
                     ^
compilation terminated.
make[1]: *** [SAMStepper.o] Error 1

I tried to get around the issue by creating a symbolic link back into samtools to where sam.h is within 'src/include/gtools/' (creating the bam folder 'src/include/gtools/bam/') but it still fails to read the file.

Any help would be really appreciated.

Thanks,
Simon

@pkubgmlixs
Copy link

Hi,
I got the same fatal error, too. And have you solved this error?

@simonkidd
Copy link
Author

Sorry pkubgmlixs, I haven't had any responses andhaven't revisited it myself but will soon and post any update should I have any.

Thanks.

@GitHub-Lujianjun
Copy link

GitHub-Lujianjun commented Mar 13, 2019

Hi guys:
While this error appeared,means that your need to update gcc and g++.
BTW, gcc-4.8.2 is necessary.
Good luck!
JJLu

@WTarabidopsis
Copy link

Hi guys:
While this error appeared,means that your need to update gcc and g++.
BTW, gcc-4.8.2 is necessary.
Good luck!
JJLu

Hi JJ,
I also encountered the same problem with gcc version 4.8.5, any other solutions?
Thanks!

@mehmetdayi
Copy link

Hi
Did you solve it?
I am having the same issue.

@mehmetdayi
Copy link

I solved and am adding solution here in case someone alse may need.

First you need to edit SAMStepper.h and SAMStepper.cc files in /src/include/gtools directory by adding the directory after -I flag and a bam.h file after #include line.

For instance (SAMStepper.h file editing);

// To compile using this, you must include -I /home/user10/applications/LACHESIS/samtools-legacy_0.1.19_debian
#include "/home/user10/applications/LACHESIS/samtools-legacy_0.1.19_debian/sam.h"

You should do the same editing for SAMStepper.cc.

Then you can run make and later make install.

@RanSenn
Copy link

RanSenn commented Jul 27, 2022

I solved and am adding solution here in case someone alse may need.

First you need to edit SAMStepper.h and SAMStepper.cc files in /src/include/gtools directory by adding the directory after -I flag and a bam.h file after #include line.

For instance (SAMStepper.h file editing);

// To compile using this, you must include -I /home/user10/applications/LACHESIS/samtools-legacy_0.1.19_debian #include "/home/user10/applications/LACHESIS/samtools-legacy_0.1.19_debian/sam.h"

You should do the same editing for SAMStepper.cc.

Then you can run make and later make install.

It works!Thank You Very Much!

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

6 participants