Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法运行成功 #2

Open
ruiming46zrm opened this issue Jan 19, 2024 · 10 comments
Open

无法运行成功 #2

ruiming46zrm opened this issue Jan 19, 2024 · 10 comments

Comments

@ruiming46zrm
Copy link

ruiming46zrm commented Jan 19, 2024

[ 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可以运行。

@HeleMartin
Copy link

Hey,
I have the same issue. How can I solve it ?
Thanks

@Yaooooo
Copy link
Member

Yaooooo commented Jul 22, 2024 via email

@HeleMartin
Copy link

it works thanks

@gwgknudayanga
Copy link

@Yaooooo when i am running the code generator i am getting the following undefined error. could you please help?
CNN_BasicKernels_NE16.c:925: undefined reference to `hal_cl_eu_event_mask_wait_and_clear'

Best Rgds,
Uda

@Yaooooo
Copy link
Member

Yaooooo commented Sep 16, 2024 via email

@gwgknudayanga
Copy link

gwgknudayanga commented Sep 16, 2024 via email

@gwgknudayanga
Copy link

gwgknudayanga commented Oct 11, 2024 via email

@Yaooooo
Copy link
Member

Yaooooo commented Oct 14, 2024 via email

@gwgknudayanga
Copy link

gwgknudayanga commented Oct 14, 2024 via email

@gwgknudayanga
Copy link

gwgknudayanga commented Oct 15, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants