# Using SIMCA-Q Linux

This is SIMCA-Q for Linux. The internal version number is 18.0.0.
It works with project .usp files created with SIMCA 18.0 and earlier versions.

## Limitations

The Linux version of SIMCA-Q does not work with plugin libraries.

## System requirements

SIMCA-Q is verified to work on Ubuntu 22. It's compiled on Ubuntu 20, with GCC 9.5.0.

Other distributions of Linux may NOT work. If you use a different system, please contact support.

## Installing on Linux

To install, type as root, if this is a fresh install:

```bash
tar xzf simca-q-18.0.0.tar.gz
```

This will unpack `libsimcaq` in ``/usr/local`

## Licensing

To be able to run you need to copy your UmetricsLicense.$SQ to the example directory or to
your $HOME/.umetrics directory.

## Documentation

Provided with libsimcaq is also documentation:

```bash
/usr/local/share/doc/libsimcaq/SIMCA-Q_Interface_Description.pdf
/usr/local/share/doc/libsimcaq/SIMCA-Q_User_Guide.pdf
/usr/local/share/doc/libsimcaq/SIMCA-Q_Quick_Tutorial.pdf
/usr/local/share/doc/libsimcaq/qp/html/index.html
/usr/local/share/doc/libsimcaq/qm/html/index.html
/usr/local/share/doc/libsimcaq/qpplus/html/index.html
```

Note: the documentation is not available in the OEM version of the package.

## Example applications

Note: these are not available in the OEM version of the package.

### Example application 1: SQMCSample

Location: `/usr/share/libsimcaq/examples/SQMCSample`

Go to that directory and type:

```bash
./configure
make
```

Then run SQMCSample with an usp of your choice:

```bash
./SQMCSample project.usp importsample-dot.txt
```

### Example application 2: SQPCSample

Location: `/usr/share/libsimcaq/examples/SQPCSample`

Go to that directory and type:

```bash
./configure
make
```

Note that if you have a SIMCA-QM license you will need to define SIMCA_QM to be able to run this example:

```bash
CFLAGS="-g -DSIMCA_QM" ./configure
make
```

Then run SQPCSample with a project usp file of your choice:

```bash
./sqpc
```

### Example application 3: sqppluscsample

The sqppluscsample application shows how to use the batch functionality. To run this example you need a QP+ or QM+ license.

Location: `/usr/share/libsimcaq/examples/sqppluscsample`

Go to that directory and type:

```bash
./configure
make
```

Then run SQPCSample with an usp of your choice:

```bash
./sqppluscsample myusp.usp
```
