Porting vls to FreeBSD

"Carr, Ewan" <[email protected]>
Newsgroups gmane.comp.video.videolan.vls.devel
Message-ID <[email protected]>
Guys,
 
I have managed to get VideoLAN server (vls-0.3.3) running on FreeBSD (4.4)
but
I wouldnt go as far as saying that its a complete port (see below). However
I thought
Id mail this to the group in the hope that it can be a start for someone
contemplating
a more complete and formal port - I managed to run it up on FreeBSD and
stream MPEG2-PS files to vlc clients
on a test LAN.
 
Pre-build notes
----------------------
 
I ran ./configure --disable_dvd
(As far as I am aware libvdread-devel has not been ported to FreeBSD 
Anyone have any ideas here ?)
 
Modifications for build
-------------------------------
 
1) File src/core/socket.cpp
    Line 171 (AssignSlot)
    Line 193 (SetSlotBuff)
Changed "m_pBuffer[iSlot].iov_base = (bufftype*)pBuff"
to            ".....................................=(char*) pBuff
(bufftype is same type as pBuff anyway. iov_base on FreeBSD is defined
in /usr/include/sys/uio.h to be of type char*)
 
2) File src/core/library.cpp
Line 173
Changed "char* pszError = dlerror();"
to           "const char* pszError = dlerror();"
 
3) src/server/admin.cpp
Line 34
Replaced inclusion of crypt.h with inclusion of unistd.h instead
 
 
4) src/modules/netchannel/netoutput.cpp
Lines 382
Line 407
Replaced IPV6_ADD/DROP_MEMBERSHIP with IPV6_JOIN/LEAVE_GROUP
I am not sure which parameters are the most recent but these are ones I
needed
to use to make this file compile on FreeBSD(4.4) so...
 
I also added #include <netinet/in.h> to netoutput.cpp also
 
Then just gmake vls
 
Other notes
On linking, warnings arose concerning "encrypt" and "des_setkey" which the
linker
said werent part of the "system" - any ideas ?. I have vls running so
hopefully these
are not major issues.
 
Hope this is useful anyway
Cheers
Ewan
 
-------------------------
Dr Ewan S Carr
Space & Defense Division
Logica UK Ltd
-------------------------
 
 


This e-mail and any attachment is for authorised use by the intended recipient(s) only.  It may contain proprietary material, confidential information and/or be subject to legal privilege.  It should not be copied, disclosed to, retained or used by, any other party.  If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.  Thank you.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.