nasa / GMSEC_API

15 stars 3 forks source link

Issue with Pointing to an Alternative Location for MCS #40

Open stephen-ritter opened 2 weeks ago

stephen-ritter commented 2 weeks ago

There needs to be a way to configure the location for the installed mcs binary through an environment variable like swig does with SWIG_HOME. On my system (UBI 8 minimal image) it is located here because I built it from source:

[root@8de848fddea6 GMSEC_API]# which mcs
/usr/local/bin/mcs

The Makefile seems to assume the general install for mcs is based on the OS you are building for: https://github.com/nasa/GMSEC_API/blob/ac7d45e1d570565deec7dbe9466b52ac1fa9c622/csharp/gmsec5/Makefile#L14-L18

dmwhitne-583 commented 2 weeks ago

The /usr/bin/mcs is the standard location on Ubuntu 20.04 and RHEL8 systems. If an alternative is needed, then you have two choices:

  1. Edit the Makefile
  2. Run make and override the variable

Regarding the latter option, something like this:

$ make MCS=/usr/local/bin/mcs

If you prefer something more elaborate to be included with the distribution (say for GMSEC API 5.3), then you will need to contact the curators at gmsec-support@lists.nasa.gov.