<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Mojca,<div class=""><br class=""></div><div class="">Here are my asy instructions. One word of warning. When I was all done, I wanted to see if the "typesetting engine" in TeXShop still worked, so I replaced the old asy in TeX Live 2019 with the new one. This completely failed for 3D illustrations, although 2D ones worked fine, It turns out that the reason for the failure is that TeX Live has a whole folder of support files for asy, and they were for the old version,<br class=""></div><div class=""><br class=""></div><div class="">If you want to test asy in this sort of way, you should put it in the folder with the TeX source you want to try,</div><div class="">and call it as follows:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>pdflatex Sample.tex</div><span class="Apple-tab-span" style="white-space: pre;"> </span>./asy -v -dir base Sample-*.asy <br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>pdflatex Sample.tex<div class=""><br class=""></div><div class="">and here "base" should be a full path to the asymptote source folder, ending with the base folder inside,</div><div class="">So for me, base was</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>/Users/koch/texlive2020dev/source/utils/asymptote/base</div><div class=""><br class=""></div><div class="">I'll put the new asy binary on my web site at ctan, so you can get it via</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><a href="http://tug.org/~koch/asy" class="">http://tug.org/~koch/asy</a></div><div class=""><br class=""></div><div class="">However, give me at least 15 minutes after this mail arrives to put it there.</div><div class=""><br class=""></div><div class="">Richard Koch</div><div class=""><a href="mailto:koch@uoregon.edu" class="">koch@uoregon.edu</a></div><div class=""><br class=""></div><div class="">==================================================</div><div class=""><br class=""></div><div class=""><div class="">ASYMPTOTE: The build process for TeX Live does not automatically build</div><div class="">asymptote. Asymptote must be built separately. This requires first building </div><div class="">three libraries, fftw-3.3.8, gsl-2.6, readline-6.3. We carefully build these </div><div class="">so they will statically link, because they may not exist on user machines.</div><div class=""><br class=""></div><div class="">As usual, we put this preparation step at the end and describe here the steps</div><div class="">to rebuild asymptote if there are changes.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">BUILDING ASYMPTOTE:</div><div class=""><br class=""></div><div class="">Build asymptote. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>cd</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>cd ~/texlive2020dev/source/utils/asymptote</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>make clean</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>(reach into texlive2020dev/source/utils/asymptote</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span> and throw away the folder gc-8.0.4, keeping the related tar file)</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>export CPPFLAGS="-I/Users/koch/AsymptoteBuild/include -I/Users/koch/AsymptoteBuild/include/gsi -I/Users/koch/AsymptoteBuild/include/readline"</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>export LDFLAGS="-L/Users/koch/AsymptoteBuild/lib"</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>./configure --prefix=/tmp/asyinst --enable-texlive-build</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>make CFLAGS="-g -DBROKEN_COMPILER"</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>strip asy</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>## To test, </div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>cd</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>cd ~/texlive2020dev/source/utils/asymptote</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>make check</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>## We want Testing errors…PASSED</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>## End of checking</div><div class=""> </div><div class=""><br class=""></div><div class="">Move To Desktop </div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>cd </div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>cd texlive2020dev/source/utils/asymptote</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>cp asy ~/Desktop/asy</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">----------------</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span></div><div class="">NOTES: gsl-2.6 is latest, released August 20, 2019</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>fftw 3.3.8 is the latest, released May 28, 2018</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">This as of October 6, 2019</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">INITIAL STEPS; DO THESE JUST ONCE BEFORE BEGINNING</div><div class="">TO BUILD ASYMPTOTE:</div><div class=""><br class=""></div><div class="">You must compile three libraries, which will be statically linked so that in</div><div class="">the end they are not installed in a user's system. </div><div class=""><br class=""></div><div class="">Create a folder named "AsymptoteBuild" in your home directory.</div><div class=""><br class=""></div><div class="">Get the Fast Fourier Transform Library (FFTW) from <a href="http://www.fftw.org/" class="">http://www.fftw.org/</a></div><div class="">and install the tar.gz file in AsymptoteBuild. Decompress it, producing a folder</div><div class="">named fftw-3.3.8. </div><div class=""><br class=""></div><div class="">Get the GNU Scientific Library (GSL) from <a href="http://www.gnu.org/software/gsl/" class="">http://www.gnu.org/software/gsl/</a></div><div class="">and install the tar.gz file in AsymptoteBuild. Decompress it, producing a folder</div><div class="">named gsl-2-6. </div><div class=""><br class=""></div><div class="">Get the GNU Readline Library from <a href="https://tiswww.case.edu/php/chet/readline/rltop.html" class="">https://tiswww.case.edu/php/chet/readline/rltop.html</a> </div><div class="">and and install the tar.gz file in AsymptoteBuild. We use version 6.3, which has </div><div class="">always worked, rather than version 8.0. Decompress it, producing a folder </div><div class="">named readline-6.3 containing the source code.</div><div class=""><br class=""></div><div class="">Finally, get the glm project from <a href="https://glm.g-truc.net/0.9.9/index.html" class="">https://glm.g-truc.net/0.9.9/index.html</a>. Decompress to</div><div class="">get a folder named glm and place this folder in AsymptoteBuild-2020. Inside is another</div><div class="">folder named glm. Make a copy of this folder in AsymptoteBuild-2020/include, naming </div><div class="">the copy glm as well. Note that glm is just a collection of C++ headers, so no compiling</div><div class="">is necessary. (Note that AsymptoteBuild-2020/include is created when the initial libraries</div><div class="">are built, so wait until the end to do the glm step.)</div><div class=""><br class=""></div><div class="">Build these libraries as follows:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>cd ~/AsymptoteBuild</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>cd fftw-3.3.8</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>make clean</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>./configure --prefix=/Users/koch/AsymptoteBuild --exec-prefix=/Users/koch/AsymptoteBuild</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>make</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>make install</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>cd ..</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>cd gsl-2.6</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>make clean</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>./configure --prefix=/Users/koch/AsymptoteBuild --exec-prefix=/Users/koch/AsymptoteBuild</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>make</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>make install</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>cd ..</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>cd readline-6.3</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>make clean</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>./configure --prefix=/Users/koch/AsymptoteBuild --exec-prefix=/Users/koch/AsymptoteBuild</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>make</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>make install</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>cd /Users/koch/AsymptoteBuild/lib</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>rm -f *.dylib</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>rm -f *.la</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">--------------------------------</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">To see which dylibs are called by asymptote:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>otool -L asy</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div></body></html>