我有一些使用Gentoo的经验,所以我知道CFLAGS的编译器含义,但是当我尝试配置https://github.com/OpenSC/pam_pkcs11时:
# ./bootstrap&&./configure&&make clean&&make&&make install
...
checking for winscard.h... no
configure: error: winscard.h not found, install pcsc-lite, or use PCSC_CFLAGS=... ./configure我确实有pcsc (回购版本):
# dpkg -l pcscd
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-======================================-========================-========================-==================================================================================
ii pcscd 1.8.10-1ubuntu1 amd64 Middleware to access a smart card using PC/SC (daemon side)不过,我不想安装pcsc_lite,因为我在让智能卡阅读器工作上遇到了很多困难,我真的不想再经历一次。所以我才对CFLAGS感兴趣。有什么方法可以让./compile指向pcscd?
发布于 2015-05-19 06:19:35
引自维基百科
CFLAGS是环境变量或Makefile变量的名称,这些变量可以设置为指定在生成计算机软件过程中传递给编译器的附加开关。这些变量通常在Makefile中设置,然后在调用编译器时附加到命令行。如果没有在Makefile中指定它们,则将从环境读取它们(如果存在的话)。
您可以轻松地从存储库安装它,而不是从源代码安装它。
sudo apt-get install libpcsclite-devhttps://askubuntu.com/questions/625376
复制相似问题