Linux Cant find dynamically linked applications

后端 未结 3 692
眼角桃花
眼角桃花 2021-01-15 03:32

I have an embedded system running Linux Kernel 3.10 and Busybox.

If I cross compile (toolchain build by buildroot so its using uclibc) a program without the -static

3条回答
  •  情话喂你
    2021-01-15 03:55

    The solution to this problem is to copy the uClibc libraries into the target file system that can be done bu following these steps:

    1.The uClibc libraries are present in the folder "buildroot/output/target/lib/". 2.We have to copy all the files from this folder into the "/lib" folder of target filesystem. 3.The copy thing can be done by "scp" command. sudo scp -r PATH_TO_BUILDROOT/output/target/lib/* TARGET_USERNAME@TARGET_IP:/lib

    After doing this all applications will run properly.

提交回复
热议问题