Hello, is there currently support for Macs? I did not find a mexmaci64 version in the build, and I was unable to build it myself. Sorry, I have no experience with mex files previous to this so I may be missing something simple. I am running Matlab 2014b on Mac Yosemite.
Thanks,
Ricardo
Hi Ricardo,
I have no access to MATLAB for Mac currently, sorry.
But it should compile on a MAC also, where are the problems?
Martin
Hi Martin,
I get a large amount of output, and I have pasted it below, sorry if there is bad formatting!
I added the second line there, by writing disp(buildargs) to see if there was something obvious I could change...
Edit: It appears the formatting is quite bad, let me know if you would rather I upload the file separately. And thanks again!
Last edit: Ricardo Piedrahita 2015-09-23
Hi Recardo,
Here's a solution for you.
Find -DNDEBUG#1 in the code.
It will be somewhere close to the actual build command
eval (['mex ' buildargs]);
Replace -DNDEBUG#1 with -DNDEBUG=1
and try running again.
I ran into this problem while building another MATLAB library with mex.
I was able to build correctly after a similar modification.
I am not sure why some code uses
-D_NAME_#_VALUE_
as opposed to-D_NAME_=_VALUE_
but anyway this was how I solved it.
Andreas,
Would you be able to explain why? That will solve this mystery which took me 2 hours to resolve.
Thank you.
Hello Ricardo,
there are several users, appreciate to use mksqlite on mac. Is seems, that apple ships their system with a very old library version, which you have to update manually, but that's kind tricky.
It would be nice, if someone is able to compile this code on mac and would post a small "how to". I also have no access to a mac, with MATLAB installed...
As far as I know you have to manually update the libraries and force the compiler to use them (-std=c++11 -stdlib=libc++).
Tried "mex -setup CPP" on MATLAB console?
Regards, Andreas
Perhaps a useful link:
http://de.mathworks.com/support/compilers/R2015b/index.html?sec=maci64
(Try to use Xcode 6.x)