(Apologies for cross-posting, but I thought this might be of wide interest
to Mac users)
I was very pleased when Bruker made Topspin freely available to academics,
doubly so when this included a Macintosh version, but was just a little
disappointed to find that user-written au programmes failed to compile and
run in the Mac version. I always meant to try to fix this but never had time,
and when the release notes for 4.1.1 included a statement that the problem
was caused by a missing library I gave up hope.
Our student Marshall Smith, however, was made of sterner stuff, and has come
up with the following fix (for Topspin 4.1.1 only), for those who are happy
to use the Terminal command line in MacOS:
1) Install command line tools
In Terminal type: xcode-select --install
2) in the file /opt/topspin4.1.1/exp/stan/nmr/au/makeau
(a) uncomment line 20 (by removing #)
(b) remove -Wl,-lcrt1.o from line 494
3)In /opt/topspin4.1.1/prog/include/lib/libcb.h
(a) change line 28 from #include<values.h> to #include<limits.h>
(b) add lines
#define MININT INT_MIN
#define MAXINT INT_MAX
4) In /opt/topspin4.1.1/prog/include/lib/uni.h
comment out line 182
This works for us with Topspin 4.1.1 on Mojave (10.14.6) and Big Sur (11.0.1).
The equivalent changes in Topspin 4.0.8 did not work; we have not tried
other OS/TS version combinations.
This recipe is offered with no guarantees - caveat emptor! - and do remember
to keep copies of the original versions of make, libc.h and uni.h in case
of problems.
Best wishes
Gareth Morris
=============================================
Prof Gareth A Morris FRS
Department of Chemistry, University of Manchester
Oxford Road, Manchester M13 9PL, UK
Tel (0) 161 275 4665
g.a.morris_at_manchester.ac.uk<mailto:g.a.morris_at_manchester.ac.uk>
=============================================
Received on Sat May 15 2021 - 03:52:50 MST