[Theora-dev] Encoder not linking on win32?
dbarrett at quinthar.com
Sun Oct 10 10:58:31 PDT 2004
Heh, it turns out "encoder_toplevel.c" was simply left out of the .dsp.
I added it back in and it worked like a charm.
On Sat, 9 Oct 2004 8:10 pm, Conrad Parker wrote:
> On Sat, Oct 09, 2004 at 07:28:53PM -0600, David Barrett wrote:
>> I decided to bite the bullet and grabbed the latest changes out of
>> subversion. Compiled fine (with a few cast changes), but for some
>> none of the encoding functions are linking. (Decoding appears to
>> link just
>> fine.) Any ideas what I did wrong?
>> Here's what I did:
>> 1) Downloaded a clean copy of the latest contents of Subversion using:
>> svn co http://svn.xiph.org/trunk/theora
>> 2) Opened 'theora\win32\theora_static.dsp' in Visual Studio .NET 2003
>> (automatically converted/upgraded on open)
>> 3) Successfully built 'theora\win32\static_debug\theora_static_d.lib'
>> 4) Recompiled my application using the newest theora headers
>> ... repeat with ogg, vorbis, and speex ...
>> 5) Made some very minor changes to my code so it'd compile (change
>> from signed to unsigned chars in a couple places)
>> 6) Linked my application and it failed to find the following
>> _theora_encoder_clear referenced in function _theora_clear
>> For some reason all the unlinkable functions have underscore
>> prefixes, even
>> though my code has none. Were any changes made to the encoding
>> prototypes since 1.0a3?
> ahh, it may be that you need to set THEORA_SUPPORT_ENCODE to 1 in the
> project somewhere. For autotools and symbian builds we include a
> file, but there doesn't seem to be one in win32.
More information about the Theora-dev