help-octave
[Top][All Lists]
Advanced

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

Re: To many questions


From: Paul Kienzle
Subject: Re: To many questions
Date: Mon, 9 Aug 2004 06:49:38 -0400


On Aug 9, 2004, at 6:32 AM, Soren Hauberg wrote:

1) So what type is used in as element type in an octave matrix? Is it double?

yes.

2) When I compile using mkoctfile I need to pass some flags to the compiler in order to link with OpenCV, which is the library I need to use. In order to compile a OpenCV project I usualy do:

g++ -Wall `opencv-config --cflags` `opencv-config --libs` -o myfile myfile.cc

But do I do this with mkoctfile?
opencv-config --cflags returns "-I/opt/OpenCV/include/opencv" and opencv-config --libs returns "-L/opt/OpenCV/lib -lopencv -lcvaux -lhighgui" so I tried

mkoctfile -IDIR/opt/OpenCV/include/opencv -LDIR/opt/OpenCV/lib -lLIBopencv -lLIBcvaux -lLIBhighgui myfile.cc

Does the following work?

        mkoctfile `opencv-config --cflags` myfile.cc `opencv-config --libs`

Otherwise, you should be able to do:

mkoctfile -I/opt/OpenCV/include/opencv myfile.cc -L/opt/OpenCV/lib -lopencv -lcvaux -lhighgui

- Paul



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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