[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Using OpenCV in Octave for Windows
From: |
Tatsuro MATSUOKA |
Subject: |
RE: Using OpenCV in Octave for Windows |
Date: |
Thu, 3 Jun 2010 08:42:22 +0900 (JST) |
Hello
--- Hennecke Marcus wrote:
> Wow, this list is great! Thanks for the quick replies and sorry for not
> getting back sooner, I
> was actually out of the city.
>
> > -----Original Message-----
> > From: Benjamin Lindner [mailto:address@hidden
> > Sent: Tuesday, June 01, 2010 2:44 PM
> > > I have a quick look at
> > > http://sourceforge.net/projects/opencvlibrary/files/.
> > >
> > > Did you install this ?
> > > OpenCV-2.1.0-win32-vs2008.exe
>
> Thank you very much for looking into this!
>
> Yes, this is the installer I used.
>
> > I had a quick glance on OpenCV-2.1.0-win32-vs2008.exe, but
> > I'm not familiar with cmake, and couldn't quite find out how
> > the octave wrappers are supposedly being built (I thought I
> > might just manually do this).
> > They provide dlls, import libs and include files, but all in
> > msvc style.
> > [...]
> > I also tried recreating the nnn_wrap.cpp files from the
> > opencv-2.1.0 sources using swig, but here swig stops with a
> > syntax error in its own libraries/headers ?!?
>
> Wow, thanks for trying all of this! Thus far I had only searched the Internet
> and various
> mailing lists and support forums but not yet actually tried compiling it. I
> was hoping I could
> get by with precompiled binaries.
> > From: Tatsuro MATSUOKA [mailto:address@hidden
> > Sent: Tuesday, June 01, 2010 12:07 PM
> >
> > If so, you should build the OpenCV from source using the
> > MinGW GCC-4.4.0 (Because the current
> > octave/mingw32 built by GCC-4.4.0.
> >
> > See
> > http://opencv.willowgarage.com/wiki/MinGW
I have tried to build OpenCV using the Cmake for Windows.
I have used OpenCV-2.1.0-win.zip, which includes build kits using the cmake.
I have found the following in the CMakeLists.txt in the source root folder.
set(BUILD_OCTAVE_SUPPORT OFF CACHE BOOL "Build with Octave support")
I have modified 'BUILD_OCTAVE_SUPPORT OFF' to 'BUILD_OCTAVE_SUPPORT ON'.
I have used -G "Msys Makefile" option on the Msys prompt in the following
Note that symbol '#' is comment character.
************************
# add cmake path
export PATH=$PATH:/c/Programs/cmake-2.8.1-win32-x86/bin
# I have put cmake source root D:\usr\Tatsu\mingwhome\tools\OpenCV\OpenCV\OpenCV
# and "D:\usr\Tatsu\mingwhome\tools\OpenCV\OpenCV-2.1.0-build" is used for
build folder
cd "D:\usr\Tatsu\mingwhome\tools\OpenCV\OpenCV-2.1.0-build"
cmake -G "MSYS Makefiles" ../OpenCV-2.1.0
***********************
I have found in the OpenCV-2.1.0-build/CMakeCache.txt
########################
# EXTERNAL cache entries
########################
:
:
//Build with Octave support
BUILD_OCTAVE_SUPPORT:BOOL=ON
It seemed to get the octave support.
The 'Makefile' for the Msys environments generated.
After the I execute 'make' command at the Msys promt
However, unfortunately it was failed the sjlj exception handling in the
building third party
dependencies.
The current the GCC-4.4.0 and 4.5.0 on the MinGW site use the dwarf2 exception
handling but not the
sjlj handling.
The further modification might be required in the CMakeLists.txt.
The above are what i have tried the yesterday night. Perhaps to solve the
exception handling problem
is not easy task.
Please ask further in the OpenCV ML or forum.
Regards
Tatsuro
> This is a good idea. I will try it and report back.
>
> Thanks again!
>
> Best regards,
> Marcus
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
--------------------------------------
2010 FIFA World Cup News [Yahoo!Sports/sportsnavi]
http://pr.mail.yahoo.co.jp/southafrica2010/