]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Launch application in SALOME environment on Linux
authorvsv <vsv@coldrex.nnov.opencascade.com>
Mon, 5 May 2014 14:32:58 +0000 (18:32 +0400)
committervsv <vsv@coldrex.nnov.opencascade.com>
Mon, 5 May 2014 14:32:58 +0000 (18:32 +0400)
.gitignore
eclipse_salome.sh [new file with mode: 0755]
linux_env.sh
salome_env.sh [new file with mode: 0644]
salome_run.sh [new file with mode: 0755]

index bffde48c55c42db5c73160a8bac782710acf2feb..25d046ae1b03e0bfce5a2f82638e665e79a0218e 100644 (file)
@@ -24,4 +24,6 @@ resources
 doc/html
 *_log.txt
 start.bat
-*.orig
\ No newline at end of file
+*.orig
+*~
+/.project
diff --git a/eclipse_salome.sh b/eclipse_salome.sh
new file mode 100755 (executable)
index 0000000..103982b
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+source salome_env.sh
+
+mkdir -p ${ROOT_DIR}/build
+cd ${ROOT_DIR}/build
+
+CMAKE_ARGS="-D_ECLIPSE_VERSION=4.3"
+CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Debug"
+CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=ON"
+CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=${ROOT_DIR}/install"
+CMAKE_ARGS="${CMAKE_ARGS} ${SRC_DIR}"
+
+
+cmake -G "Eclipse CDT4 - Unix Makefiles" ${CMAKE_ARGS}
+
+/misc/dn48/newgeom/common/eclipse-4.3.0/eclipse -Dosgi.locking=none &
index 37ae415084ff732fbadaefec7810a6e869fd3078..170f3bf3d0bad083faf6f4411e828079081d79d8 100644 (file)
@@ -1,9 +1,12 @@
 #------ Setting products installation directory ------
 
+if [ "${PDIR}" = "" ] ; then
+    export PDIR=/dn48/newgeom/common/products
+fi
+
 # Find absolute path to ROOT_DIR
 export ROOT_DIR=$(pwd)/..
 export ROOT_DIR=`cd "${ROOT_DIR}";pwd`
-export PDIR=/dn48/newgeom/common/products
 
 #------ Python ------
 export PYTHON_ROOT_DIR=${PDIR}/Python-2.7.3
diff --git a/salome_env.sh b/salome_env.sh
new file mode 100644 (file)
index 0000000..83ce4e2
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+if [ "${INST_ROOT}" = "" ] ; then
+    source /dn47/SALOME/PRODUCTS/7x/opt/CentOS.6.3.64/7.3.0/env_products.sh
+    source /dn47/SALOME/stable/V7_3_0/start.sh
+else
+    source ${INST_ROOT}/env_products.sh
+fi
+
+
+export ROOT_DIR=$(pwd)/..
+export ROOT_DIR=`cd "${ROOT_DIR}";pwd`
+
+SRC_DIR=${ROOT_DIR}/sources
+
+export LIB=${LD_LIBRARY_PATH}
+export PATH=${CASROOT}:${PATH}
+export PYTHON_INC_DIR=${PYTHON_INCLUDE}
+export PYTHON_LIB_DIR=${PYTHON_ROOT_DIR}/lib
+
+#------ NewGEOM ------
+export INST_DIR=${ROOT_DIR}/install
+export PATH=${INST_DIR}/bin:${INST_DIR}/plugins:${PATH}
+export LD_LIBRARY_PATH=${INST_DIR}/bin:${INST_DIR}/swig:${INST_DIR}/plugins:${PATH}${LD_LIBRARY_PATH}
+export NEW_GEOM_CONFIG_FILE=${INST_DIR}/plugins
diff --git a/salome_run.sh b/salome_run.sh
new file mode 100755 (executable)
index 0000000..e4dc6bd
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+export ROOT_DIR=$(pwd)/..
+
+source ${ROOT_DIR}/sources/salome_env.sh
+
+# Correcting path which defined with error
+export LD_LIBRARY_PATH=${KERNEL_ROOT_DIR}/lib/salome:${LD_LIBRARY_PATH}
+
+export LightAppConfig=${ROOT_DIR}/install/share/salome/resources/newgeom:${GUI_ROOT_DIR}/share/salome/resources/gui
+
+SUITApp LightApp -style salome --modules=NewGeom --uselicense --noexcepthandling
\ No newline at end of file