Can not find -lXXXX

Description

I had the error message Can not find -lGL when i run qt qmake long ago. The error message shows me that there was a lib not to be found. At that time, I know the GL lib is one of OpenGl libs. because I didn't use any libs of OPenGL, so I just to modify the Makefile. So it well work. But, The error always shown only the qt pro file modified. because the Makefile will be created when pro file modified. Today, I got some libs are not found. I must to find good way to work it out. like below.

Ways

When you get the error message like Can not find -lXXX at you run make the program. You can flow below steps to work it out;

  1. use the linux command locate to find whether install the lib in your linux system;locate libXXX
  2. if not install, you should install them . about how to install them, you can search it from google.
  3. if you install these libs. you just create link file at /usr/lib.like:ln -s /usr/lib/x86_64-linux-gnu/mesa/libXXX.so.1 /usr/lib/libXXX.so
  4. remake to generate Makefile. That all. Good luck!
  5. if you want more information, you can click Reference licks.
Reference

cnblogs
qtcn


转载于:https://www.cnblogs.com/zi-xing/p/7291351.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值