badvpn
badvpn copied to clipboard
Could NOT find NSPR?
hi.
yudeMacBook-Air:badvpn brite$ cmake . -- The C compiler identification is AppleClang 8.1.0.8020042 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.29.2") -- Checking for module 'openssl' -- Found openssl, version 1.0.2s -- Found OpenSSL: /usr/local/Cellar/openssl/1.0.2s/include /usr/local/Cellar/openssl/1.0.2s/lib ssl;crypto -- Checking for module 'nspr' -- No package 'nspr' found CMake Error at cmake/modules/FindNSPR.cmake:53 (message): Could NOT find NSPR Call Stack (most recent call first): CMakeLists.txt:73 (find_package)
-- Configuring incomplete, errors occurred! See also "/Users/brite/badvpn/CMakeFiles/CMakeOutput.log". yudeMacBook-Air:badvpn brite$
i ran "brew install nspr",then as above,i ran "make",still encounter the same error. how to fix it?
As far as the actual error is concerned, I don't know why it doesn't pick up the library, but if you only need tun2socks, you don't need NSPR, and you can avoid that error by adding this to cmake: -DBUILD_NOTHING_BY_DEFAULT=1 -DBUILD_TUN2SOCKS=1
. However, MacOS is not supported, and won't be until someone contributes support (there should be forks with MacOS support lying around though). So even if you solve that error, it won't work.
Even with those flags I'm unable to compile on debian 9 x64.
@alphaomega42 install libnspr4-dev
libnss3-dev