Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
f3506463
Unverified
Commit
f3506463
authored
May 06, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed docs
parent
649d724e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
49 deletions
+3
-49
building.md
docs/building.md
+1
-48
install_packages.sh
scripts/install_packages.sh
+2
-1
No files found.
docs/building.md
View file @
f3506463
# Building SGX wallet from source
### Install Intel SGX SDK
The Intel SGX SDK is required for both Intel SGX hardware platform and Intel SGX simulator mode.
The following instructions download the Intel SGX SDK 2.5 and installs it in
`/opt/intel/sgxsdk/`
:
```
bash
sudo mkdir
-p
/opt/intel
cd
/opt/intel
sudo
wget https://download.01.org/intel-sgx/linux-2.5/rhel7.4-server/sgx_linux_x64_sdk_2.5.100.49891.bin
echo
"yes"
|
sudo
bash ./sgx_linux_x64_sdk_2.5.100.49891.bin
```
This installs the Intel SGX SDK in the recommended location,
`/opt/intel/sgxsdk`
.
The Intel SGX OpenSSL library expects the SDK to be here by default.
After installing, source the Intel SGX SDK activation script to set
`$SGX_SDK`
,
`$PATH`
,
`$PKG_CONFIG_PATH`
, and
`$LD_LIBRARY_PATH`
.
Append this line to your login shell script (
`~/.bashrc`
or similar):
```
bash
source
/opt/intel/sgxsdk/environment
echo
"source /opt/intel/sgxsdk/environment"
>>
~/.bashrc
```
To learn more about Intel SGX read the
[
Intel SGX SDK documentation
](
https://software.intel.com/en-us/sgx-sdk/documentation
)
or visit the
[
Intel SGX homepage
](
https://software.intel.com/en-us/sgx
)
.
Downloads are listed at
[
Intel SGX Downloads for Linux
](
https://01.org/intel-software-guard-extensions/downloads
)
.
<!-- SPDX-License-Identifier: (AGPL-3.0-only OR CC-BY-4.0) -->
This document describes how to build sgxwallet on Ubuntu 18.04.
## Clone this repository and its submodules
`git clone --recurse-submodules https://github.com/skalenetwork/sgxwallet.git`
## Install Prerequisites
```
bash
sudo
apt-get
install
build-essential make cmake gcc g++ yasm python libprotobuf10 flex bison automake libtool texinfo libgcrypt20-dev libgnutls28-dev
```
## Install required debian packages
```
bash
...
...
@@ -80,7 +33,7 @@ Note: to run in simulation mode, add --enable-sgx-simulation flag when you run c
```
bash
./configure
--enable-sgx-simulation
make
```
## Build base Docker container
...
...
scripts/install_packages.sh
View file @
f3506463
#!/bin/bash
sudo
dpkg
-i
*
.deb
sudo
apt
install
ccache cmake flex bison yasm ccache autoconf texinfo libgcrypt20-dev libgnutls28-dev libtool pkg-config
sudo
apt
install
-y
build-essential make gcc g++ yasm python libprotobuf10 flex bison automake
sudo
apt
install
-y
ccache cmake ccache autoconf texinfo libgcrypt20-dev libgnutls28-dev libtool pkg-config
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment