IMX53 Quick Start board: /ltib/rootfs/usr/lib/libX11.so.6, not found (try using -rpath or -rpath-link)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX53 Quick Start board: /ltib/rootfs/usr/lib/libX11.so.6, not found (try using -rpath or -rpath-link)

1,446 次查看
Swamy
Contributor III

Hi,

I am getting this error, please suggest.

 

Regards,

Swamy

 

lucid@ubuntu:/home/swamy/Arm_Tomtom/ttviewer$ make ARCH=arm
make -C osal/linux/lib/..
make[1]: Entering directory `/home/swamy/Arm_Tomtom/ttviewer/osal/linux'
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-ar -rsv lib/libosal.a osal_event.o osal_event_out.o osal_video_out.o osal_video_in.o x86_screen.o
r - osal_event.o
r - osal_event_out.o
r - osal_video_out.o
r - osal_video_in.o
r - x86_screen.o
make[1]: Leaving directory `/home/swamy/Arm_Tomtom/ttviewer/osal/linux'
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -Losal/linux/lib -O2 -g -I/home/lucid/ltib/rootfs/usr/include/ viewer.o event.o audio.o video.o  /home/lucid/ltib/rootfs/usr/lib/libX11.so.6 -o viewer -Bdynamic -Bstatic -lpthread -lm -lrt -losal -lasound
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: warning: libxcb.so.1, needed by /home/lucid/ltib/rootfs/usr/lib/libX11.so.6, not found (try using -rpath or -rpath-link)
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_connection_has_error'
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_poll_for_reply'
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_get_maximum_request_length'
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_get_file_descriptor'
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_connect'
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_wait_for_reply'
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_get_setup'
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_wait_for_event'
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_poll_for_event'
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_parse_display'
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_generate_id'
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_disconnect'
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_take_socket'
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_writev'
/home/lucid/ltib/rootfs/usr/lib/libX11.so.6: undefined reference to `xcb_connect_to_display_with_auth_info'
collect2: ld returned 1 exit status
make: *** [viewer] Error 1

标签 (1)
0 项奖励
回复
4 回复数

908 次查看
Swamy
Contributor III

Thanks a lot for the help. It worked.

 

Regards,

Swamy

0 项奖励
回复

908 次查看
hake
NXP Employee
NXP Employee
try attachment
0 项奖励
回复

908 次查看
Swamy
Contributor III

My rootfs is in /home/lucid/ltib/rootfs

Please see the attached Makefile. Please let me know where to add.

 

Thanks,

Swamy

0 项奖励
回复

908 次查看
hake
NXP Employee
NXP Employee

your build flags is not correct. where is your target rootfs? also you need add below to your LDFLAGS of your Makefile

-L$(ROOTFS)/usr/lib -Xlinker -rpath-link=$(ROOTFS)/usr/lib 

0 项奖励
回复