diff options
Diffstat (limited to 'Plugins/ScriptingTcl/ScriptingTcl.pro')
| -rw-r--r-- | Plugins/ScriptingTcl/ScriptingTcl.pro | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Plugins/ScriptingTcl/ScriptingTcl.pro b/Plugins/ScriptingTcl/ScriptingTcl.pro index 4b89ce6..08d8796 100644 --- a/Plugins/ScriptingTcl/ScriptingTcl.pro +++ b/Plugins/ScriptingTcl/ScriptingTcl.pro @@ -36,6 +36,17 @@ linux: { # Find tclConfig.sh TCL_CONFIG_DIR = $$system(echo "puts [info library]" | tclsh) TCL_CONFIG = $$TCL_CONFIG_DIR/tclConfig.sh + message("Looking for $$TCL_CONFIG") + !exists($$TCL_CONFIG) { + # Debian case + DEBIAN_ARCH_PATH=$$system(dpkg-architecture -qDEB_HOST_MULTIARCH) + TCL_CONFIG = /usr/lib/$$DEBIAN_ARCH_PATH/tcl$$TCL_VERSION/tclConfig.sh + } + message("Looking for $$TCL_CONFIG") + !exists($$TCL_CONFIG) { + error("Could not find tclConfig.sh file. You can define its absolute path by qmake parameter: TCL_CONFIG=/path/to/tclConfig.sh") + } + message("Using tclconfig: $$TCL_CONFIG") # Define other libs required when linking with Tcl eval($$system(cat $$TCL_CONFIG | grep TCL_LIBS)) |
