Undefined symbols for architecture x86_64:

来源:1-6 Windows下安装 FFmpeg

慕瓜8175459

2019-11-13

Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
是不是需要安装XCode??

写回答

3回答

慕瓜8175459

提问者

2019-11-14

有的,我找问题了,是在clang命令的时候少输入一个参数造成的

0
0

李超

2019-11-14

你之前是不是配置过交叉编译环境?如果配置过,需要把环境回复一下

0
0

李超

2019-11-13

你是啥系统,用什么编译器编译的?

0
1
慕瓜8175459
系统:Mac 10.14.3 ffmpeg编译参数: ffmpeg version N-95621-g53c21c2d6b Copyright (c) 2000-2019 the FFmpeg developers built with Apple LLVM version 10.0.1 (clang-1001.0.46.4) configuration: --prefix=/usr/local/ffmpeg --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-filter=delogo --enable-debug --disable-optimizations --enable-libspeex --enable-videotoolbox --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --cc=clang --host-cflags= --host-ldflags= libavutil 56. 35.101 / 56. 35.101 libavcodec 58. 60.100 / 58. 60.100 libavformat 58. 33.100 / 58. 33.100 libavdevice 58. 9.100 / 58. 9.100 libavfilter 7. 66.100 / 7. 66.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 Hyper fast Audio and Video encoder 安装的插件: faac openssl@1.1 x264 faad2 pcre x265 fdk-aac pkg-config xvid lame rtmp-nginx-module yasm libogg sdl2 nginx-full speex Clang版本: Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.2.0 Thread model: posix
2019-11-13
共1条回复

经典再升级-FFmpeg5.0核心技术精讲,打造音视频播放器

学好FFmpeg核心技术,做高效,高薪,有竞争力的音视频工程师

2726 学习 · 814 问题

查看课程