Page 1 of 1

How to install a .patch file

Posted: 19 Apr 2010 19:28
by JWVD
Hi guys,

I have a patch file (http://techblog.unwiredappeal.com/2010/ ... patch.html), but I have no idea how to use it... Can't find anything on the internet. I tried to compile it while I pasted it into extras/contrib/src/Patches, but it didn't work, the --enable-livehttp argument said that it was invalid. Any idea how to get started? I'm running Mac OS X 10.6.2...

Thanks in advance,

Joost

Re: How to install a .patch file

Posted: 19 Apr 2010 21:24
by RĂ©mi Denis-Courmont
Go to the main VLC source directory, then run

Code: Select all

patch -p1 < PATH/vlc-livehttp.patch
and the proceed with compilation as normal.

Re: How to install a .patch file

Posted: 20 Apr 2010 17:17
by JWVD
Thanks! Gonna try it soon, lets hope it works :)

Re: How to install a .patch file

Posted: 10 Jun 2010 01:36
by Sandrine
I'm trying to patch my vlc application installed on mac OS , but I still have this problem
In my application, I have the contents folder, in which there are
Info.plist MacOS PkgInfo Resources
I tried the command, but I received the following error
patch -p1 < /Users/sandrine/Desktop/vlc-livehttp.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/modules/access_output/Modules.am b/modules/access_output/Modules.am
|index de6c5b5..6b12fd4 100644
|--- a/modules/access_output/Modules.am
|+++ b/modules/access_output/Modules.am
--------------------------
File to patch:

Could you please tell me which folder to choose ?
Thank you in advance

SANDRINE