linking against vlc with the newest version 3.0.16

This forum is about all development around libVLC.
kant33
New Cone
New Cone
Posts: 1
Joined: 08 Mar 2022 23:02

linking against vlc with the newest version 3.0.16

Postby kant33 » 08 Mar 2022 23:15

Hello,
i would like to let u know, that i was able to include and link libvlc in its current version vlc 3.0.16 on windows.

Since i had trouble i googled it and i found this
https://chat.stackoverflow.com/rooms/10 ... broadhurst

Since the wiki and also in the chat it is stated, that the method is outdated, i would like to tell how i solved it.
Also in hope that someone will update the wiki, so others have a easier time.

1. download the version 3.0.16 x32 from the website
2. download the source for 3.0.16
3. using this https://wiki.videolan.org/GenerateLibFromDll/
4. when trying to link against the created libvlc u get an error.

something like a undefinied symbol in libvlc_media.h
i just changed the file

//typedef ssize_t (*libvlc_media_read_cb)(void *opaque, unsigned char *buf,
// size_t len); <--- old
typedef int (*libvlc_media_read_cb)(void* opaque, unsigned char* buf, size_t len); <--- new

(i notitced that the other functions use int and not ssize_t, so i tried to replace it)
and thats it. it works like a charm

When i tried to compile, it works without problems. not only linking and compiling , but also playing videos without any problems.
i dont know if this might cause any problems, but i dont think it will, since its just an return value anyways.

would be nice if a develeoper could check if they can replace it aswell. and fix this problem for good.

also again, i hope somebody can update the wiki

thxfor ur work on vlc

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: linking against vlc with the newest version 3.0.16

Postby mfkl » 09 Mar 2022 03:58

Looks like you are using master, as 3.0 branch has not changed regarding this https://code.videolan.org/videolan/vlc/ ... dia.h#L368

See https://code.videolan.org/videolan/vlc/ ... uests/1512 for context. Your patch doesn't seem correct.
https://mfkl.github.io

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: linking against vlc with the newest version 3.0.16

Postby Rémi Denis-Courmont » 09 Mar 2022 17:14

We are not going to break binary compatibility within 3.0.x to accommodate one subpar platform.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

Re: linking against vlc with the newest version 3.0.16

Postby mangokm40 » 10 Mar 2022 18:06

It's been a while since I looked at this. I think I wound up defining 'ssize_t' as 'SSIZE_T' for my VS2017 compile/link.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 23 guests