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
(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"