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

0023448: Fix QT samples for Mac OS X

Fixed QT samples so they can be built on Mac OS X with qt-x11
This commit is contained in:
dbv
2012-09-27 15:58:32 +04:00
parent bd82d4b2e9
commit 90ac61454f
6 changed files with 60 additions and 40 deletions

20
samples/qt/Tutorial/env.sh Normal file → Executable file
View File

@@ -1,5 +1,23 @@
#!/bin/sh
if [ -e "${aSamplePath}/custom.sh" ]; then source "${aSamplePath}/custom.sh"; fi
if test "${CASROOT}" == ""; then
echo "Environment variable \"CASROOT\" not defined. Define it in \"custom.sh\" script."
exit 1
fi
if test "${QTDIR}" == ""; then
echo "Environment variable \"QTDIR\" not defined. Define it in \"custom.sh\" script."
exit 1
fi
if test `uname -s` == "Darwin" && test "${WOKHOME}" == ""; then
echo "Environment variable \"WOKHOME\" not defined. Define it in \"custom.sh\" script."
exit 1
fi
export PATH=${QTDIR}/bin:${PATH}
source $CASROOT/env.sh
export CSF_OPT_INC="${CSF_OPT_INC}${CASROOT}/inc:"
export CSF_OPT_INC="${CASROOT}/inc:${WOKHOME}/lib:${CSF_OPT_INC}"