From 40e6a28ff6f35cfc33fcae78e3d82428beb044be Mon Sep 17 00:00:00 2001 From: Dikshant Date: Thu, 2 Nov 2023 18:08:03 +0530 Subject: [PATCH] appended macOS install file for XQuartz Display issue. --- INSTALL_MacOS.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/INSTALL_MacOS.md b/INSTALL_MacOS.md index aa9a3464..c2c47044 100644 --- a/INSTALL_MacOS.md +++ b/INSTALL_MacOS.md @@ -22,6 +22,7 @@ We are following the instructions from xschem (https://github.com/StefanSchipper We are using not `opt` but `opt2` so that this Tcl does not interfere with `tcl-tk` from HomeBrew. +Extract the Tcl sources and then go to the unix folder and execute the following commands:: ``` ./configure --prefix=/usr/local/opt2/tcl-tk make @@ -32,6 +33,13 @@ make install * Download Tk from https://prdownloads.sourceforge.net/tcl/tk8.6.10-src.tar.gz +Extract Tk source and then go to the unix folder: + +NOTE: before running 'make' inspect the Makefile and ensure the LIB_RUNTIME_DIR is set as follows. Make the correction if not: +``` +LIB_RUNTIME_DIR = $(libdir) +``` + ``` ./configure --prefix=/usr/local/opt2/tcl-tk \ --with-tcl=/usr/local/opt2/tcl-tk/lib --with-x \ @@ -53,3 +61,18 @@ CFLAGS=-Wno-error=implicit-function-declaration make make install ``` + +## If facing issue with layout window not opening / XQuartz: +Make sure that the output of the following command is ```:0```. +``` +echo $DISPLAY +``` +if the above command doesn't display ```:0``` then add the following line in ```.zshrc```. +``` +export PATH="/opt/X11/bin:$PATH" +``` +Close & reopen terminal to load the path. Then set display manually to ```0``` by using the following command. +``` +export DISPLAY=:0 +``` +Now ```echo DISPLAY``` should give ```:0``` as output. \ No newline at end of file