-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build or install tpm2-tools into customized /opt/xxx directory #402
Comments
The correct directory should be set with The only bash env I can use is TCTI_TABRMD_xxxx Set Here is the ugly solution I've got today:
|
@Prefix@/lib/pkgconfig/*.pc doesn't work because Cflags are pointing to the sub-directories The correct directory should be @includedir@ (instead of @includedir@/tcit/ or @includedir@/sapi/) I have post a related issue for tpm2-tools, see: "Cannot build or install tpm2-tools into customized /opt/xxx directory" tpm2-software/tpm2-tools#402 Signed-off-by: Liu Qun (liuqun) <qunliu@zyhx-group.com>
…stomized directory, e.g. /opt/xxx lib/pkgconfig/*.pc doesn't work because 1. "Cflags" are pointing to the sub-directories. The correct directory should be @includedir@ (instead of @includedir@/tcit/ or @includedir@/sapi/) 2. "Libs" should provide a gcc link option "-L@libdir@", in case to install libsapi.a into a customized directory See: "Cannot build or install tpm2-tools into customized /opt/xxx directory" tpm2-software/tpm2-tools#402 Signed-off-by: Liu Qun (liuqun) <qunliu@zyhx-group.com>
…stomized directory, e.g. /opt/xxx lib/pkgconfig/*.pc doesn't work because 1. "Cflags" are pointing to the sub-directories. The correct directory should be @includedir@ (instead of @includedir@/tcit/ or @includedir@/sapi/) 2. "Libs" should provide a gcc link option "-L@libdir@", in case to install libsapi.a into a customized directory See: "Cannot build or install tpm2-tools into customized /opt/xxx directory" tpm2-software/tpm2-tools#402 Signed-off-by: Liu Qun (liuqun) <qunliu@zyhx-group.com>
Configure.ac was correctly checking the sapi library via PKG_CHECK_MODULES and thus setting SAPI_CFLAGS with the include path. However, this was never being propagated to AM_CFLAGS. The end result is that custom install locations wouldn't work without hacking on CFLAGS, as it couldn't find the sapi headers. Correct this by passing SAPI_CFLAGS to AM_CFLAGS. Fixes: tpm2-software#402 Signed-off-by: William Roberts <william.c.roberts@intel.com>
I download these source tarballs:
First, configure and build TSS with
./configure --prefix=/opt/xxx --disable-shared
Everything is ok.
Then build tpm2-tools with same --prefix here:
Then
make
will report us an error:can not find <tcti/tcti_device.h>
By the way, since I do not want to install tabrmd for some reasons, I have to set
--with-tcti-tabrmd=no
to disable it.The text was updated successfully, but these errors were encountered: