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:
20
samples/qt/Tutorial/env.sh
Normal file → Executable file
20
samples/qt/Tutorial/env.sh
Normal file → Executable 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}"
|
||||
|
Reference in New Issue
Block a user