lua - 在需要 luac 32 位的情况下编译 VLC 失败

标签 lua vlc libvlc luac

尝试使用 https://wiki.videolan.org/OSXCompile/ 中概述的构建步骤构建 VLC但我在 luac 需要 32 位时失败了。卸载了 lua 并重新安装了一堆,没有选项可以指定 32 位安装 lua。我做错了什么吗?

kevinbook:vlc kevin$ cd build
kevinbook:build kevin$ ../extras/package/macosx/build.sh
+ ARCH=x86_64
+ MINIMAL_OSX_VERSION=10.7
++ xcrun --show-sdk-version
+ OSX_VERSION=10.11
++ xcode-select -print-path
+ SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
+ getopts hvrk:a: OPTION
+ shift 0
+ '[' x '!=' x ']'
+ out=/dev/stdout
+ '[' '' = yes ']'
+ info 'Building VLC for the Mac OS X'
+ local 'green=\033[1;32m'
+ local 'normal=\033[0m'
+ echo '[\033[1;32mbuild\033[0m] Building VLC for the Mac OS X'
[build] Building VLC for the Mac OS X
++ dirname ../extras/package/macosx/build.sh
+ spushd ../extras/package/macosx/../../..
+ pushd ../extras/package/macosx/../../..
++ pwd
+ vlcroot=/Users/kevin/vlc
+ spopd
+ popd
++ pwd
+ builddir=/Users/kevin/vlc/build
+ info 'Building in "/Users/kevin/vlc/build"'
+ local 'green=\033[1;32m'
+ local 'normal=\033[0m'
+ echo '[\033[1;32mbuild\033[0m] Building in "/Users/kevin/vlc/build"'
[build] Building in "/Users/kevin/vlc/build"
+ TRIPLET=x86_64-apple-darwin11
+ export 'CC=xcrun clang'
+ CC='xcrun clang'
+ export 'CXX=xcrun clang++'
+ CXX='xcrun clang++'
+ export 'OBJC=xcrun clang'
+ OBJC='xcrun clang'
+ export OSX_VERSION
+ export SDKROOT
+ export PATH=/Users/kevin/vlc/extras/tools/build/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/kevin/vlc/contrib/x86_64-apple-darwin11/bin:/Users/kevin/vlc/extras/tools/build/bin:/Users/kevin/build/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
+ PATH=/Users/kevin/vlc/extras/tools/build/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/kevin/vlc/contrib/x86_64-apple-darwin11/bin:/Users/kevin/vlc/extras/tools/build/bin:/Users/kevin/build/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
+ info 'Building building tools'

...

checking if linker supports -Bsymbolic...
checking __attribute__ ((aligned ())) support... 64
checking for __attribute__((packed))... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for backtrace... yes
checking if xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 groks MMX intrinsics... yes
checking if xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 groks MMX inline assembly... yes
checking if xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 groks MMX EXT inline assembly... yes
checking if xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 groks SSE2 intrinsics... yes
checking if xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 groks SSE inline assembly... yes
checking if xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 groks SSE2 inline assembly... yes
checking if xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 groks SSE3 inline assembly... yes
checking if xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 groks SSSE3 inline assembly... yes
checking if xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 groks SSE4.1 inline assembly... yes
checking if xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 groks SSE4.2 inline assembly... yes
checking if xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 groks SSE4A inline assembly... yes
checking if xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 groks 3D Now! inline assembly... yes
checking for LUA... no
configure: WARNING: No package 'lua5.2' found, trying lua 5.1 instead
checking for LUA... no
configure: WARNING: No package 'lua5.1' found, trying lua >= 5.1 instead
checking for LUA... yes
checking for luac... luac
configure: error: You need 32-bits luac when using lua from contrib.
kevinbook:build kevin$

最佳答案

我在编译vlc-android时遇到了类似的问题。我使用的是 64 位的 Arch 系统,但找不到 32 位的 lua 或 32 位的 lua runtime。

作为临时解决方法,我只是禁用了 lua

./configure --disable-lua

然后运行 ​​make 或 compile

make

./compile

我仍在搜索 32 位 lua 以安装在我的 64 位 Arch 上,即使在我的 pacman 配置中启用了 multilib

关于lua - 在需要 luac 32 位的情况下编译 VLC 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36190494/

相关文章:

lua - string.match 抛出错误 : attempt to index field '?' (a string value)

lua - 如何显式调用lua gc?

windows - vlc 马赛克中的 Udp 流

video-encoding - 如何在 MKV 文件上设置隔行扫描标志,以便 VLC 可以自动播放去隔行扫描?

compilation - 在 Mac OS 10.9 上编译 VLCKit

c++ - lvlc-qt 缺少编译错误

从 c 调用 Lua 脚本中的一个特定函数

for-loop - Lua for循环减少我?奇怪的行为

vlc - 使用 VLC 播放 SDP 文件?

android - 编译 VLC Android 失败 "You must define ANDROID_NDK, ANDROID_SDK before starting."