Unable to build VLC for iOS 5.0&Mac OS X Lion

macOS specific usage questions
zhungxd
New Cone
New Cone
Posts: 1
Joined: 07 Dec 2011 04:08

Unable to build VLC for iOS 5.0&Mac OS X Lion

Postby zhungxd » 07 Dec 2011 05:01

error code

Code: Select all

Using 1 processors mkdir -p src-arm-apple-darwin10-ios/src cp src/Distributions/ios.mak src-arm-apple-darwin10-ios/src/../distro.mak cp config.mak src-arm-apple-darwin10-ios/src/../config.mak ln -sf ../../src/Patches src-arm-apple-darwin10-ios/src ln -sf ../../src/packages.mak src-arm-apple-darwin10-ios/src ln -sf ../../src/Makefile src-arm-apple-darwin10-ios/src/Makefile make -C src-arm-apple-darwin10-ios/src "/usr/bin/svn" co svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg svn: Can't connect to host 'svn.ffmpeg.org': Connection refused make[1]: *** [ffmpeg] Error 1 make: *** [using-src] Error 2

i have downloaded ffmpeg's source code.how to change the shell?

xinaction
Blank Cone
Blank Cone
Posts: 16
Joined: 20 Sep 2011 10:02

Re: Unable to build VLC for iOS 5.0&Mac OS X Lion

Postby xinaction » 09 Dec 2011 01:36

Read the Makefile, put the ffmpeg into the corresponding folder.

cubevandot
New Cone
New Cone
Posts: 1
Joined: 24 Jul 2012 20:03

Re: Unable to build VLC for iOS 5.0&Mac OS X Lion

Postby cubevandot » 24 Jul 2012 20:34

Hello,

picking up this old story, we have also experienced build problems with VLC 2 and OS X 10.7 Lion - however probable due to another cause. In particular, we have the following setup:
  • - OS X10.7 Lion
    - VLC 2.0.3 source
    - Installed Xcode 4.3 with command line tools, but no 4.1/4.2 or older version has never been installed before (which seems to be an essential point)
    - Installed ffmpeg, zlib, ...
we have followed the Wiki description, but on Lion this seems to fail right at the beginning (because it does not find the compilers I think), so we have tried a lot more and always continued a bit further in the build file (the wiki description seems to be wrong or incomplete, because we set the variables properly, think that we satisfy all preconditions etc.).

The most promising start was to use:

Code: Select all

../extras/package/macosx/build.sh -mmacosx-version-min=10.7 instead of the standard variant with parameter (other parameters had no effect in our case)
then it looks much better, but fails at two places: in the main.mak where the library needs to be replaced (curl command fails), and regarding clang which is not available on Lion. Installing clang on OS X with macports and setting a symlink to the previous developer directory, does help, but then the headers e.g. stdio.h are missing. Trying to move some files from a Snow Leopard machine (with Xcode 4.1 and 4.3) to the Lion system, did not do the trick for us.. (still it claims files are not available etc.) ... maybe we did it the wrong way that may be of course reasonable to assume.

One exemplary error code:

Code: Select all

/Users/XXXXX/Downloads/VLC-Source/vlc-2.0.3/extras/package/macosx/../../../include/vlc_fixups.h:48:11: fatal error: 'stdio.h' file not found # include <stdio.h> /* FILE */# include <stdio.h> /* FILE */ ^ ^ # include <stdio.h> /* FILE */
So, we have tried it on a mac which has been upgrade from Snow leopard. Although the script continues again considerably, it still does not finish properly for some reason. Other suggestion were to set the following:

Code: Select all

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
or

Code: Select all

xcode-select -switch /usr/bin
(in consideration that we tried it with macports)

No change at all :(

We have also tried to upgrade gcc and set it properly, but that seems not to be the issue at all, as it seems to start mostly with the clang parts, which is of course not part of Lion any more, but can be installed.

Does anyone of you have experiences compiling VLC on OS X Lion for some non-experts experimenting with some VLC details?
Thanks for any suggestion what to try – it is probably much simpler than we tried :)

What do we need?
We are using the live streaming feature, so we may not require exactly VLC 2.0.3 for OS X. For Ubuntu it works easily to compile the code, but that is not very helpful if we have an OS X Server in use.

BR,
Patrick
PS.: The error messages are whether very verbose nor telling, so I only focused on verbal descriptions of their "cause"


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 18 guests