Video Player based on VLC

Windows specific forum
Philippe-felixer76-2
Enthusiast
Enthusiast
Posts: 135
Joined: Sat Aug 18, 2007 7:09 am
Location: Netherlands

Re: LIBVLC OSX Progress

Post by Philippe-felixer76-2 »

lexvictory wrote:
Philippe-felixer76-2 wrote:LibVLC for OSX:

http://nightlies.videolan.org/build/mac ... 8-0100.zip
mac os 10.4.8's linker doesnt like those libs at all, says they're invalid.

I'll (try) compile the lib. Just got to find the instructions again :lol:
Found this:

Please note that the VLCKit Framework does only support Mac OS X 10.5 Leopard, in contrast to the ordinary binary which also supports 10.4.

http://nightlies.videolan.org/build/mac ... l/?C=M;O=D

Would be great lexvictory, could use some help here..
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

tried compiling from source, failed a couple of times, have given up for tonight - may have another look tomorrow

but if it doesn't support it... then i have a problem (because the 10.5 installer doesnt like vmware on this machine)
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

it's madness, I went thru the first bootstrap and it built about 1000 libs, took about an hour, did not bother to do the rest.
besides PB for OS X only partially supports doubles so it's not going to work unless you work around it.
Philippe-felixer76-2
Enthusiast
Enthusiast
Posts: 135
Joined: Sat Aug 18, 2007 7:09 am
Location: Netherlands

Post by Philippe-felixer76-2 »

jack wrote:it's madness, I went thru the first bootstrap and it built about 1000 libs, took about an hour, did not bother to do the rest.
besides PB for OS X only partially supports doubles so it's not going to work unless you work around it.
Hehehe.. i'm doing it now also, i had to patch libtheodora manualy,
and now it's building again .. takes hours :)

I like to see how far i can get it to work apart from the doubles,
hope Fred will update PB soon to be fully functional also on OSX.
Philippe-felixer76-2
Enthusiast
Enthusiast
Posts: 135
Joined: Sat Aug 18, 2007 7:09 am
Location: Netherlands

Post by Philippe-felixer76-2 »

jack wrote:it's madness, I went thru the first bootstrap and it built about 1000 libs, took about an hour, did not bother to do the rest.
besides PB for OS X only partially supports doubles so it's not going to work unless you work around it.
Call it a day, stuck with compiling x264, gives me much troubles.

I found some talk about it on the videolan IRC:

http://dionoea.chewa.net/irc/videolan/% ... -10-25.log
00:34 < Snaggle> I'm trying to build the deps for VLC on OSX. The build fails after creating x264.a with this error: ".depend:1: *** missing separator. Stop." Any suggestions?
00:34 < thresh> Snaggle: hmmm, Intel?
00:34 < Snaggle> this is with the stuff inside extras/contrib
00:34 < thresh> Snaggle: and what VLC version
00:34 < Snaggle> thresh: yes
00:34 < Snaggle> thresh: today's snapshot tarball
00:34 < thresh> of 1.0 or ?
00:35 < thresh> IIRC master contrib build uses binary contrib
00:35 < Snaggle> vlc-1.0.0-git from vlc-snapshot-20081024.tar.bz2
00:36 < thresh> well
00:36 < thresh> what exactly you do in extras/contrib ?
00:37 < Snaggle> as per the wiki, ./bootstrap and then 'make src'...
00:38 < thresh> ah wiki lies
00:38 < thresh> ./bootstrap
00:38 < thresh> then make
00:38 < thresh> but first make clean
00:38 < thresh> were is it written ?
00:38 < thresh> where
00:38 < Snaggle> http://wiki.videolan.org/OSXCompile
00:38 -!- sebr [n=seb@amarok/developer/sebr] has joined #videolan
00:39 < Snaggle> this has been going through most of the deps w/out any problems (ffmpeg needed some tweaking to its patch). x264 is the first one (out of like 50) to fail
00:39 < thresh> well, i built master a week ago, was fine, probably something changed.
00:39 < thresh> (this happens)
Better luck next time :)
Coolman
Enthusiast
Enthusiast
Posts: 103
Joined: Sat Sep 03, 2005 4:07 pm

Post by Coolman »

To refresh the window under windows, I tried:

- The callback on the window
- UpdateWindow_

But it is not 100% effective, there is much simpler, just add the following:

