Problem using makefile to compile a toolbox on OSX 10.9

2 views (last 30 days)
Hi,
I'm trying to compile the IPEM auditory analysis toolbox (link is direct download of code).
The download includes code to compile for up to Matlab 8. I have R2013b and am compiling for my OSX 10.9 operating system, so I'm using the Matlab 8 UNIX code. I'm using the makefile provided, and have edited the relevant lines of code as instructed but I'm getting an error when I run "make" or "make install" in Terminal. It looks like this:
chriss-mbp:Matlab8_UNIX chrissteenson$ make
gcc -c -I/Applications/matlab/MATLAB_R2013b/extern/include -I../src -I../src/library -I../src/audiprog -DMATLAB_MEX_FILE -fPIC -fno-omit-frame-pointer -D_GNU_SOURCE -pthread -fexceptions -arch x86_64 ../src/audiprog/Audimod.c -o ./Release/Audimod.o
/var/folders/5h/xjy9bx4d25nd9m1rjws8tyxr0000gn/T//ccI5Hwoq.s:unknown:FATAL:can't create output file: ./Release/Audimod.o
make: *** [all] Error 1
I'm not very familiar with using makefiles or using Terminal. I'm not sure how to troubleshoot this. All the directories being specified seem correct. How can I fix this error and compile the code properly?
Any help would be amazing.
Thanks,
Chris

Answers (1)

Walter Roberson
Walter Roberson on 24 Jul 2015
In the directory you give the "make" command in, there needs to be a writable directory named "Release" and "Audiomod.o" needs to be writable there.
I suggest using
ls -ld Release Release/Audiomod.o
to check to see whether those exist and if so whether they are possibly owned by someone else; possibly they exist with a different ownership due to the way the archive was extracted.
  3 Comments
Walter Roberson
Walter Roberson on 24 Jul 2015
Does the Release directory exist? What are its permissions?
ls -eld Release
Are you the owner? Does the output line start with 'drwx' ? Does any access control list show up (probably will not but maybe)
Chris
Chris on 25 Jul 2015
Okay, so I've just added the Release folder to the directory I'm calling make from but I'm still get a lot of errors in compiling which is frustrating. The file with the .io extension are being added to the Release folder though, so things are working.

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!