Can anyone please help how to solve this error aft...
# sky130
p
Can anyone please help how to solve this error after downloading magic and running the make commands in macOS , or a proper way to install magic software in macOS.
t
I've never seen this error before (or rather had it reported to me before, as I don't own any Mac OS devices), but it looks like a Mac OS library has defined structure Region and doesn't like having it redefined. It could be solved by changing the Region structure name in Magic, but there should be simpler solutions, like a compiler switch that allows typedef redefinitions (?)
m
@Paras Vekariya this is the configuration I used after installing the tcl/tk libraries in
/usr/local/opt2
Copy code
./configure --with-tcl=/usr/local/opt2/tcl-tk/lib --with-tk=/usr/local/opt2/tcl-tk/lib --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib CFLAGS=-Wno-error=implicit-function-declaration
p
@Mitch Bailey Was the tcl-tk library explicitly downloaded from official website or was it done using brew? Because when I tried using brew, it was throwing this error.
m
I think I used the official website as described in
magic/INSTALL_MacOS.md
.
p
Thank you @Mitch Bailey sir, It worked.
👍 1