Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing binary MEX files for MATLAB on macOS #1763

Open
c-yuwei opened this issue Nov 26, 2024 · 0 comments
Open

Missing binary MEX files for MATLAB on macOS #1763

c-yuwei opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working and need to be fixed right away enhancement New feature or request

Comments

@c-yuwei
Copy link
Collaborator

c-yuwei commented Nov 26, 2024

When attempting to run binary MEX files for MATLAB on macOS, which is generated from the included .cpp files (e.g. test_MultilayerCommunity), MATLAB does not recognize them by default.
image

To resolve this, the following commands must be executed:

mex metanetwork_reduce.cpp group_index.cpp full.cpp sparse.cpp
mex group_handler.cpp group_index.cpp full.cpp sparse.cpp

Steps to Reproduce

  • Navigate to the folder: BRAPH-2/braph2/measures/MEX_SRC.
  • Execute the commands listed above.

Output

After running the first command:

mex metanetwork_reduce.cpp group_index.cpp full.cpp sparse.cpp

A new file is generated:
/Users/iok-ui/OnDevice/GitHub/BRAPH-2/braph2/measures/MEX_SRC/metanetwork_reduce.mexmaca64

image

After running the second command:

mex group_handler.cpp group_index.cpp full.cpp sparse.cpp

Another file is generated:
/Users/iok-ui/OnDevice/GitHub/BRAPH-2/braph2/measures/MEX_SRC/group_handler.mexmaca64

image

After these steps, the function test_MultilayerCommunity works successfully
image

@c-yuwei c-yuwei added bug Something isn't working and need to be fixed right away enhancement New feature or request labels Nov 26, 2024
@c-yuwei c-yuwei self-assigned this Nov 26, 2024
@c-yuwei c-yuwei changed the title Executing failed .cpp files Fail to execute .cpp files Dec 4, 2024
@c-yuwei c-yuwei changed the title Fail to execute .cpp files Missing binary MEX files for MATLAB on macOS Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working and need to be fixed right away enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant