FIX smf-tool compilation (library ordering)
This commit is contained in:
parent
207ad2d369
commit
3da54244ea
@ -3,11 +3,14 @@ CXXFLAGS = -Wall
|
||||
CPPFLAGS = -I $(AD)/libs/evoral -I $(AD)/libs/pbd -I $(AD)/build/libs/pbd
|
||||
CPPFLAGS += `pkg-config --cflags libxml-2.0 glibmm-2.4`
|
||||
|
||||
LDFLAGS = -L $(AD)/build/libs/pbd -lpbd -Xlinker -rpath=$(AD)/build/libs/pbd
|
||||
LDFLAGS += -L $(AD)/build/libs/temporal -ltemporal -Xlinker -rpath=$(AD)/build/libs/temporal
|
||||
LDFLAGS += -L $(AD)/build/libs/evoral -levoral -Xlinker -rpath=$(AD)/build/libs/evoral
|
||||
LDFLAGS = -L $(AD)/build/libs/pbd
|
||||
LDFLAGS += -L $(AD)/build/libs/temporal
|
||||
LDFLAGS += -L $(AD)/build/libs/evoral
|
||||
|
||||
LDLIBS = `pkg-config --libs libxml-2.0 glibmm-2.4`
|
||||
LDLIBS = -lpbd -Xlinker -rpath=$(AD)/build/libs/pbd
|
||||
LDLIBS += -ltemporal -Xlinker -rpath=$(AD)/build/libs/temporal
|
||||
LDLIBS += -levoral -Xlinker -rpath=$(AD)/build/libs/evoral
|
||||
LDLIBS += `pkg-config --libs libxml-2.0 glibmm-2.4`
|
||||
|
||||
smfload: smfload.cc libevoral
|
||||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ smfload.cc $(LDLIBS)
|
||||
|
@ -21,7 +21,7 @@ main (int argc, char** argv)
|
||||
#if 0
|
||||
Evoral::SMF smf;
|
||||
smf.open (fn);
|
||||
printf ("SMF '%s' tracks=%d, ppqn=%d\n", fn, smf.num_tracks (), smf.ppqn());
|
||||
printf ("SMF '%s' tracks=%d, ppqn=%d (n_notes: %ld)\n", fn, smf.num_tracks (), smf.ppqn(), smf.n_note_on_events ());
|
||||
#else
|
||||
FILE* f = g_fopen(fn, "r");
|
||||
if (!f) {
|
||||
|
Loading…
Reference in New Issue
Block a user