[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Report bugs to <address@hidden>

From: Paul Smith
Subject: Re: Report bugs to <address@hidden>
Date: Fri, 08 May 2015 08:58:18 -0400

On Fri, 2015-05-08 at 14:33 +0800, 林海鸿 wrote:
> I got a bug when installing mexopencv on matlab base on xcode.

> LOG HERE: http://paste.ubuntu.com/11021239/

Please paste the basic command and error message into your email:

make MATLABDIR="/Applications/MATLAB_R2014b.app" MEXEXT=mexmaci64  
-I/usr/local/Cellar/opencv/2.4.11/include -L/usr/local/Cellar/opencv/2.4.11/lib/
/Applications/Xcode.app/Contents/Developer/usr/bin/make: invalid option -- /
/Applications/Xcode.app/Contents/Developer/usr/bin/make: invalid option -- u
/Applications/Xcode.app/Contents/Developer/usr/bin/make: invalid option -- /
 ... summary of options ...

The error message is quite clear so I'm not sure exactly what the
question is.

The option "-L<libpath>" is an option you pass to your linker, not to
GNU make, so you can't put it on the make command line like this.
Similarly, the "-I" command line option for GNU make tells make where to
look for _makefiles_ you've included; you apparently intend it to be
passed to your compiler to tell it where to look for _header files_.
That's incorrect.

I don't know anything about this software but often makefiles use a
convention of using the CFLAGS variable for compiler flags and LDFLAGS
variable for linker flags; if that works for your makefiles you could
try using:

make MATLABDIR="/Applications/MATLAB_R2014b.app" MEXEXT=mexmaci64 \
    CFLAGS=-I/usr/local/Cellar/opencv/2.4.11/include \

But, really, that's just as likely to cause other problems, as work
properly.  You should read the documentation that comes with mexopencv
and describes how to configure it, or else ask on a mailing list or
forum dedicated to that software.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]