w_4419 2024-02-23 16:05 采纳率: 83.3%
浏览 2
已结题

x265执行编译 在 ssd-a.s文件中出错

代码块中是所有报错信息

make
[  1%] Building CXX object encoder/CMakeFiles/encoder.dir/analysis.cpp.o
In file included from D:/msys64/home/KW-5600G/x265_text/source/encoder/analysis.cpp:33:
In file included from D:/msys64/home/KW-5600G/x265_text/source/encoder/analysis.h:30:
In file included from D:/msys64/home/KW-5600G/x265_text/source/common/predict.h:30:
In file included from D:/msys64/home/KW-5600G/x265_text/source/common/quant.h:29:
D:/msys64/home/KW-5600G/x265_text/source/common/scalinglist.h:36:12: warning: declaration shadows a
      variable in namespace 'x265' [-Wshadow]
    enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32
           ^
D:/msys64/home/KW-5600G/x265_text/source/common/cudata.h:51:5: note: previous declaration is here
    NUM_SIZES
    ^
1 warning generated.
[  2%] Building CXX object encoder/CMakeFiles/encoder.dir/search.cpp.o
In file included from D:/msys64/home/KW-5600G/x265_text/source/encoder/search.cpp:30:
In file included from D:/msys64/home/KW-5600G/x265_text/source/encoder/search.h:29:
In file included from D:/msys64/home/KW-5600G/x265_text/source/common/predict.h:30:
In file included from D:/msys64/home/KW-5600G/x265_text/source/common/quant.h:29:
D:/msys64/home/KW-5600G/x265_text/source/common/scalinglist.h:36:12: warning: declaration shadows a
      variable in namespace 'x265' [-Wshadow]
    enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32
           ^
D:/msys64/home/KW-5600G/x265_text/source/common/cudata.h:51:5: note: previous declaration is here
    NUM_SIZES
    ^
D:/msys64/home/KW-5600G/x265_text/source/encoder/search.cpp:271:14: warning: variable 'tuDepthC' set
      but not used [-Wunused-but-set-variable]
    uint32_t tuDepthC = tuDepth;
             ^
D:/msys64/home/KW-5600G/x265_text/source/encoder/search.cpp:3905:14: warning: variable 'tuDepthC'
      set but not used [-Wunused-but-set-variable]
    uint32_t tuDepthC = tuDepth;
             ^
3 warnings generated.
[  3%] Building CXX object encoder/CMakeFiles/encoder.dir/bitcost.cpp.o
[  4%] Building CXX object encoder/CMakeFiles/encoder.dir/motion.cpp.o
[  5%] Building CXX object encoder/CMakeFiles/encoder.dir/slicetype.cpp.o
D:/msys64/home/KW-5600G/x265_text/source/encoder/slicetype.cpp:1457:14: warning: variable 'blockXY'
      set but not used [-Wunused-but-set-variable]
    uint64_t blockXY = 0;
             ^
1 warning generated.
[  6%] Building CXX object encoder/CMakeFiles/encoder.dir/frameencoder.cpp.o
In file included from D:/msys64/home/KW-5600G/x265_text/source/encoder/frameencoder.cpp:32:
In file included from D:/msys64/home/KW-5600G/x265_text/source/encoder/encoder.h:30:
D:/msys64/home/KW-5600G/x265_text/source/common/scalinglist.h:36:12: warning: declaration shadows a
      variable in namespace 'x265' [-Wshadow]
    enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32
           ^
D:/msys64/home/KW-5600G/x265_text/source/common/cudata.h:51:5: note: previous declaration is here
    NUM_SIZES
    ^
1 warning generated.
[  7%] Building CXX object encoder/CMakeFiles/encoder.dir/framefilter.cpp.o
In file included from D:/msys64/home/KW-5600G/x265_text/source/encoder/framefilter.cpp:28:
In file included from D:/msys64/home/KW-5600G/x265_text/source/encoder/encoder.h:30:
D:/msys64/home/KW-5600G/x265_text/source/common/scalinglist.h:36:12: warning: declaration shadows a
      variable in namespace 'x265' [-Wshadow]
    enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32
           ^
D:/msys64/home/KW-5600G/x265_text/source/common/cudata.h:51:5: note: previous declaration is here
    NUM_SIZES
    ^
1 warning generated.
[  8%] Building CXX object encoder/CMakeFiles/encoder.dir/level.cpp.o
[  9%] Building CXX object encoder/CMakeFiles/encoder.dir/nal.cpp.o
[ 10%] Building CXX object encoder/CMakeFiles/encoder.dir/sei.cpp.o
[ 11%] Building CXX object encoder/CMakeFiles/encoder.dir/sao.cpp.o
D:/msys64/home/KW-5600G/x265_text/source/encoder/sao.cpp:742:18: warning: variable 'fenc' set but
      not used [-Wunused-but-set-variable]
    const pixel* fenc;
                 ^
