[vlc] Fix for python setup.py

Bill Eldridge bill at rfa.org
Sat Apr 12 01:53:10 CEST 2003



I had to hack the Python stuff to get it
to compile - I was getting:


Traceback (most recent call last):
 >>> import vlc
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: /usr/lib/python2.2/site-packages/vlc.so: undefined symbol: 
vlc_entry__mpeg_video

I ended up needing to alter the python setup.py
to include all the vlc libs in /usr/local/lib/vlc/*
(easier  than using all the dirs in ../modules/codec/*)
============================================
#FFMPEG_DIR = '/home/cyril/ffmpeg'
FFMPEG_DIR = '/usr/local/src/ffmpeg'

vlc = Extension('vlc',
                sources = ['vlcmodule.c'],
                libraries = ['vlc', 'rt', 'dl' , 'pthread', 'ffmpeg', 'm',
                             'avcodec','mpeg_video','idct','idctclassic',
                             'motion','memcpymmx','idctmmx','motionmmx',
                             'i420_rgb_mmx','i420_yuy2_mmx','i420_ymga_mmx',
                             'i422_yuy2_mmx','memcpymmxext','idctmmxext',
                             'motionmmxext','memcpy3dn'],
                library_dirs = ['/usr/local/lib/vlc', '../lib', 
'../modules/codec/ffmpeg',
                                FFMPEG_DIR + '/libavcodec'])
=================================================

Not quite a diff, but trivial to apply.


-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc mailing list