[tlbuild] asy on Macintosh

Richard Koch koch at uoregon.edu
Fri Mar 29 00:30:40 CET 2019


Folks,

Using a hint from Mojca Miklavec, and with a lot of help from John Bowman,
I have managed to compile asy on the Mac. I compiled on Mojave, and as
a final step after writing this note, I'll compile on Sierra, where this year's
x86_64-darwin binaries are made.

A key discovery is that the latest Boehm garbage collector won't compile on
the Mac, but Bowman told me of a flag to revert to an earlier version.

The crucial final step, when I was sufficiently frustrated, was to leave the house,
go to a restaurant, and eat a steak dinner.

-------------------

After that, I got an asy which worked.
I ran the tests. It passed all the tests. 

Congratulations to John Bowman, for sticking with me and making the right
suggestions. 

Here is a summary of what I did. The glm business came from
a suggestion by Mojca Miklavec. The glew library came from a Bowman
suggestion that glew might be a problem on the Mac. Most of the rest
come from more recent Bowman suggestions.

	1) I built static libraries for fftw-3.3.8, glew-2.1.0, gsl-2.5, and readline-6.3

	2) As Karl Berry suggested last year, I put these in a directrory in my home folder rather
	than in /usr/local. I put the glew header files in include/OpenGL in this
	folder.

	3) I updated the sources to the latest versions as of 15 minutes ago

	4) I added two files, 

	curl -O http://hboehm.info/gc/gc_source/gc-7.6.0.tar.gz
	curl -O http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-7.6.0.tar.gz 

	5) I downloaded the folder glm-0.9.9.4 from the internet, found the folder glm inside it,
	and copied this folder to the asymptote source folder

	6) I edited glrender.cc:1266 by commenting out the line containing
	GLUT-CORE_PROFILE

	7) I ran .configure as below, and then edited the Make file to remove the single occurrence
	of   -lgccpp

Here are my build instructions:

export CPPFLAGS="-I/Users/koch/AsymptoteBuild/include -I/Users/koch/AsymptoteBuild/include/gsi -		I/Users/koch/AsymptoteBuild/include/readline -I/Users/koch/AsymptoteBuild/include/OpenGL" 

export LDFLAGS="-L/Users/koch/AsymptoteBuild/lib"

./configure --prefix=/tmp/asyinst --enable-texlive-build --enable-gc=7.6.0 

make # CFLAGS="-g -DBROKEN_COMPILER" 


Richard Koch
koch at uoregon.edu


More information about the tlbuild mailing list