Question: Augustus install mac
gravatar for Max Haase
2.7 years ago by
Max Haase40
UW Madison
Max Haase40 wrote:

I'm trying to compile AUGUSTUS on my mac (10.10.4) and I fail to compile bam2hints and filterBam executables. I get this error: g++ -Wall -O2 -c -o bam2hints.o -I/usr/include/bamtools fatal error: 'api/BamReader.h' file not found include <api bamreader.h="">

1 error generated. make[2]: * [bam2hints.o] Error 1 make[1]: [all] Error 2 make: ** [all] Error 2

I have installed bamtools and I know for a fact that api/BamReader.h is there despite it saying it isn't.


software error genome • 2.7k views
ADD COMMENTlink modified 2.7 years ago by Jon280 • written 2.7 years ago by Max Haase40
gravatar for Jon
2.7 years ago by
United States - US FS
Jon280 wrote:

You have to make changes to the Makefiles for both bam2hints and filterBam to explicitly state where your bamtools installation files are. The easier way to install is to use homebrew.

To manually edit the makefiles you will need to add the following to the auxprogs/filterBam/src/Makefile:

BAMTOOLS = /your/path/to/bamtools

And then also make sure that under the INCLUDE variable that it is pointing to the correct folder that houses the api/bamreader.h. For example, if you installed bamtools from home-brew, the includes are in a slightly different place.

You also need to edit the path to the BAMTOOLS variable in the auxprogs/bam2hints/Makefile.

Given all of this, I still have had problems getting Augustus to install correctly, lately I've had problems using the --proteinprofile functionality - and I think some of the issues are compilation specific, i.e. just seem to happen on Mac and not Linux.

ADD COMMENTlink written 2.7 years ago by Jon280

Thanks Jon for the advice! I was able to compile bam2hits and filterBam successfully and it appears that augustus is working properly.

ADD REPLYlink written 2.7 years ago by Max Haase40

Just thought it may be useful to others, I put my comment here. In my case, gcc version also matters. gcc4.8 works for bam2hints but not filterbam. I used gcc5.4 to compile filterbam successfully.

ADD REPLYlink written 2.2 years ago by shl198340

I had a similar error, and in the end, I found a detailed step-by-step manual to correct this error, which is based on this answer.

Edit: After following this manual, it gave me the same error, but at least it seems like I can run the program from the augustus/src/ directory.

ADD REPLYlink modified 19 months ago • written 19 months ago by Tye Kahn10
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1803 users visited in the last hour