llvm-gcc-4.2: error

本文详细探讨了使用LLVM和GCC 4.2时遇到的常见错误,并提供了有效的解决方案。通过深入分析编译过程中的细节,作者分享了避免和修复错误的技巧,帮助开发者提高代码质量,提升开发效率。
http://stackoverflow.com/questions/6293298/llvm-gcc-4-2-error
这是推流成功的展示信息:2025-10-20 13:51:12.440 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : ffmpeg version 6.0-essentials_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers 2025-10-20 13:51:12.441 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : built with gcc 12.2.0 (Rev10, Built by MSYS2 project) 2025-10-20 13:51:12.441 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband 2025-10-20 13:51:12.441 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : libavutil 58. 2.100 / 58. 2.100 2025-10-20 13:51:12.441 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : libavcodec 60. 3.100 / 60. 3.100 2025-10-20 13:51:12.441 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : libavformat 60. 3.100 / 60. 3.100 2025-10-20 13:51:12.441 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : libavdevice 60. 1.100 / 60. 1.100 2025-10-20 13:51:12.441 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : libavfilter 9. 3.100 / 9. 3.100 2025-10-20 13:51:12.441 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : libswscale 7. 1.100 / 7. 1.100 2025-10-20 13:51:12.441 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : libswresample 4. 10.100 / 4. 10.100 2025-10-20 13:51:12.441 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : libpostproc 57. 1.100 / 57. 1.100 2025-10-20 13:51:12.730 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [hevc @ 000001f4600c3e40] PPS id out of range: 0 2025-10-20 13:51:12.730 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Last message repeated 1 times 2025-10-20 13:51:12.730 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [hevc @ 000001f4600c3e40] Error parsing NAL unit #0. 2025-10-20 13:51:12.730 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [rtsp @ 000001f4600bc700] Stream #0: not enough frames to estimate rate; consider increasing probesize 2025-10-20 13:51:12.730 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [rtsp @ 000001f4600bc700] Could not find codec parameters for stream 0 (Video: hevc, none): unspecified size 2025-10-20 13:51:12.730 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Consider increasing the value for the 'analyzeduration' (100000) and 'probesize' (32) options 2025-10-20 13:51:12.730 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Input #0, rtsp, from 'rtsp://admin:sess2025@109.136.71.182:554/streaming/channels/501': 2025-10-20 13:51:12.730 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Metadata: 2025-10-20 13:51:12.730 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : title : HIK Media Server V4.83.014 2025-10-20 13:51:12.730 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : comment : HIK Media Server Session Description : standard 2025-10-20 13:51:12.730 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Duration: N/A, bitrate: 64 kb/s 2025-10-20 13:51:12.730 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Stream #0:0: Video: hevc, none, 90k tbr, 90k tbn 2025-10-20 13:51:12.730 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s 2025-10-20 13:51:12.745 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Stream mapping: 2025-10-20 13:51:12.745 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264)) 2025-10-20 13:51:12.745 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Press [q] to stop, [?] for help 2025-10-20 13:51:12.799 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [swscaler @ 000001f4606b7ac0] deprecated pixel format used, make sure you did set range correctly 2025-10-20 13:51:12.865 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Last message repeated 2 times 2025-10-20 13:51:12.865 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [swscaler @ 000001f461bbffc0] deprecated pixel format used, make sure you did set range correctly 2025-10-20 13:51:12.887 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 2025-10-20 13:51:12.900 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] profile High, level 3.1, 4:2:0, 8-bit 2025-10-20 13:51:12.901 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] 264 - core 164 r3106 eaa68fa - H.264/MPEG-4 AVC codec - Copyleft 2003-2023 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=11 lookahead_threads=11 sliced_threads=1 slices=11 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=30 keyint_min=16 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 2025-10-20 13:51:12.901 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Output #0, flv, to 'rtmp://109.136.146.133:1935/live/channel109.136.71.1825real': 2025-10-20 13:51:12.901 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Metadata: 2025-10-20 13:51:12.901 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : title : HIK Media Server V4.83.014 2025-10-20 13:51:12.901 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : comment : HIK Media Server Session Description : standard 2025-10-20 13:51:12.901 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : encoder : Lavf60.3.100 2025-10-20 13:51:12.901 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuvj420p(pc, progressive), 1280x720, q=2-31, 30 fps, 1k tbn 2025-10-20 13:51:12.901 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Metadata: 2025-10-20 13:51:12.901 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : encoder : Lavc60.3.100 libx264 2025-10-20 13:51:12.901 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : Side data: 2025-10-20 13:51:12.901 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A 2025-10-20 13:51:12.918 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : frame= 5 fps=0.0 q=17.0 size= 132kB time=00:00:00.16 bitrate=6493.6kbits/s dup=5 drop=0 speed=87.6x 2025-10-20 13:51:13.447 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : frame= 23 fps=0.0 q=20.0 size= 466kB time=00:00:00.76 bitrate=4980.8kbits/s dup=17 drop=0 speed=1.49x 2025-10-20 13:51:13.774 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : frame= 36 fps= 35 q=22.0 size= 787kB time=00:00:01.16 bitrate=5527.1kbits/s dup=25 drop=0 speed=1.13x 2025-10-20 13:51:14.276 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : frame= 51 fps= 33 q=22.0 size= 1071kB time=00:00:01.66 bitrate=5264.8kbits/s dup=35 drop=0 speed=1.09x 2025-10-20 13:51:14.650 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : 2025-10-20 13:51:14.650 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : 2025-10-20 13:51:14.650 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [q] command received. Exiting. 2025-10-20 13:51:14.650 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : 2025-10-20 13:51:14.651 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [flv @ 000001f460296500] Failed to update header with correct duration. 2025-10-20 13:51:14.651 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [flv @ 000001f460296500] Failed to update header with correct filesize. 2025-10-20 13:51:14.651 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : frame= 60 fps= 31 q=24.0 Lsize= 1264kB time=00:00:01.96 bitrate=5265.4kbits/s dup=41 drop=0 speed=1.03x 2025-10-20 13:51:14.651 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : video:1262kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.169524% 2025-10-20 13:51:14.654 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] frame I:2 Avg QP:21.62 size:137757 2025-10-20 13:51:14.654 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] frame P:58 Avg QP:24.24 size: 17523 2025-10-20 13:51:14.654 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] mb I I16..4: 3.9% 13.3% 82.8% 2025-10-20 13:51:14.654 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] mb P I16..4: 2.4% 7.5% 4.9% P16..4: 36.6% 4.8% 2.2% 0.0% 0.0% skip:41.7% 2025-10-20 13:51:14.654 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] 8x8 transform intra:43.7% inter:28.7% 2025-10-20 13:51:14.654 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] coded y,uvDC,uvAC intra: 74.1% 59.7% 30.2% inter: 19.2% 18.2% 2.3% 2025-10-20 13:51:14.654 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] i16 v,h,dc,p: 32% 25% 29% 14% 2025-10-20 13:51:14.654 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 24% 19% 4% 4% 5% 5% 6% 6% 2025-10-20 13:51:14.654 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 21% 15% 5% 5% 6% 6% 7% 5% 2025-10-20 13:51:14.654 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] i8c dc,h,v,p: 65% 16% 16% 3% 2025-10-20 13:51:14.654 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] Weighted P-Frames: Y:3.4% UV:3.4% 2025-10-20 13:51:14.654 ERROR 5340 --- [ Thread-104] c.e.demo.controller.VideoTestController  : [libx264 @ 000001f460298500] kb/s:5167.30 2025-10-20 13:51:15.246  INFO 5340 --- [ Thread-102] c.e.demo.controller.VideoTestController  : 进程 109.136.71.1825real 已退出,状态码: 0。这是推流失败时的展示信息:2025-10-20 13:51:15.850 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : ffmpeg version 6.0-essentials_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers 2025-10-20 13:51:15.850 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : built with gcc 12.2.0 (Rev10, Built by MSYS2 project) 2025-10-20 13:51:15.850 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband 2025-10-20 13:51:15.850 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : libavutil 58. 2.100 / 58. 2.100 2025-10-20 13:51:15.850 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : libavcodec 60. 3.100 / 60. 3.100 2025-10-20 13:51:15.850 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : libavformat 60. 3.100 / 60. 3.100 2025-10-20 13:51:15.850 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : libavdevice 60. 1.100 / 60. 1.100 2025-10-20 13:51:15.850 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : libavfilter 9. 3.100 / 9. 3.100 2025-10-20 13:51:15.850 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : libswscale 7. 1.100 / 7. 1.100 2025-10-20 13:51:15.850 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : libswresample 4. 10.100 / 4. 10.100 2025-10-20 13:51:15.850 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : libpostproc 57. 1.100 / 57. 1.100 2025-10-20 13:51:16.041 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : [rtsp @ 0000022faae5c700] Stream #0: not enough frames to estimate rate; consider increasing probesize 2025-10-20 13:51:16.041 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : [rtsp @ 0000022faae5c700] Could not find codec parameters for stream 0 (Video: hevc, none): unspecified size 2025-10-20 13:51:16.041 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : Consider increasing the value for the 'analyzeduration' (100000) and 'probesize' (32) options 2025-10-20 13:51:16.041 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : Input #0, rtsp, from 'rtsp://admin:sess2025@109.136.71.182:554/streaming/channels/601': 2025-10-20 13:51:16.041 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : Metadata: 2025-10-20 13:51:16.041 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : title : HIK Media Server V4.83.014 2025-10-20 13:51:16.041 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : comment : HIK Media Server Session Description : standard 2025-10-20 13:51:16.041 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : Duration: N/A, start: 0.000000, bitrate: 64 kb/s 2025-10-20 13:51:16.041 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : Stream #0:0: Video: hevc, none, 90k tbr, 90k tbn 2025-10-20 13:51:16.041 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s 2025-10-20 13:51:16.042 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : Output #0, flv, to 'rtmp://109.136.146.133:1935/live/channel109.136.71.1826real': 2025-10-20 13:51:16.042 ERROR 5340 --- [ Thread-107] c.e.demo.controller.VideoTestController  : [out#0/flv @ 0000022fab034100] Output file does not contain any stream 2025-10-20 13:51:16.793  INFO 5340 --- [ Thread-105] c.e.demo.controller.VideoTestController  : 进程 109.136.71.1826real 已退出,状态码: 1,帮我分析一下为什么会推流失败
最新发布
10-21
在 Linux 系统中升级 LLVM 以满足项目对最低版本 10 的要求,可以通过以下几种方式实现: ### 通过系统包管理器安装 LLVM 10 或更高版本 某些 Linux 发行版(如 CentOS、RHEL 或 Ubuntu)提供了预编译的 LLVM 包。以 Ubuntu 20.04 为例,可以使用以下命令安装 LLVM 10 及其开发库: ```bash sudo apt-get update sudo apt-get install -y llvm-10 llvm-10-dev ``` 安装完成后,可以通过以下命令验证 `llvm-config` 是否已正确安装并指向所需版本: ```bash llvm-config --version ``` 如果系统中存在多个版本,可以使用 `update-alternatives` 命令切换默认版本: ```bash sudo update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-10 110 sudo update-alternatives --config llvm-config ``` 选择对应 LLVM 10 的条目即可完成切换[^1]。 ### 从源码编译安装 LLVM 10 或更高版本 若系统包管理器未提供所需版本的 LLVM,可从 LLVM 官方源码进行编译安装。以下是基于 LLVM 10 的编译步骤: 1. 下载 LLVM 10 源码: ```bash wget https://github.com/llvm/llvm-project/archive/llvmorg-10.0.0.tar.gz tar -xzf llvmorg-10.0.0.tar.gz cd llvm-project-llvmorg-10.0.0 ``` 2. 创建构建目录并进入: ```bash mkdir build && cd build ``` 3. 使用 CMake 配置构建选项: ```bash cmake -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_LLVM_DYLIB=ON -DCMAKE_INSTALL_PREFIX=/usr/local ../llvm ``` 4. 编译并安装: ```bash make -j$(nproc) sudo make install ``` 安装完成后,确保 `/usr/local/bin` 在 `PATH` 环境变量中,并设置 `LLVM_CONFIG` 指向新安装的 `llvm-config`: ```bash export PATH=/usr/local/bin:$PATH export LLVM_CONFIG=/usr/local/bin/llvm-config ``` ### 验证安装 安装完成后,执行以下命令确认 LLVM 版本是否符合要求: ```bash llvm-config --version ``` 输出应为 `10.0.0` 或更高版本。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值