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

MATLAB make file does not compile after setting up $MATLABDIR #5

Open
ArturoDeza opened this issue Aug 19, 2018 · 1 comment
Open

Comments

@ArturoDeza
Copy link

ArturoDeza commented Aug 19, 2018

This was the error that I got after running make from the terminal inside the matlab folder of the repo:

gcc -m64 -Wall -O3 -fPIC -I/usr/local/MATLAB/R2018a/extern/include -I../c_emd -c -DMX_COMPAT_32 -DMATLAB_MEX_FILE -I"/usr/local/MATLAB/R2018a/extern/include" \
	-I"/usr/local/MATLAB/R2018a/simulink/include"  -fno-common -arch x86_64 -fexceptions \
	-O2 -fwrapv -flto ../c_emd/emd.c c_emd.c
gcc: error: x86_64: No such file or directory
gcc: error: unrecognized command line option ‘-arch’
Makefile:25: recipe for target 'c_emd.o' failed
make: *** [c_emd.o] Error 1

I'm using Ubuntu 16.04 running MATLAB 2018a, and have gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)

@garydoranjr
Copy link
Owner

Hi @ArturoDeza, sorry for the delay. It looks like the -arch flag is only for the Mac OS version of the compiler. As a workaround, you might just try removing this command-line argument. I will have to fix the Makefile to use different arguments for different operating systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants