[theora-dev] How to add new src file into the theora

janaka priyadarshana rpjanaka at gmail.com
Mon Jan 21 01:05:28 PST 2008

now i can generate a make file for a newly added source files which is
located in a separate directory.

then my problem is how to call its function with in the existing theora

there is a function " calc_available_bandwidth(char * dst_adrs)" in newly
aded source file which is located in a new directory. its function signature
is written in the "common.h" header file in the same directory.

i wanna call this function with in the encoder_example.c , so i called this
function in the main method of the encoder_example.c and include the header
file(common.h) in the encoder_example.c

and i changed the Makefile.am <http://makefile.am/> in example directory as

EXTRA_encoder_example_SOURCES = getopt.c getopt1.c getopt.h ../net/common.h

where common.h include the signature of the function and client.c include
the implementation of the function.

but when run the make file , it gave an error as follow

encoder_example123-encoder_example.o: In function `main':
encoder_example.c:(.text+0xc64): undefined reference to
collect2: ld returned 1 exit status
make[2]: *** [encoder_example123] Error 1
make[2]: Leaving directory
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/group10/student/project/theora_net_embeded/libtheora- 1.0beta2'
make: *** [all] Error 2

please can anyone help me to solve this problem

On Jan 17, 2008 11:24 PM, Ralph Giles <giles at xiph.org> wrote:

> On Thu, Jan 17, 2008 at 07:28:55PM +0530, janaka priyadarshana wrote:
> > /bin/bash: @LIBTOOL@: command not found
> This means you need to install libtool and run
>  libtoolize --automake
> before rerunning configure and make.
>  -r

Janaka Priyadarshana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20080121/4cf44f18/attachment.htm

More information about the theora-dev mailing list