[vlc-devel] Re: python binding compilation problem

KwangYul Seo kwangyul.seo at gmail.com
Fri Apr 27 03:06:28 CEST 2007


It compiles when I remove -lvlc-control from vlc-config and copy libvlc.*
into src/.libs.

I copied vlc.pyd from bindings/python/lib.win32-2.5 to the installed vlc
root directory and tested it by importing vlc in python interpreter.

C:\VLC-0.9.0-svn>python
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import vlc
>>> mc = vlc.MediaControl()

After this, vlc crashed immediately.  Is it reliable enough (is this my
mistake?) or still being tested?

Thanks,
kwang Yul Seo

2007/4/27, KwangYul Seo <kwangyul.seo at gmail.com>:
>
> Hi
>
> I compiled the vlc trunk in Cygwin (-mno-cygwin). I want to enable pyton
> binding, but it emits link errors.
>
> C:\cygwin\bin\gcc.exe -mno-cygwin -shared -s
> ../../bindings/python\Release\.\vlc_module.o
> ../../bindings/python\Release\.\vlc.def -Lc:\Python25\libs
> -Lc:\Python25\PCBuild -lpython25 -lmsvcr71 -o
> ../../bindings/python\lib.win32- 2.5\vlc.pyd -L../..\src\.libs
> -L/usr/local/lib -g -Wl,--exclude-libs,libunicows.a -lunicows
> -L/usr/win32/lib -liconv /usr/win32/lib/libintl.a /usr/win32/lib/libiconv.a
> -mwindows -L/usr/win32/lib -lvlc -lvlc-control -Wl,--exclude-libs,
> libunicows.a -lunicows -L/usr/win32/lib -liconv /usr/win32/lib/libintl.a
> /usr/win32/lib/libiconv.a -mwindows -L/usr/win32/lib
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/bin/ld:
> cannot find -lvlc
> collect2: ld returned 1 exit status
>
> I looked up the directory -L../..\src\.libs, but I found no files.
> libvlc.dll, libvlc.dll.a and libvlc.def was in src directory, but there is
> nothing like libvlc-control.dll.
>
> My configuration is like the following.
>
> ./bootstrap && \
> PATH=/usr/win32/bin:$PATH \
> PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig \
> CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
> LDFLAGS=-L/usr/win32/lib \
> CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
> ./configure \
>     --enable-python-bindings \
>     --enable-debug \
>     --enable-nls \
>     --enable-ffmpeg \
>     --with-ffmpeg-mp3lame \
>     --with-ffmpeg-faac \
>     --with-ffmpeg-zlib \
>     --enable-faad --enable-flac \
>     --enable-theora \
>     --enable-twolame \
>     --enable-sdl --with-sdl-config-path=/usr/win32/bin \
>     --enable-live555 --with-live555-tree=/usr/win32/live.com \
>     --with-freetype-config-path=/usr/win32/bin \
>     --with-fribidi-config-path=/usr/win32/bin \
>     --with-xml2-config-path=/usr/win32/bin \
>     --disable-dvdnav \
>     --disable-visual \
>     --disable-activex \
>     --disable-cdda \
>     --disable-libcdio \
>     --disable-libcddb \
>     --disable-vcd \
>     --disable-smb
>
>
>
> Thanks,
> Kwang Yul Seo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070427/bef9e74e/attachment.html>


More information about the vlc-devel mailing list