Skip to content

无法运行成功 #2

@ruiming46zrm

Description

@ruiming46zrm

[ 95%] Building C object CMakeFiles/main.dir/custom_layers/slicing.c.obj
[ 95%] Building C object CMakeFiles/main.dir/custom_layers/decoding.c.obj
[ 96%] Building C object CMakeFiles/main.dir/custom_layers/postprocessing.c.obj
[ 96%] Building C object CMakeFiles/main.dir/custom_layers/draw.c.obj
[ 97%] Building C object CMakeFiles/main.dir/custom_layers/jpeg_compress.c.obj
[ 98%] Building C object CMakeFiles/main.dir/custom_layers/img_flush.c.obj
[ 98%] Building C object CMakeFiles/main.dir/custom_layers/camera.c.obj
[100%] Building C object CMakeFiles/main.dir/spi_comm.c.obj
[100%] Linking C executable main
CMakeFiles/main.dir/main_demo.c.obj: In function test_main': main_demo.c:(.text.test_main+0x106): undefined reference to pi_uart_conf_init'
main_demo.c:(.text.test_main+0x134): undefined reference to pi_uart_open' main_demo.c:(.text.test_main+0x498): undefined reference to pi_uart_write'
main_demo.c:(.text.test_main+0x4a6): undefined reference to pi_uart_write' main_demo.c:(.text.test_main+0x4b8): undefined reference to pi_uart_write'
main_demo.c:(.text.test_main+0x4e0): undefined reference to pi_uart_write' main_demo.c:(.text.test_main+0x5a6): undefined reference to pi_uart_write'
CMakeFiles/main.dir/main_demo.c.obj:main_demo.c:(.text.test_main+0x5b4): more undefined references to `pi_uart_write' follow
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/main.dir/build.make:943: main] Error 1
make[1]: *** [CMakeFiles/Makefile2:732: CMakeFiles/main.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

我试过:
rm -rf build
cmake -B build -DMODE=INFERENCE
cd build
make clean all run platform=gvsoc
也试过:
cmake -B build -DMODE=INFERENCE
cmake --build build -t run
都会有上述问题? 请问怎么解决?
mnist的example可以运行。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions