To build a plug-in you need
the gcc compiler version recommended in the
QSAS Installation Notes ($QSAS_HOME\doc\QSASInstallation.ps
).
As an example, to build the plug-in XY2Polar one would follow these steps:
$(CC)
and $(LD)
commands.
The file selection widget launched by QSAS when a plug-in is requested can be used to navigate to the user specific location, $INSTALL_QTPL holding the new .qtpl template.
When the plug-in run button is pushed qsas will attempt to load the plug-in shareable object file. It will first look for the XY2Polar.so file in the current working directory, then the location specified by the environment variable USER_LIB and finally the standard libraries installed with qsas in $QSAS_HOME/lib. The sample makefile installs both the template and shareable object files in the directory pointed to by the user's environment variable $USER_LIB.
You may re-install your plug-in without starting a new QSAS session. The latest .so file will be executed whenever you push the Run button on the Plug-in Window, according to the search order specified above.
The above makefile builds and installs a user plug-in into the user's own local plug-in library space. To make the XY2Polar plug-in automatically availabe to all users it would be necessary merely to copy the XY2Polar.qtpl file to $QSAS_HOME/qtpl and the shareable object library, XY2Polar.so, to $QSAS_HOME/lib and ensure all users have read permission.