Skip to content

CODEGEN requires a MATLAB Coder license. #22

@BJCaasenbrood

Description

@BJCaasenbrood

He, I'm playing around with the CircleCI for a Matlab toolkit I've written: https://github.com/BJCaasenbrood/SorotokiCode

Currently, I'm using the following .circleci/config.yml:

version: '2.1'
orbs:
  matlab: mathworks/matlab@0
jobs:
  build:
    machine:
      image: ubuntu-2204:2022.07.1
    steps:
      - checkout
      - run: git clone https://github.com/mobeets/mpm.git temp
      - run: mv temp/mpm.m . & mv temp/mpm_config.m . & mv temp/mpm_nls.mat . & mkdir mpm-packages
      - run: rm -rf temp
      - matlab/install
      - matlab/run-command:
          command: sorotoki -i --approve; sorotoki -b --approve; y = sorotoki('-t');

sorotoki -b --approve runs a script that builds .mex files, but I get the message: CODEGEN requires a MATLAB Coder license. The error message is clear, but when running ver I do see the Matlab coder as part of the installed toolboxes:

-----------------------------------------------------------------------------------------------------
MATLAB Version: 23.2.0.2365128 (R2023b)
MATLAB License Number: 40847642
Operating System: Linux 5.15.0-1015-aws #19-Ubuntu SMP Wed Jun 22 17:44:56 UTC 2022 x86_64
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB                                                Version 23.2        (R2023b)
Simulink                                              Version 23.2        (R2023b)
.
.
.
.
MATLAB Coder                                          Version 23.2        (R2023b)
MATLAB Compiler                                       Version 23.2        (R2023b)
MATLAB Compiler SDK                                   Version 23.2        (R2023b)
-----------------------------------------------------------------------------------------------------

Any workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions