Skip to content

Linux compatibility #1

@leotfh

Description

@leotfh

Thank you very much for your effort!

Just wanted to note that this project can run on Linux after a few changes:

  • initCCHandleEnv.m: The file extension of the logo has to be right, because filenames are case-sensitive on linux (shouldn't affect windows):
-         imshow('+env/logo.png', 'Parent', envHandle.Logo);
+        imshow('+env/logo.PNG', 'Parent', envHandle.Logo);
  • runMex.m: Here I had to change the path because linux uses / and not \:
-   cFiles = filemng.dirlist(['+algorithm\',subFolders{1,i}], '*.c');
+   cFiles = filemng.dirlist(['+algorithm/',subFolders{1,i}], '*.c');
  • Maybe add +algorithm/mex_main.mexw64 to .gitignore because it's a windows binary
  • This may be arch linux related, but I also had to change one line in usr/local/MATLAB/R2024b/bin/.matlab7rc.sh:
    LDPATH_PREFIX='/usr/lib'

Confirmed on:

  • Linux 6.12.4-arch1-1
  • gcc version 14.2.1 20240910 (GCC)
  • MATLAB R2024b

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