Skip to content

librknnmrt.so: error adding symbols: file in wrong format #377

Description

@fanronghua0123456

hi,
all ,我用 rknn.codegen 自動生成代碼,發佈,編譯出現如下錯誤?

ret = rknn.export_rknn(export_path = '../model/export_best_12.rknn')
ret = rknn.codegen(output_path='./rknn_rv1126b_app_demo',overwrite=True)
# 性能评估
#eval_print = rknn.eval_perf(is_print=True)
rknn.release()

編譯前設置了環境變量。

export RKNPU2=/opt/nfsroot/rknn-src/rknn-toolkit2/rknpu2
export ARCH=

link 的時候出現了錯誤。

[100%] Linking CXX executable rknn_app_demo
/usr/lib/gcc-cross/aarch64-linux-gnu/11/../../../../aarch64-linux-gnu/bin/ld: /opt/nfsroot/rknn-src/rknn-toolkit2/rknpu2/runtime/Linux/librknn_api/armhf-uclibc/librknnmrt.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/rknn_app_demo.dir/build.make:146:rknn_app_demo] 错误 1
make[1]: *** [CMakeFiles/Makefile2:83:CMakeFiles/rknn_app_demo.dir/all] 错误 2
make: *** [Makefile:136:all] 错误 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions