Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在mac can'上编译VLC;找不到MacOSX.sdk_Macos_Vlc - Fatal编程技术网

在mac can'上编译VLC;找不到MacOSX.sdk

在mac can'上编译VLC;找不到MacOSX.sdk,macos,vlc,Macos,Vlc,在VLC macOSCompile wiki页面之后。使用单个命令生成说明。我使用Xcode 11.3.1命令行工具、开发人员签名等运行10.14.6 重要提示--我的MacOSX.sdk文件位于以下位置: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk 通过构建来创建makefile,完成引导并运行make,一切都很好。然后我得到以下错误——如何将VLC

在VLC macOSCompile wiki页面之后。使用单个命令生成说明。我使用Xcode 11.3.1命令行工具、开发人员签名等运行10.14.6

重要提示--我的MacOSX.sdk文件位于以下位置: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk

通过构建来创建makefile,完成引导并运行make,一切都很好。然后我得到以下错误——如何将VLC指向MacOSX.sdk文件所在的位置

如何设置vlc的“contrib环境”

请注意,在下面的代码片段中,contrib将MacOSX.sdk文件指针设置到错误的位置-如何修复

我需要在vlc源代码中编辑一些内容吗?谢谢错误:

Setting base environment
Using VLC root dir /Users/GR99/temp/VLC/vlc and triplet x86_64-apple-darwin18
[build] Checking for python3 ...
Python 3.8.1
[build] Building in "/Users/GR99/temp/VLC/vlc/build"
[build] Building building tools
You are ready to build VLC and its contribs
Setting symbol environment
Setting contrib environment with minimum macOS version 10.11 and SDK /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
[build] Building contribs
Packages licensing...    GPL version 3
Creating makefile...
Bootstrap completed.
Run "make" to start compilation.

....

make: Nothing to be done for `fetch'.
make: `.gettext' is up to date.
# Framework
cd breakpad/src/client/mac/ && xcodebuild MACOSX_DEPLOYMENT_TARGET=10.11 -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk WARNING_CFLAGS=-Werror=partial-availability OTHER_CFLAGS=-fno-stack-check -arch x86_64 CLANG_CXX_LIBRARY=libc++
# Build Sparkle and change the @rpath
cd sparkle && xcodebuild MACOSX_DEPLOYMENT_TARGET=10.11 -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk WARNING_CFLAGS=-Werror=partial-availability OTHER_CFLAGS=-fno-stack-check -arch x86_64
xcodebuild: error: SDK "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" cannot be located.
xcodebuild: error: SDK "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" cannot be located.
make: *** [.sparkle] Error 64
make: *** [.breakpad] Error 64
make: Target `all' not remade because of errors.
# Framework
cd breakpad/src/client/mac/ && xcodebuild MACOSX_DEPLOYMENT_TARGET=10.11 -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk WARNING_CFLAGS=-Werror=partial-availability OTHER_CFLAGS=-fno-stack-check -arch x86_64 CLANG_CXX_LIBRARY=libc++
xcodebuild: error: SDK "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" cannot be located.
make: *** [.breakpad] Error 64

cf:
。/extras/package/macosx/build.sh-h

它说:

usage: extras/package/macosx/build.sh [options]

Build vlc in the current directory

OPTIONS:
   -h            Show some help
   -q            Be quiet
   -j            Force number of cores to be used
   -r            Rebuild everything (tools, contribs, vlc)
   -c            Recompile contribs from sources
   -p            Build packages for all artifacts
   -i <n|u>      Create an installable package (n: nightly, u: unsigned stripped release archive)
   -k <sdk>      Use the specified sdk (default: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk)
   -a <arch>     Use the specified arch (default: x86_64)
   -C            Use the specified VLC build dir
   -b <url>      Enable breakpad support and send crash reports to this URL
   -d            Disable debug mode (on by default)
用法:extras/package/macosx/build.sh[选项] 在当前目录中生成vlc 选项: -给我一些帮助 -保持安静 -j要使用的芯的力数 -r重建一切(工具、工具、vlc) -从源代码重新编译contrib -p为所有工件构建包 -我创建了一个可安装的包(n:nightly,u:unsigned stripped release archive) -k使用指定的sdk(默认值:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk) -a使用
xcrun--show sdk path
将sdk设置为其他方式
xcrun
使用环境变量$SDKROOT

注意:您可能希望安装和使用版本化的SDK,例如,在您的问题中,输出显示它的目标是最低El Capitan,
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.SDK
受版本控制的SDK在旧Xcode和上可用


“contrib环境”的设置全部由“单个命令”处理。

谢谢!我有MacOSX10.15.sdk,可以指出这一点——非常感谢。当然可以。您将能够使用该SDK以macos 10.15+为目标。