From: mpv Date: Mon, 14 Apr 2014 13:09:02 +0000 (+0400) Subject: README and minor environment changes X-Git-Tag: V_0.1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c6fd86525e1703a48b3d317b738d9ec8e41f998f;p=modules%2Fshaper.git README and minor environment changes --- diff --git a/README b/README new file mode 100644 index 000000000..650d1a14a --- /dev/null +++ b/README @@ -0,0 +1,31 @@ +NewGEOM version 0.1 (end of development phase 1 result). + + +Compilation on LINUX: +===================== + + cd + source linux_env.sh + cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=${ROOT_DIR}/install ${ROOT_DIR}/sources + make + make install + +It will create a "build" and "install" folders. Environment is ready to launch an application: + + XGUI + +Or without environment call: + + linux_run.sh + + +Compilation on Windows: +======================= + cd + buildNewGEOM_rel.bat + +It will launch the Visual Studio 2010. In it build for: "ALL_BUILD" and then "INSTALL" projects. +Launch: + + winRun.bat + \ No newline at end of file diff --git a/linux_env.sh b/linux_env.sh index b529b4031..8bd77be37 100644 --- a/linux_env.sh +++ b/linux_env.sh @@ -87,6 +87,7 @@ export CASROOT=${CAS_ROOT_DIR} ## export LIB=${LD_LIBRARY_PATH} +#------ 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} diff --git a/msvc10_env.bat b/msvc10_env.bat index a21fa9f5e..ac0173ad4 100644 --- a/msvc10_env.bat +++ b/msvc10_env.bat @@ -34,7 +34,6 @@ set PATH=%CMAKEDIR%\bin;%PATH% @REM CASCADE @SET PATH=%CASROOT%;%CASROOT%\win32\bin%OCC_LIB_PREFIX%;%PATH% @SET LIB=%CASROOT%\win32\lib%OCC_LIB_PREFIX%;%LIB% -@set CSF_GraphicShr=%CASROOT%\win32\bin%OCC_LIB_PREFIX%\TKOpenGl.dll @set CSF_MDTVFontDirectory=%CASROOT%\src\FontMFT @set CSF_LANGUAGE=us @set MMGT_CLEAR=1 diff --git a/winRun.bat b/winRun.bat new file mode 100644 index 000000000..5c6182ecf --- /dev/null +++ b/winRun.bat @@ -0,0 +1,15 @@ +@ECHO OFF + +REM Find absolute path to ROOT_DIR +@SET PARENT_DIR=%~dp0.. +@SET ROOT_DIR= +pushd %PARENT_DIR% +@SET ROOT_DIR=%CD% +popd + +@SET SRC_DIR=%ROOT_DIR%\sources +@SET OCC_LIB_PREFIX=d + +call %SRC_DIR%\msvc10_env.bat + +start %ROOT_DIR%\install\bin\XGUI.exe