Page 5 of 6

Re: LIBVLC OSX Progress

Posted: Mon Dec 29, 2008 10:55 am
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..

Posted: Mon Dec 29, 2008 11:19 am
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)

Posted: Mon Dec 29, 2008 1:20 pm
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.

Posted: Mon Dec 29, 2008 1:39 pm
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.

Posted: Mon Dec 29, 2008 10:53 pm
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 :)

Posted: Thu Jan 01, 2009 4:03 pm
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 ***

Posted: Thu Jan 01, 2009 9:26 pm
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.. :(

Posted: Thu Jan 01, 2009 10:26 pm
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.

Posted: Fri Jan 02, 2009 1:27 pm
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)

Posted: Sat Jan 03, 2009 12:05 pm
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..

Posted: Sat Jan 03, 2009 12:52 pm
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.

Posted: Sat Jan 03, 2009 2:38 pm
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

Posted: Fri Jan 09, 2009 10:08 am
by Inner
Fixed: Monitor Problem.

Posted: Fri Jan 09, 2009 6:15 pm
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

Posted: Fri Jan 16, 2009 8:33 pm
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