问题
I was looking at the list of naclports for ported libraries and I want to use openssl for my native client extention. I can't find a proper instruction set to install these ported libraries, I downloaded the openssl compressed file and followed the instructions given in INSTALL file but that encountered some errors which I can't resolve.
回答1:
To install a library ported to Native Client as part of naclports you'll need to:
Download and install the NaCl SDK: https://developer.chrome.com/native-client/sdk/download
Set
NACL_SDK_ROOTin your environment to point at thepepper_*version under the location you install it at.You may want to explicitly install the very latest version:
pepper_canary, with:./naclsdk install pepper_canarySync the
naclportsrepository: Checkout guideCheck out a branch that matches you SDK, or master for
pepper_canaryTo build
openssl, do something like this:./bin/naclports --force --from-source install opensslIf you have no local modifications you can drop the
--forceand--from-sourceflagsThis will build the
newlibNaCl version by default.You can set
TOOLCHAINin the environment to:glibc/pnacl/newlibto select an explicit version.
The library will then be installed into your SDK.
来源:https://stackoverflow.com/questions/29148430/how-to-use-a-library-ported-for-native-clientnacl