找不到 libx11 - libx11 和 libX11 是一样的吗?

问题描述

我正在尝试构建一个需要我指定 libx11 安装位置的程序。我没有管理员权限,但我要求负责安装包含 x11 的所有软件包,如 libx11-dev 等。但是,我无法使用 locate 命令找到 libx11 库,只能找到 libX11(注意大小写差异)。它们是一样的吗?如果没有,我怎样才能获得 libx11?我问这个是因为当我指定 libX11 时,我仍然收到错误。库被指定为这样的指针:

LIBNCARG=-L$(NCARG_DIR)/lib  -lX11 -lncarg -lncarg_gks -lncarg_c -L/usr/lib -ldl -lpng -lpthread -lgfortran

错误如下(它们针对不同的功能重复):

/p1-nemo/danilocs/anaconda3/envs/ncl_stable/lib/libncarg_gks.a(pixoutput.o): In function `PIX_FillArea':
pixoutput.c:(.text+0xab0): undefined reference to `XFillpolygon'
pixoutput.c:(.text+0xb09): undefined reference to `XCreatepixmap'
pixoutput.c:(.text+0xb5b): undefined reference to `XSetFunction'
pixoutput.c:(.text+0xb8a): undefined reference to `XFillpolygon'
pixoutput.c:(.text+0xb9e): undefined reference to `XSetFunction'
pixoutput.c:(.text+0xbdd): undefined reference to `XDrawLines'
pixoutput.c:(.text+0xbf5): undefined reference to `XDrawLines'
pixoutput.c:(.text+0xc32): undefined reference to `XDrawLine'
pixoutput.c:(.text+0xc7f): undefined reference to `XDrawLine'
pixoutput.c:(.text+0xcaa): undefined reference to `XDrawLine'
pixoutput.c:(.text+0xcbe): undefined reference to `XSetStipple'
pixoutput.c:(.text+0xcce): undefined reference to `XSetFillStyle'
pixoutput.c:(.text+0xced): undefined reference to `XFillpolygon'
pixoutput.c:(.text+0xcfa): undefined reference to `XSetFillStyle'
pixoutput.c:(.text+0xd09): undefined reference to `XFreepixmap'
pixoutput.c:(.text+0xd4b): undefined reference to `XDrawLine'
pixoutput.c:(.text+0xd79): undefined reference to `XDrawLine'
pixoutput.c:(.text+0xe2c): undefined reference to `XQueryBestStipple'
pixoutput.c:(.text+0xe4b): undefined reference to `XCreateGC'
pixoutput.c:(.text+0xe80): undefined reference to `XFreepixmap'

我事先在这里搜索过,应该在安装过程中指定 -lx11 指针来解决。但是当我将 -lX11 更改为 lx11 时,我收到无法找到 lx11 的错误

非常感谢这里的任何建议。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)