Re: How to add new src file into the theora

"janaka priyadarshana" <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.theora.devel
Message-ID <[email protected]>
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
source,

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
follow.

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

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
`calc_available_bandwidth'
collect2: ld returned 1 exit status
make[2]: *** [encoder_example123] Error 1
make[2]: Leaving directory
`/home/group10/student/project/theora_net_embeded/libtheora-1.0beta2
/examples'
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 <[email protected]> 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
>



-- 
-----------
Regards,
Janaka Priyadarshana

_______________________________________________
theora-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/theora-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.