Skip to content

Commit

Permalink
Script for compilation os Inkscape+SAGE on RHEL9 updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
riclolsen committed Jun 4, 2024
1 parent e956643 commit 71a872a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
8 changes: 6 additions & 2 deletions platform-rhel9/inkscape-plus-sage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ sudo -u $JS_USERNAME sh -c 'git clone --recurse-submodules https://gitlab.com/ri
cd inkscape-rebased
sudo -u $JS_USERNAME sh -c 'mkdir build'
cd build
#sudo -u $JS_USERNAME sh -c 'cmake -DENABLE_POPPLER_CAIRO=OFF -DCMAKE_CXX_STANDARD=20 ..'

# to compile on Windows with msys2, use -DCMAKE_CXX_STANDARD=20
# to compile on Linux, use -DCMAKE_CXX_STANDARD=17

#sudo -u $JS_USERNAME sh -c 'cmake -DENABLE_POPPLER_CAIRO=OFF -DCMAKE_CXX_STANDARD=17 ..'
#sudo -u $JS_USERNAME sh -c 'make'
#sudo make install
sudo -u $JS_USERNAME sh -c 'cmake -G Ninja -DENABLE_POPPLER_CAIRO=OFF -DCMAKE_CXX_STANDARD=20 ..'
sudo -u $JS_USERNAME sh -c 'cmake -G Ninja -DENABLE_POPPLER_CAIRO=OFF -DCMAKE_CXX_STANDARD=17 ..'
sudo -u $JS_USERNAME sh -c 'ninja -j4'
sudo ninja install
13 changes: 0 additions & 13 deletions platform-rhel9/json-scada-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,19 +177,6 @@ sleep 10
sudo supervisorctl status
# sudo -u $JS_USERNAME sh -c 'firefox http://localhost &'

# to compile inkscape
# cd /home/jsonscada
# sudo -u $JS_USERNAME sh -c 'git clone --recurse-submodules https://gitlab.com/ricardolo/inkscape-rebased.git'
# cd inkscape-rebased
# sudo -u $JS_USERNAME sh -c 'mkdir build'
# cd build
# sudo -u $JS_USERNAME sh -c 'cmake -G Ninja -DENABLE_POPPLER_CAIRO=OFF -DCMAKE_CXX_STANDARD=20 ..'
# sudo -u $JS_USERNAME sh -c 'ninja -j4'
# sudo ninja install
## sudo -u $JS_USERNAME sh -c 'cmake -DENABLE_POPPLER_CAIRO=OFF -DCMAKE_CXX_STANDARD=20 ..'
## sudo -u $JS_USERNAME sh -c 'make'
## sudo make install

echo "To compile and install Inkscape+SAGE, run the following command: sudo sh ./inkscape-plus-sage.sh"
echo "To open web interface run: firefox http://localhost"
echo "Default credentials: admin / jsonscada"
Expand Down

0 comments on commit 71a872a

Please sign in to comment.