Page 6 of 6

Posted: Thu Jan 29, 2009 5:05 pm
by Philippe-felixer76-2
Philippe-felixer76-2 wrote:
Philippe-felixer76-2 wrote:
Inner wrote:Fixed: Monitor Problem.
Good news!!

I think i'm going to stop the efford getting VLC to run on Win, Linux
and MacOSX. Windows, tooo unstable, Linux, seems to run good,
but MacOSX is ..... pffffff...

This code will output log and exception info:

http://www.purebasic.fr/english/viewtop ... ght=libvlc
Update: Got LibVLC test running on a PB OSX window..

http://members.chello.nl/p.calsteren/LibVLC_PB_OSX.jpg
Update: Got it running smooth now on OSX. Needed a few libvlc
API OSX specific calls.

Re: Video Player based on VLC

Posted: Wed Dec 30, 2009 9:04 pm
by D Ogre
I downloaded the Win32 version of the VideoLAN VLC media player and installed it. I tried compiling both of the PB VLC (Alpha 6) examples posted here using PB 4.40 without success. I'm I doing something wrong or is the code broken with PB 4.40?

The debug log states a linker error: libvlc.lib not found.

The pbaddons include file is supposed to build libvlc.lib under the VLC folder with PB polib.exe right?

Re: Video Player based on VLC

Posted: Thu Dec 31, 2009 12:31 am
by Philippe-felixer76-2
> downloaded the Win32 version of the VideoLAN VLC media player and installed it. I tried compiling both of the PB VLC (Alpha
> 6) examples posted here using PB 4.40 without success. I'm I doing something wrong or is the code broken with PB 4.40?
> The debug log states a linker error: libvlc.lib not found.
>
> The pbaddons include file is supposed to build libvlc.lib under the VLC folder with PB polib.exe right?

See this:

[
inc. wrote:
On Windows, when compiling finishes it claims that libvlc.dll cant be found.
The .lib file has been genrated correctly in the VLC dir.
You need to set the directory in compiler options to VLC. I know..
Philippe-felixer76-2
Enthusiast
Posts: 131
Joined: Sat Aug 18, 2007 6:09 am
Location: Netherlands
]..............

Yeah it was supposed to do that..
I think the code is broken with pb 4.4. I might look into it one of these day's, VLC also updated
and it might work a lot better today..

Re: Video Player based on VLC

Posted: Thu Dec 31, 2009 3:05 am
by lexvictory
D Ogre wrote:The debug log states a linker error: libvlc.lib not found.
that means that you don't have the file the linker needs to link to the dll.
it does NOT come with the vlc installer; you have to find it somewhere or build it yourself.

there is a comment in one of the sources on the first page!

Code: Select all

;"C:\Program Files\Purebasic\Compilers\polib /out:libvlc.lib libvlc.dll"
run that in cmd with the current dir set to your vlc dir (or use absolute paths)

Re: Video Player based on VLC

Posted: Thu Dec 31, 2009 7:13 pm
by Philippe-felixer76-2
lexvictory wrote:
D Ogre wrote:The debug log states a linker error: libvlc.lib not found.
that means that you don't have the file the linker needs to link to the dll.
it does NOT come with the vlc installer; you have to find it somewhere or build it yourself.

there is a comment in one of the sources on the first page!

Code: Select all

;"C:\Program Files\Purebasic\Compilers\polib /out:libvlc.lib libvlc.dll"
run that in cmd with the current dir set to your vlc dir (or use absolute paths)
Thats what i meant..
Happy 2010 to you too..

Re:

Posted: Fri Jan 01, 2010 11:40 am
by jamirokwai
Philippe-felixer76-2 wrote:Update: Got it running smooth now on OSX. Needed a few libvlc
API OSX specific calls.
Hi Philippe,

I'd love to hear and see, how you did that for Mac OS X... :)

Re: Video Player based on VLC

Posted: Wed Jan 06, 2010 2:17 am
by D Ogre
Ok. I must have missed that. I will attempt another compile...

Re: Video Player based on VLC

Posted: Mon Apr 05, 2010 12:28 pm
by inc.
Theres no doubt that VideoLan is one of the best free video playback frontends.

But from a programmers view IMHO its not an optimal way to provide a specific functionality to PureBasic via an existing frontend.
The better way would be providing an oportunity to acces to the same backend Videolan uses: LibAvCodec, LibDVDread, LibAvFormat. And do access those Libs from scratch

Or do you really want to force a user of your video playback application to install a different video playback application before ... which btw. would suit to the exactly same needs and therefore makes your own appl. obsolete.

Re: Video Player based on VLC

Posted: Thu Jul 14, 2011 5:42 pm
by nemesis
Sorry for bumping this thread up

I use the libvlc.dll & libvlc.lib version 1.1.9 but i get this:

---------------------------
PureBasic - Linker error
---------------------------
POLINK: error: Unresolved external symbol '_libvlc_exception_init'.
POLINK: error: Unresolved external symbol '_libvlc_playlist_add'.
POLINK: error: Unresolved external symbol '_libvlc_playlist_get_media_player'.
POLINK: error: Unresolved external symbol '_libvlc_video_set_parent'.
POLINK: fatal error: 4 unresolved external(s).

I think that these functions are no more included in lib.
How to fix this?

Re: Video Player based on VLC

Posted: Mon Dec 05, 2011 12:37 pm
by deano1987
Hey guys, could someone link me to the latest source which runs in Windows please? I would like to utilize this for a project of mine but I'm getting confused with all the posts and dont know where the best Windows code is. Thanks :mrgreen: