Skip to content

Commit abb1f1e

Browse files
committed
fix README.md
1 parent 5b8fb5e commit abb1f1e

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,10 @@ $npm install node-occ
5353

5454
## building node-occ from source : prerequisites
5555

56-
### on Linux
5756

58-
#### on ubuntu
57+
#### on (linux Ubuntu
5958

60-
(use nodejs 12.0)
59+
(use nodejs 12 or 14)
6160

6261
```bash
6362
# installing nodejs and gyp utility to build extensions
@@ -71,9 +70,16 @@ sudo apt-get install cmake cmake-curses-gui g++ build-essential libtbb2
7170
# ------------------------------------
7271
git clone --recursive https://github.com/erossignon/node-occ.git
7372
cd node-occ
73+
74+
# download prebuild OpenCascade Library and header files
75+
bash ./prepare_node.sh
76+
77+
#
7478
export OCCT_PACKAGE=occt-7.2.0
7579
export LD_LIBRARY_PATH=`pwd`/${OCCT_PACKAGE}/lib:$LD_LIBRARY_PATH
7680
npm install --build-from-source
81+
82+
# verify that everything is working OK
7783
make test
7884
```
7985

prepare_node.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ echo " OCCT_TARFILE = " ${OCCT_TARFILE}
1616
echo " OCCT_TARFILE_URL = " ${OCCT_TARFILE_URL}
1717

1818
echo "-------------------------- OCCT TAR FILE ${OCCT_TARFILE}"
19-
ls ${OCCT_TARFILE}
2019
if [ ! -f "${OCCT_TARFILE}" ]; then
21-
wget -q ${OCCT_TARFILE_URL}
20+
echo "downloading ${OCCT_TARFILE}"
21+
wget --show-progress -q ${OCCT_TARFILE_URL}
2222
fi
2323
if [ ! -d "${OCCT_PACKAGE}" ]; then
2424
echo "extracting package ${OCCT_TARFILE}"
2525
tar -xf ${OCCT_TARFILE}
2626
fi
2727

28+
ls ${OCCT_TARFILE}
2829
export LD_LIBRARY_PATH=`pwd`/${OCCT_PACKAGE}/lib:$LD_LIBRARY_PATH
2930

3031
export VERSION_FILE=`pwd`/${OCCT_PACKAGE}/include/opencascade/Standard_Version.hxx

0 commit comments

Comments
 (0)