Skip to content
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

'zstd.h' file not found #152

Open
astrovsky01 opened this issue Aug 28, 2020 · 2 comments
Open

'zstd.h' file not found #152

astrovsky01 opened this issue Aug 28, 2020 · 2 comments

Comments

@astrovsky01
Copy link

Every time I try to build 2.0, I get the error
include/plink2_zstfile.h:32:12: fatal error: 'zstd.h' file not found

I installed zstd as was recommended on a previous issue, but still get the same issue whenever I run the build.sh script.

@chrchang
Copy link
Owner

If you can't figure out how to make the zstd.h header visible to your compiler, you can add -DSTATIC_ZSTD to the build flags.

@eyherabh
Copy link
Contributor

@astrovsky01 I had the same problem and resolve it by exporting CPATH with the directory containing zstd.h, namely
export CPATH=$PLINKREPO/zstd/lib
where PLINKREPO contains the path to my local PLINK git repo.
Actually, after that, the compilation complained about missing cblas.h, and then about not being able to link with lapack. To solved that, I installed blas-devel, lapack and lapack-devel, and then exported CPATH as
export CPATH=$PLINKREPO/zstd/lib:/usr/include/cblas.
I'm in Fedora, so the packages and path I mention above may differ in your distribution/OS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants