vlckit error - "libvlc has thrown us an error: (null)"

This forum is about all development around libVLC.
skip
Blank Cone
Blank Cone
Posts: 18
Joined: 16 Jan 2010 03:24

vlckit error - "libvlc has thrown us an error: (null)"

Postby skip » 16 Jan 2010 03:40

After having had quite a hard time getting VLC (1.0.4) and vlckit to compile on a Mac OS X 10.6.0 system I finally managed to get that done, but now I'm trying to use the vlckit framework in my cocoa app.
I've added it to my project, included the vlckit header and all looks ok.

Creation of the videoView does work fine and I get a black viewer in the app. so far so good.
But when i try to init VLCMediaPlayer i get this error in my console and the viewer stays black:

Code: Select all

libvlc has thrown us an error: (null) (/Users/skip/Desktop/vlc2/projects/macosx/framework/Sources/VLCLibrary.m:97 -[VLCLibrary init])
Now, the first thing i noticed is that the path it refers to is the path of the original implementation file and not the framework which is in my xcode project, but not sure what to do to resolve this.

The code I'm using is literally the example code:

Code: Select all

VLCVideoView *videoView = [[VLCVideoView alloc] initWithFrame:[[window contentView] bounds]]; [[window contentView] addSubview:videoView]; [videoView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable]; VLCMediaPlayer *player = [[VLCMediaPlayer alloc] initWithVideoView:videoView]; [player setMedia:[VLCMedia mediaWithPath:@"/trailerdl.mp4"]]; [player play];
Does anyone know what I'm doing wrong here?

Thanks
Skip

pdherbemont
Blank Cone
Blank Cone
Posts: 70
Joined: 10 Mar 2007 00:27

Re: vlckit error - "libvlc has thrown us an error: (null)"

Postby pdherbemont » 16 Jan 2010 19:35

Hi,

This sounds like VLCKit (and libvlc) is not correctly built. Could you try to turn on --verbose=3 in VLCKit/VLCLibrabry.m?

Pierre.

skip
Blank Cone
Blank Cone
Posts: 18
Joined: 16 Jan 2010 03:24

Re: vlckit error - "libvlc has thrown us an error: (null)"

Postby skip » 18 Jan 2010 03:53

Hi Pierre,

I tried to build VLC and VLCKit in several different ways now, but either VLCKit won't build at all (error: ld: library not found for -lvlc) or it does build but I get the error as posted above. I've tried 32 bit, 64 bit, manually building VLC and building the whole lot via the VLCKit project in xCode, but no joy.
I've also updated this machine to 10.6.2 now (xCode was already on 3.2.1).

Is the article in the wiki still up-to-date as I've tried just about anything mentioned there but so far building directly in xCode worked best for me (apart from the libvlc error obviously).
(http://wiki.videolan.org/OSXCompile)

I also set the --verbose=3 in VLCLibrary.m, but unfortunately that doesn't seem to give any more output then before, just the exact same error.

Thanks
Skip

pdherbemont
Blank Cone
Blank Cone
Posts: 70
Joined: 10 Mar 2007 00:27

Re: vlckit error - "libvlc has thrown us an error: (null)"

Postby pdherbemont » 18 Jan 2010 04:25

Hi,

building VLCKit should be as simple as hitting Build in Xcode. You shouldn't attempt to build VLC by yourself.

Try the following:
- clone a new vlc.git
- Follow the indications in http://wiki.videolan.org/Mac_OS_X_Framework

This should work as is. (don't read OSXCompile on the wiki)

Pierre.

skip
Blank Cone
Blank Cone
Posts: 18
Joined: 16 Jan 2010 03:24

Re: vlckit error - "libvlc has thrown us an error: (null)"

Postby skip » 18 Jan 2010 04:32

Thanks Pierre, that explains a lot.

However I did try that as well and also got the libvlc: null error, but I'll try again in the morning and will let you know.

Thanks for your help!
Skip

skip
Blank Cone
Blank Cone
Posts: 18
Joined: 16 Jan 2010 03:24

Re: vlckit error - "libvlc has thrown us an error: (null)"

Postby skip » 18 Jan 2010 11:45

Hi Pierre,

I just downloaded a new copy via git and used xCode to built the project and all works fine now.
Not sure what I did differently this time, but hey... it works :-)

Thanks a lot for your advise!

Skip


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 5 guests