[x264-devel] lib Linking issue
Steven Walters
kemuri9 at gmail.com
Tue Mar 19 14:10:24 CET 2013
On Tue, Mar 19, 2013 at 7:00 AM, Jasleen Kaur <Jasleen at beesys.com> wrote:
> I am using CYGWIN to compile X264 on windows 7 64 bit OS.
> The steps which I follow are
>
> 1) I call ./configure --enable-shared
> 2) I call make
>
> I am successfuly able to compile the dll.
> I get
>
> libx264-130.dll
> libx264.dll.a
>
> I rename the libx264.dll.a to libx264.dll.lib and use it.
You can't normally do this, as I've usually found that the import
library made by gcc is incompatible with visual studio.
'Incompatible' in the obscure sense that VS doesn't complain that it
can't use the gcc import lib, but still doesn't use it anyway.
You have to make your own import library using visual studio's 'lib' utility.
>
> But the problem i am facing is to link with the library generated.
>
> Firstly I get linking error for x264_encoder_open_130
>
> I commented the following lines in x264.h
>
> #define
>
> x264_encoder_glue1(x,y) x##y
>
> #define
>
> x264_encoder_glue2(x,y) x264_encoder_glue1(x,y)
>
> #define
>
> x264_encoder_open x264_encoder_glue2(x264_encoder_open_,X264_BUILD)
>
> where
>
> #define X264_BUILD 130
>
>
>
> But I still get linking error for method x264_encoder_open.
>
>
>
>
>
> How should I go about solving this issue?
>
> Pls guide.
>
> -Jasleen
>
>
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> http://mailman.videolan.org/listinfo/x264-devel
>
More information about the x264-devel
mailing list