1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0023095: Porting demo and samples on OCCT 6.5.3

Fix for paths in *.vcproj files in MFC sample
Fixed scripts for QT samples on Linux platform
This commit is contained in:
bugmaster
2012-04-24 17:47:31 +04:00
parent 5ce17593b9
commit 7a53e88695
48 changed files with 1472 additions and 1483 deletions

View File

@@ -1,58 +1,22 @@
#!/bin/sh
export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -e "${aSamplePath}/custom.sh" ]; then source "${aSamplePath}/env.sh"; fi
cd $aSamplePath
host=`uname -s`
PROG_DIR=`dirname $0`
ROOT_DIR=`(cd $PROG_DIR; pwd)`
if test ! -d "$host/obj"; then
QTDIR="$CASROOT/../3rdparty/$host/qt"
QT_LD_PATH="$CASROOT/../3rdparty/$host/qt"
CASCADE_LD_PATH="$CASROOT/$host/lib"
LD_LIBRARY_PATH="${CASCADE_LD_PATH}:${QT_LD_PATH}:${LD_LIBRARY_PATH}"
fi
STATION=$host
if test "${CASROOT+set}" != "set"; then
echo "Environment variable \"CASROOT\" not defined."
CASROOT="$CASCADE_ROOT"
if test -n "$CASROOT"; then
echo "Try to use CASROOT=$CASROOT"
else
exit 1
fi
fi
if test ! -d "$CASROOT"; then
echo "CasCade root directory \"$CASROOT\" not found."
exit 1
fi
if test "${QTDIR+set}" != "set"; then
echo "Environment variable \"QTDIR\" not defined."
exit 1
fi
occ_opengl_lib=libTKOpenGl.so
RES_DIR="${ROOT_DIR}/res"
BIN_DIR="${ROOT_DIR}/${STATION}/bin"
CSF_GraphicShr="${CASROOT}/${STATION}/lib/${occ_opengl_lib}"
CSF_UnitsLexicon="${CASROOT}/src/UnitsAPI/Lexi_Expr.dat"
CSF_UnitsDefinition="${CASROOT}/src/UnitsAPI/Units.dat"
CSF_MDTVFontDirectory="${CASROOT}/src/FontMFT"
CSF_MDTVTexturesDirectory="${CASROOT}/src/Textures"
RES_DIR="${aSamplePath}/res"
BIN_DIR="${aSamplePath}/${STATION}/bin"
CSF_ResourcesDefaults="${RES_DIR}"
CSF_TuturialResourcesDefaults="${RES_DIR}"
CSF_TutorialResourcesDefaults="${RES_DIR}"
PATH="${BIN_DIR}:${PATH}"
export CSF_GraphicShr CSF_UnitsLexicon CSF_UnitsDefinition
export CSF_MDTVFontDirectory CSF_MDTVTexturesDirectory
export CSF_TuturialResourcesDefaults CSF_ResourcesDefaults
export PATH LD_LIBRARY_PATH
export CSF_TutorialResourcesDefaults CSF_ResourcesDefaults
export PATH
if test ! -r "${BIN_DIR}/Tutorial"; then
echo "Executable \"${BIN_DIR}/Tutorial\" not found."
@@ -61,4 +25,3 @@ if test ! -r "${BIN_DIR}/Tutorial"; then
fi
${BIN_DIR}/Tutorial