File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff 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# ------------------------------------
7271git clone --recursive https://github.com/erossignon/node-occ.git
7372cd node-occ
73+
74+ # download prebuild OpenCascade Library and header files
75+ bash ./prepare_node.sh
76+
77+ #
7478export OCCT_PACKAGE=occt-7.2.0
7579export LD_LIBRARY_PATH=` pwd` /${OCCT_PACKAGE} /lib:$LD_LIBRARY_PATH
7680npm install --build-from-source
81+
82+ # verify that everything is working OK
7783make test
7884```
7985
Original file line number Diff line number Diff line change @@ -16,15 +16,16 @@ echo " OCCT_TARFILE = " ${OCCT_TARFILE}
1616echo " OCCT_TARFILE_URL = " ${OCCT_TARFILE_URL}
1717
1818echo " -------------------------- OCCT TAR FILE ${OCCT_TARFILE} "
19- ls ${OCCT_TARFILE}
2019if [ ! -f " ${OCCT_TARFILE} " ]; then
21- wget -q ${OCCT_TARFILE_URL}
20+ echo " downloading ${OCCT_TARFILE} "
21+ wget --show-progress -q ${OCCT_TARFILE_URL}
2222fi
2323if [ ! -d " ${OCCT_PACKAGE} " ]; then
2424 echo " extracting package ${OCCT_TARFILE} "
2525 tar -xf ${OCCT_TARFILE}
2626fi
2727
28+ ls ${OCCT_TARFILE}
2829export LD_LIBRARY_PATH=` pwd` /${OCCT_PACKAGE} /lib:$LD_LIBRARY_PATH
2930
3031export VERSION_FILE=` pwd` /${OCCT_PACKAGE} /include/opencascade/Standard_Version.hxx
You can’t perform that action at this time.
0 commit comments