SmartWindowRefresh (# WINDOW_PLAYMEDIA, 1)

And the problem is fixed ...

It's perfect now ...

******* see here ******
If OpenWindow(#WINDOW_PLAYMEDIA, 0, 0, 60, 20, "PureBasic VLC", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MaximizeGadget)
ButtonGadget(#GAD_FILE, 0, 0, 0, 0, "F")
ButtonGadget(#GAD_PLAYPAUSE, 0, 0, 0, 0, ">")
ScrollBarGadget(#GAD_TRACKBAR, 0, 0, 0, 0, 0, 1000, 1)
ContainerGadget(#GAD_MEDIACONTAINER, 0, 0, 0, 0)
; Get a drawable window dependant on which os the source was compiled on.
CompilerSelect #PB_Compiler_OS
CompilerCase #PB_OS_Linux
drawable=PBVLC_XDisplayFromWindowID(GadgetID(#GAD_MEDIACONTAINER))
CompilerCase #PB_OS_Windows
drawable=GadgetID(#GAD_MEDIACONTAINER)
SmartWindowRefresh(#WINDOW_PLAYMEDIA, 1) ; *** add this line ***
*** Excuse my bad English, I uses has translating program ***
Philippe-felixer76-2
Enthusiast
Enthusiast
Posts: 135
Joined: Sat Aug 18, 2007 7:09 am
Location: Netherlands

Post by Philippe-felixer76-2 »

Coolman wrote:To refresh the window under windows, I tried:

- The callback on the window
- UpdateWindow_

But it is not 100% effective, there is much simpler, just add the following:

SmartWindowRefresh (# WINDOW_PLAYMEDIA, 1)

And the problem is fixed ...

It's perfect now ...

******* see here ******
If OpenWindow(#WINDOW_PLAYMEDIA, 0, 0, 60, 20, "PureBasic VLC", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MaximizeGadget)
ButtonGadget(#GAD_FILE, 0, 0, 0, 0, "F")
ButtonGadget(#GAD_PLAYPAUSE, 0, 0, 0, 0, ">")
ScrollBarGadget(#GAD_TRACKBAR, 0, 0, 0, 0, 0, 1000, 1)
ContainerGadget(#GAD_MEDIACONTAINER, 0, 0, 0, 0)
; Get a drawable window dependant on which os the source was compiled on.
CompilerSelect #PB_Compiler_OS
CompilerCase #PB_OS_Linux
drawable=PBVLC_XDisplayFromWindowID(GadgetID(#GAD_MEDIACONTAINER))
CompilerCase #PB_OS_Windows
drawable=GadgetID(#GAD_MEDIACONTAINER)
SmartWindowRefresh(#WINDOW_PLAYMEDIA, 1) ; *** add this line ***
I would say, good work coolman, good 2009 to you too!!

I'm sure Inner will add it to the current beta :P

Status update: I compiled all needed OSX external libs, but
compiling VLC won't work.. :(
Philippe-felixer76-2
Enthusiast
Enthusiast
Posts: 135
Joined: Sat Aug 18, 2007 7:09 am
Location: Netherlands

Post by Philippe-felixer76-2 »

Inner wrote:http://rainbowplayer.googlecode.com/files
note: I didn't put your procedures etc. in libvlc_windows.pb but in libvlc_pbaddons, as this functionality has nothing to do with libvlc directly, libvlc_pbaddons.pb is just to make life easier using it.
Please undo this, doesn't work on windows. It's needed in
the libvlc_windows.pb.
Coolman
Enthusiast
Enthusiast
Posts: 103
Joined: Sat Sep 03, 2005 4:07 pm

Post by Coolman »

Code: Select all

I would say, good work coolman, good 2009 to you too!!

I'm sure Inner will add it to the current beta :P
oups, I forgot, good years 2009 has all 8)
*** Excuse my bad English, I uses has translating program ***
Philippe-felixer76-2
Enthusiast
Enthusiast
Posts: 135
Joined: Sat Aug 18, 2007 7:09 am
Location: Netherlands

Post by Philippe-felixer76-2 »

lexvictory wrote:tried compiling from source, failed a couple of times, have given up for tonight - may have another look tomorrow

but if it doesn't support it... then i have a problem (because the 10.5 installer doesnt like vmware on this machine)
I feel like such idiot, i didn't manage to compile VLC on OSX, But
however, i thought when i installed VLC on OSX it just copy'd a single
exe file to my applications folder named VLC.app.

It turns out that it's a package, so you can set importC to the dir:
\Applications\VLC.app\Contents\MacOS\lib\libvlc.dylib.

And the plugins are here:
\Applications\VLC.app\Contents\MacOS\modules\

But i still get a unexpected error when i try to PBVLCLib OSX.
Better luck next time..
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Post by Inner »

just to let everyone know, my server monitor where I do all the work for linux for programming blew up, I hope to replace it by this Thrusday.
Philippe-felixer76-2
Enthusiast
Enthusiast
Posts: 135
Joined: Sat Aug 18, 2007 7:09 am
Location: Netherlands

Post by Philippe-felixer76-2 »

Inner wrote:just to let everyone know, my server monitor where I do all the work for linux for programming blew up, I hope to replace it by this Thrusday.
Ouch!! Hope you get it up soon again..

I now managed to get LibVLC running using the OpenLibrary()
way on OSX. Not on a PB window yet and not using normal
graphics output. But it's a start ...

LibVLC on OSX running a local Mpeg file:
http://members.chello.nl/p.calsteren/LibVLC_OSX_00.jpg
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Post by Inner »

Fixed: Monitor Problem.
Philippe-felixer76-2
Enthusiast
Enthusiast
Posts: 135
Joined: Sat Aug 18, 2007 7:09 am
Location: Netherlands

Post by Philippe-felixer76-2 »

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
Philippe-felixer76-2
Enthusiast
Enthusiast
Posts: 135
Joined: Sat Aug 18, 2007 7:09 am
Location: Netherlands

Post by Philippe-felixer76-2 »

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
Post Reply