Airspace-Encounter-Models / em-core

Software and data used by multiple repositories in the Aerospace Encounter Models organization.
BSD 2-Clause "Simplified" License
2 stars 8 forks source link

[ENHANCEMENT] Update troubleshooting for compiling mex function #7

Closed aweinert-MIT closed 2 years ago

aweinert-MIT commented 2 years ago

Depending on the operating system and compiler, the mex function, run_dynamics_fast, needs to be compiled with or without the -g flag. By default, the em-core/matlab/RUN_mex.m script uses the -g flag for windows PC and not the flag for other operating systems. However, @lydiaZeleke using MacOS and the Clang compiler ( Apple clang version 12.0.5 (clang-1205.0.22.11) required compiling with the -g. While the function should compile without or without the flag, when executing MATLAB can hard crash.

The em-core documentation should provide troubleshooting guidance to try removing or adding the -g flag if MATLAB hard crashes when using run_dynamics_fast.

aweinert-MIT commented 2 years ago

Issue no longer related due to pull request #8