#1 would like to add a utility

open
nobody
5
2008-04-04
2008-04-04
Martin Shumway
No

Hi Asim,

I downloaded SRF and successfully built it on my system. Now, I wish to add my own utility that is a hack of one of the test programs.

I thought I could add the utility (seq2srf) to
the test/Makefile.am entry as one of the targets
and one of the build entries, and copy existing
code to seq2srf.cc, like this:

hera> cat Makefile.am
bin_PROGRAMS = testRead testWrite testWriteFastaq testWriteSFF seq2srf

testRead_SOURCES = testRead.cc
testRead_LDADD = $(top_builddir)/src/libsrf.a @LDFLAGS@ $(LDLIB)

testWrite_SOURCES = testWrite.cc
testWrite_LDADD = $(top_builddir)/src/libsrf.a @LDFLAGS@ $(LDLIB)

testWriteFastaq_SOURCES = testWriteFastaq.cc
testWriteFastaq_LDADD = $(top_builddir)/src/libsrf.a @LDFLAGS@ $(LDLIB)

seq2srf_SOURCES = seq2srf.cc
seq2srf_LDADD = $(top_builddir)/src/libsrf.a @LDFLAGS@ $(LDLIB)

testWriteSFF_SOURCES = testWriteSFF.cc
testWriteSFF_LDADD = $(top_builddir)/src/libsrf.a @LDFLAGS@ $(LDLIB)

INCLUDES= -I${top_srcdir} $(SHELL io_lib-config --cflags) -I../src

AM_LDFLAGS=$(SHELL io_lib-config --libs)
LDLIB=-lstdc++ -lz -lcurl -lread

Then, I rerun configure, and then attempt to run gmake. I cannot build the package after this change,
getting this error:

Making all in test
gmake[2]: Entering directory `/home/shumwaym/packages/srf/srf/test'
cd .. && automake-1.10 --gnu test/Makefile
/bin/sh: line 11: automake-1.10: command not found

What am I doing wrong ?

Also, would you be willing to open up a ./share or
a ./utils directory for contributed programs ?

Thanks! Martin

Discussion

  • Asim
    Asim
    2008-04-27

    Logged In: YES
    user_id=1765186
    Originator: NO

    Martin,

    Sorry for the delay in getting back to you - I just spotted this. I've setup tracker to e-mail me so response should be faster.

    I'm not an autconf, automake expert, but I think you need to run automake again. That updates Makefile.in which is picked up by configure - that's the step you are missing.

    Here's alink to a manual - there are probably better resources out there.

    A