<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Post, Creating Compiled Maple Utilities</title>
    <link>http://www.mapleprimes.com/posts/99861-Creating-Compiled-Maple-Utilities</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 19:03:34 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 19:03:34 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Post, Creating Compiled Maple Utilities</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Post, Creating Compiled Maple Utilities</title>
      <link>http://www.mapleprimes.com/posts/99861-Creating-Compiled-Maple-Utilities</link>
    </image>
    <item>
      <title>super</title>
      <link>http://www.mapleprimes.com/posts/99861-Creating-Compiled-Maple-Utilities?ref=Feed:MaplePrimes:Creating Compiled Maple Utilities:Comments#comment99864</link>
      <itunes:summary>&lt;p&gt;Really super, Joe. I mean that even more for showing everyone such nice clean techniques.&lt;/p&gt;
&lt;p&gt;I have a very minor variation to suggest, just to the installation location. Above you have it as,&lt;/p&gt;
&lt;pre&gt;installed_so  := $(MAPLE_BIN)/$(shared_lib)
installed_mla := ${HOME}/maple/lib/$(pkg).mla
&lt;/pre&gt;
&lt;p&gt;That's maybe not ideal for everyone. The MAPLE_BIN directory might not be writable, if that is a network Maple installation. And someone might not want to tamper even in the slightest with the existing, nonempty folders of their Maple installation. And that `lib` location would require that the user's Maple sessions be configured so that `libname` included that location (either done manually each time, or in one's Maple initialization file).&lt;/p&gt;
&lt;p&gt;An alternative pair of installation locations might be,&lt;/p&gt;
&lt;pre&gt;installed_so  := $(HOME)/maple/toolbox/pkg/bin.$SYS/$(shared_lib)
installed_mla := ${HOME}/maple/toolbox/pkg/lib/$(pkg).mla
&lt;/pre&gt;
&lt;p&gt;By bin.$SYS I mean setting SYS like the last part of kernelopts(bindir). The reason I suggest these is that I believe that modern Maple will automatically pick them up. Such directories/folders as maple/toolbox/foo/lib, under kernelopts(homedir), get automatically added to libname. And those bin.$SYS directories/folders automatically get prepended to LD_LIBRARY_PATH/PATH according to whether the OS is Windows/UNIX.&lt;/p&gt;
&lt;p&gt;Of course, you might decide that such automatic detection of binary+Library packages is something you &lt;em&gt;don't&lt;/em&gt; want. But if you do, then these locations can be quite useful. Another neat twist is that the folders can be named like {$HOME}/maple/toolbox/13/pkg/lib/ and as such would get detected by Maple 13 but not by Maple 14. And so on.&lt;/p&gt;
&lt;p&gt;For some years now I've thought that it might be more generally useful if this functionality were documented explicitly. There are lots of packages on the Application Center which don't clearly explain how to alter libname and thus gain access to the commands in the bundled .mla Library archive. But a simple, general solution might be documentation which described re-usable locations for personal libraries (and any associated binaries) that would just work, automagically. Locations that were &lt;em&gt;not&lt;/em&gt; the central `lib` or bin.$SYS location of the user's Maple installation itself, to avoid danger of clobbering anything crucial to Maple proper.&lt;/p&gt;
&lt;p&gt;Of course, many Application Center entries don't even use .mla archives at all, but merely provide their functionality in a bare worksheet. That's another issue altogether, to address another time.&lt;/p&gt;
&lt;p&gt;Back to the reusable location idea. One could stick more than one archive (and binary, if applicable) under one such folder. A single folder location could hold several such personal apps, as long as the .mla's had distinct filenames. (Or the apps could be merged into a single archive, if the package names were distinct. But that's more complicated, and gets away from the ease-of-use theme.) A common location could contains various add-on archives such as,&lt;/p&gt;
&lt;pre&gt;   ${HOME}/maple/toolbox/misc/lib/pkgOne.mla
   ${HOME}/maple/toolbox/misc/lib/pkgTwo.mla
&lt;/pre&gt;
&lt;p&gt;etc. That be much easier to explain, as far as where to place an Add-on .mla archive. "Just stick it in HOME/maple/toolbox/misc/lib" is a lot simpler than "Ok, place it anywhere, and then find your Maple initialization file, and then edit it and add the line libname:=...,libname".&lt;/p&gt;
&lt;p&gt;acer&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Creating Compiled Maple Utilities</description>
      <guid>99864</guid>
      <pubDate>Sun, 05 Dec 2010 08:13:28 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
    <item>
      <title>Update</title>
      <link>http://www.mapleprimes.com/posts/99861-Creating-Compiled-Maple-Utilities?ref=Feed:MaplePrimes:Creating Compiled Maple Utilities:Comments#comment99873</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/posts/99861-Creating-Compiled-Maple-Utilities#comment99864"&gt;@acer&lt;/a&gt; Thank you for the explanation.&amp;nbsp; I was vaguely aware of Maple's ability to do this (automatically assign libname to read subdirectories under $HOME/maple/toolbox), but because I had customized my installation it wasn't working.&amp;nbsp; However, I just straightened that out.&amp;nbsp; Will probably have to clean up a number of scripts I have lying around, but this seems the right way to go.&amp;nbsp; I've since modified the Makefile (both in the zip file and in the write-up) to install (no soft links) the generated Maple archive and shared binaries under $HOME/maple/toolbox/ListToolBox.&lt;/p&gt;
&lt;p&gt;I agree that this functionality of Maple should be clearly explained.&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Creating Compiled Maple Utilities</description>
      <guid>99873</guid>
      <pubDate>Sun, 05 Dec 2010 11:46:38 Z</pubDate>
      <itunes:author>Joe Riel</itunes:author>
      <author>Joe Riel</author>
    </item>
  </channel>
</rss>