I downloaded the IPCF(IPCF4.3.0) source code from github and compiled it in BSP30 until the last step prompted that printk was not found,I searched in the source code and did not find any relevant definitions.
nu/bin/ld: /home/nevc/Desktop/bsp29/ipc-shm-us/sample/../libipc-shm.a(ipc-shm.o):/home/nevc/Desktop/bsp29/ipc-shm-us/common/ipc-shm.c:398: more undefined references to `printk' follow
collect2: error: ld returned 1 exit status
Makefile:46: recipe for target 'ipc-shm-sample.elf' failed
make: *** [ipc-shm-sample.elf] Error 1
make: Leaving directory '/home/nevc/Desktop/bsp29/ipc-shm-us/sample'
nevc@lenovo-ThinkPad-T490:~/Desktop/bsp2
解決済! 解決策の投稿を見る。
printk() is a function visible inside the kernel. If a userspace application build
complains about missing printk(), it most likely means you are trying to
build a kernel code as a userspace code.
If you are building the Linux portion of IPCF by hand, you have to follow the
instructions given in Section 6.2.3 strictly. In particular:
or, alternatively, let Yocto build it for you. The same User Manual section offers
instructions for Yocto which require fewer steps.
Hope this helps,
Platon
printk() is a function visible inside the kernel. If a userspace application build
complains about missing printk(), it most likely means you are trying to
build a kernel code as a userspace code.
If you are building the Linux portion of IPCF by hand, you have to follow the
instructions given in Section 6.2.3 strictly. In particular:
or, alternatively, let Yocto build it for you. The same User Manual section offers
instructions for Yocto which require fewer steps.
Hope this helps,
Platon