1 warning generated.
[ 12%] Building CXX object encoder/CMakeFiles/encoder.dir/entropy.cpp.o
In file included from D:/msys64/home/KW-5600G/x265_text/source/encoder/entropy.cpp:27:
D:/msys64/home/KW-5600G/x265_text/source/common/scalinglist.h:36:12: warning: declaration shadows a
      variable in namespace 'x265' [-Wshadow]
    enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32
           ^
D:/msys64/home/KW-5600G/x265_text/source/common/cudata.h:51:5: note: previous declaration is here
    NUM_SIZES
    ^
D:/msys64/home/KW-5600G/x265_text/source/encoder/entropy.cpp:1364:21: warning: variable
      'totalSignalledWeightFlags' set but not used [-Wunused-but-set-variable]
    uint32_t        totalSignalledWeightFlags = 0;
                    ^
2 warnings generated.
[ 13%] Building CXX object encoder/CMakeFiles/encoder.dir/dpb.cpp.o
[ 14%] Building CXX object encoder/CMakeFiles/encoder.dir/ratecontrol.cpp.o
In file included from D:/msys64/home/KW-5600G/x265_text/source/encoder/ratecontrol.cpp:36:
In file included from D:/msys64/home/KW-5600G/x265_text/source/encoder/encoder.h:30:
D:/msys64/home/KW-5600G/x265_text/source/common/scalinglist.h:36:12: warning: declaration shadows a
      variable in namespace 'x265' [-Wshadow]
    enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32
           ^
D:/msys64/home/KW-5600G/x265_text/source/common/cudata.h:51:5: note: previous declaration is here
    NUM_SIZES
    ^
D:/msys64/home/KW-5600G/x265_text/source/encoder/ratecontrol.cpp:659:24: warning: variable
      'totalQpAq' set but not used [-Wunused-but-set-variable]
                double totalQpAq = 0;
                       ^
D:/msys64/home/KW-5600G/x265_text/source/encoder/ratecontrol.cpp:1103:32: warning: variable
      'allCodedBits' set but not used [-Wunused-but-set-variable]
    uint64_t allConstBits = 0, allCodedBits = 0;
                               ^
D:/msys64/home/KW-5600G/x265_text/source/encoder/ratecontrol.cpp:1220:9: warning: variable
      'iterations' set but not used [-Wunused-but-set-variable]
    int iterations = 0 , adjMin, adjMax;
        ^
4 warnings generated.
[ 15%] Building CXX object encoder/CMakeFiles/encoder.dir/reference.cpp.o
[ 16%] Building CXX object encoder/CMakeFiles/encoder.dir/encoder.cpp.o
In file included from D:/msys64/home/KW-5600G/x265_text/source/encoder/encoder.cpp:36:
In file included from D:/msys64/home/KW-5600G/x265_text/source/encoder/encoder.h:30:
D:/msys64/home/KW-5600G/x265_text/source/common/scalinglist.h:36:12: warning: declaration shadows a
      variable in namespace 'x265' [-Wshadow]
    enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32
           ^
D:/msys64/home/KW-5600G/x265_text/source/common/cudata.h:51:5: note: previous declaration is here
    NUM_SIZES
    ^
1 warning generated.

[ 53%] Building CXX object common/CMakeFiles/common.dir/scalinglist.cpp.o
[ 54%] Building CXX object common/CMakeFiles/common.dir/quant.cpp.o
[ 55%] Building CXX object common/CMakeFiles/common.dir/deblock.cpp.o
[ 56%] Building CXX object common/CMakeFiles/common.dir/scaler.cpp.o
D:/msys64/home/KW-5600G/x265_text/source/common/scaler.cpp:514:9: warning: variable 'dst_stride' set
      but not used [-Wunused-but-set-variable]
    int dst_stride = SCALER_ALIGN(dstW * sizeof(int16_t) + 66, 16);
        ^
1 warning generated.
[ 57%] Building CXX object common/CMakeFiles/common.dir/ringmem.cpp.o
[ 57%] Building CXX object common/CMakeFiles/common.dir/temporalfilter.cpp.o
In file included from D:/msys64/home/KW-5600G/x265_text/source/common/temporalfilter.cpp:30:
In file included from D:/msys64/home/KW-5600G/x265_text/source/encoder/analysis.h:30:
In file included from D:/msys64/home/KW-5600G/x265_text/source/common/predict.h:30:
In file included from D:/msys64/home/KW-5600G/x265_text/source/common/quant.h:29:
D:/msys64/home/KW-5600G/x265_text/source/common/scalinglist.h:36:12: warning: declaration shadows a
      variable in namespace 'x265' [-Wshadow]
    enum { NUM_SIZES = 4 };            // 4x4, 8x8, 16x16, 32x32
           ^
D:/msys64/home/KW-5600G/x265_text/source/common/cudata.h:51:5: note: previous declaration is here
    NUM_SIZES
    ^
1 warning generated.
[ 57%] Built target common
[ 58%] Generating ssd-a.S.o
D:/msys64/home/KW-5600G/x265_text/source/common/aarch64/ssd-a.S:38:10: error: unknown token in expre
ssion
    ld1 {v16.s}[0], [x0], x1
         ^
