[theora-dev] Re: Compiling on FreeBSD

Arc arc at indymedia.org
Wed Oct 2 07:50:11 PDT 2002



On Wed, Oct 02, 2002 at 08:46:54AM -0500, volsung at mailsnare.net wrote:
> Two problems:
> 
> 1) You need to update your libvorbis to the latest CVS.  vorbis_granule_time()
> was added after 1.0.
> 2) By copying the getopt.h header, you've given the compiler the getopt_*
> function prototypes, but the linker doesn't have any function bodies to link to.
>  To fix:
> 
> 	* Copy the getopt.c file from vorbis-tools/share/ to the
> 	theora/examples directory.
> 	* Edit Makefile.am to include getopt.c as one of the source files for
> 	the encoder_example.
> 	* Rerun autogen.sh and recompile.
> 
> This should fix the problem.

I also had to copy/add getopt1.c - but that did it :-)

Thanks for the help, now lets see if I can port the player too..

It'd probobally be a good idea to commit some of this to the CVS, the
other thing I had to do was add -I/usr/local/include and
-L/usr/local/lib to the Makefiles.

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'theora-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Theora-dev mailing list