# Boring file regexps:
# doxygen output
-#(^|/)doc($|/)
+(^|/)doc/html($|/)
+(^|/)doc/latex($|/)
# depends files
\.d$
# qt
BASEDIR := ./
+CURDIR := $(shell pwd)
BINEXT :=
OBJEXT := .o
LIBEXT := .a
CXX := g++
-CXXFLAGS := -g -fPIC -I/usr/include/python2.3
-LDFLAGS :=
-
-CURDIR := $(shell pwd)
+CXXFLAGS := -g -fPIC -I/usr/include/python2.3 -I$(CURDIR)
+# needed for linux (as darwin doesn't put gl.h in a directory starting with
+# GL
+CXXFLAGS += -I/usr/include/GL
+# needed for darwin
+CXXFLAGS += -I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/usr/local/include
+LDFLAGS := -L/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ -L/usr/local/lib
# each module will add to this, .os are derived from it
TARGETLIBS :=
#include "mussa_exceptions.hpp"
#include <iostream>
+#include <sstream>
#include <stdexcept>
using namespace std;
// should i throw an error instead?
return;
}
+ if (path.size() != track_container.size()-1 ) {
+ stringstream msg;
+ msg << "Path size [" << path.size() << "] and track size ["
+ << track_container.size() << "] don't match" << endl;
+ throw mussa_error(msg.str());
+ }
if (path.size() != rc.size()) {
throw runtime_error("path and reverse compliment must be the same length");
}
int GlSequence::get_viewport_pixel_width()
{
- int viewport[4];
+ GLint viewport[4];
glGetIntegerv(GL_VIEWPORT, viewport);
return viewport[3]; // grab the viewport width
}
#include "alg/annotation_colors.hpp"
#include "alg/sequence.hpp"
#include "alg/color.hpp"
-#include <GL/gl.h>
+#include <gl.h>
//! Manage rendering a mussa sequence track
/*! The idea is this will keep track of the location of where the sequence
* is being rendered, and handle displaying annotations on that track
data = file_data_line.substr(equal_split_i+1);
win_size = atoi (data.c_str());
file_data_line = file_data_line.substr(space_split_i+1);
- // get window size
+ // get threshold size
space_split_i = file_data_line.find(" ");
header_data = file_data_line.substr(0,space_split_i);
equal_split_i = header_data.find("=");
TARGETBINS += $(TEST)
$(TEST): $(TESTOBJ) $(MUSSA_ALG_OBJ) $(MUSSA_ALG_GL_OBJ)
- g++ $(CXXFLAGS) -lGL -lboost_unit_test_framework -lboost_filesystem -o $@ $^
+ g++ $(CXXFLAGS) $(LDFLAGS) -lGL -lboost_unit_test_framework -lboost_filesystem -o $@ $^
LIBS += -lm
QT += opengl
+LIBS += -lboost_program_options
win32 {
BOOST_HOME = c:/Boost
INCLUDEPATH += $$BOOST_HOME/include/boost-1_33_1
+ LIBS -= -lboost_program_options
LIBS += $$BOOST_HOME/lib/libboost_program_options-mgw-s.lib
+} macx {
+ INCLUDEPATH += /usr/local/include
+ INCLUDEPATH += /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Headers
+ LIBS += -L/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework/Libraries/
+ LIBS += -L/usr/local/lib
} else {
- LIBS += -lboost_program_options
+ INCLUDEPATH += /usr/include/GL
}
-macx {
- INCLUDEPATH += /usr/X11R6/include
-}
+
#include <QWhatsThis>
#include "qui/MussaWindow.hpp"
-#include "qui/mussa_setup_dialog/MussaSetupDialog.hpp"
#include "mussa_exceptions.hpp"
#include <iostream>
#include <iostream>
#include <set>
-#include <GL/gl.h>
#include <math.h>
#include "qui/seqbrowser/SequenceBrowser.hpp"
#include <QRectF>
#include <QPoint>
#include <vector>
-#include <GL/gl.h>
+#include <gl.h>
#include <set>