D:/msys64/home/KW-5600G/x265_text/source/common/aarch64/ssd-a.S:39:10: error: unknown token in expre
ssion
    ld1 {v17.s}[0], [x2], x3
         ^
D:/msys64/home/KW-5600G/x265_text/source/common/aarch64/ssd-a.S:40:10: error: unknown token in expre
ssion
    ld1 {v18.s}[0], [x0], x1
         ^
D:/msys64/home/KW-5600G/x265_text/source/common/aarch64/ssd-a.S:41:10: error: unknown token in expre
ssion
    ld1 {v19.s}[0], [x2], x3
         ^
D:/msys64/home/KW-5600G/x265_text/source/common/aarch64/ssd-a.S:42:10: error: unknown token in expre
ssion
    ld1 {v20.s}[0], [x0], x1
         ^
D:/msys64/home/KW-5600G/x265_text/source/common/aarch64/ssd-a.S:43:10: error: unknown token in expre
ssion
    ld1 {v21.s}[0], [x2], x3
         ^
D:/msys64/home/KW-5600G/x265_text/source/common/aarch64/ssd-a.S:44:10: error: unknown token in expre
ssion
    ld1 {v22.s}[0], [x0], x1
         ^
D:/msys64/home/KW-5600G/x265_text/source/common/aarch64/ssd-a.S:45:10: error: unknown token in expre
ssion
    ld1 {v23.s}[0], [x2], x3
         ^


    ^
make[2]: *** [CMakeFiles/x265-static.dir/build.make:126: ssd-a.S.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:124: CMakeFiles/x265-static.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

img

  • 写回答

2条回答 默认 最新

  • CSDN-Ada助手 CSDN-AI 官方账号 2024-02-23 18:14
    关注

    【相关推荐】



    • 这篇博客: 目标检测 SSD论文理解中的 5.边界框的确定(也就是预测框) 部分也许能够解决你的问题, 你可以仔细阅读以下内容或跳转源博客中阅读:

      在Yolo中,每个单元预测多个边界框,但是其都是相对这个单元本身(正方块),但是真实目标的形状是多变的,Yolo需要在训练过程中自适应目标的形状。而SSD借鉴了Faster R-CNN中anchor的理念,每个单元设置尺度或者长宽比不同的先验框,预测的边界框(bounding boxes)是以这些先验框为基准的,在一定程度上减少训练难度。

      SSD的检测值也与Yolo不太一样。对于每个单元的每个先验框,其都输出一套独立的检测值,对应一个边界框,主要分为两个部分。第一部分是各个类别的置信度或者评分,值得注意的是SSD将背景也当做了一个特殊的类别,如果检测目标共有 c 个类别,SSD其实需要预测 c+1 个置信度值,其中第一个置信度指的是不含目标或者属于背景的评分。后面当我们说 c 个类别置信度时,请记住里面包含背景那个特殊的类别,即真实的检测类别只有 c-1 个。在预测过程中,置信度最高的那个类别就是边界框所属的类别,特别地,当第一个置信度值最高时,表示边界框中并不包含目标。第二部分就是边界框的location,包含4个值 (cx, cy, w, h) ,分别表示边界框的中心坐标以及宽高。但是真实预测值其实只是边界框相对于先验框的转换值(paper里面说是offset)。

      先验框位置用 d=(d^{cx}, d^{cy}, d^w, d^h) 表示,其对应边界框是 b=(b^{cx}, b^{cy}, b^w, b^h) ,那么边界框的预测值 l 其实是 b 相对于 d 的转换值:

      l^{cx} = (b^{cx} - d^{cx})/d^w, \space l^{cy} = (b^{cy} - d^{cy})/d^h

      l^{w} = \log(b^{w}/d^w), \space l^{h} = \log(b^{h}/d^h)

      习惯上,我们称上面这个过程为边界框的编码(encode),预测时,你需要反向这个过程,即进行解码(decode),从预测值 l 中得到边界框的真实位置 b

      b^{cx}=d^w l^{cx} + d^{cx}, \space b^{cy}=d^y l^{cy} + d^{cy}

      b^{w}=d^w \exp(l^{w}), \space b^{h}=d^h \exp(l^{h})

      在tensorflow代码中其offset的预测方法是:拿38×38×512这个特征图来说:

      对offset位置预测首先对这个特征图进行3×3的卷积,卷积核的层数是16层,然后得到的就是维度(batch_size,38,38,16)然后再对这个矩阵在最后一维进行展开得到的是(batch_size,38,38,4,4)那么最后一维就是对每个单元的预测offset是(x,y,w,h)。

      类别预测首先对这个特征图进行3×3的卷积,卷积核的层数是4×21层,然后得到的就是维度(batch_size,38,38,84)然后再对这个矩阵在最后一维进行展开得到的是(batch_size,38,38,4,21)。


    如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 4月10日
  • 已采纳回答 4月2日
  • 创建了问题 2月23日

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?