Ask Your Question
1

Opencv for Windows 8 Tablet

asked Mar 21 '13

UserOpenCV gravatar image

updated Oct 5 '0

I need to develop an application for Windows 8 tablet where I am in a need to use opencv. Is it possible to use opencv for windows 8 tablet environment. And can I get some useful links on it?

Preview: (hide)

2 answers

Sort by » oldest newest most voted
7

answered Mar 21 '13

updated Mar 26 '13

OpenCV development team is working on port for Windows RT. Here is current development branch for WinRT. You can build it for ARM using Visual Studio Express for Windows 8 and Platform SDK (ARM versions of run time libraries are needed).

  1. Open Visual Studio development console.
  2. Setup environment for cross compilation by command "C:\Program Files\Microsoft Visual Studio 11.0\VC\bin\x86_arm\vcvarsx86_arm.bat"
  3. cd <opencv_source_dir>/platforms/winrt/
  4. run scripts/cmake_winrt.cmd
  5. run ninja

Alternatively you can use nmake instead ninja. You need to edit cmake_winrt.cmd and change project generator fro -GNinja to -G "NMake Makefiles". Only algorithmic part of the library is supported now, no tbb, no UI, no video IO.

Preview: (hide)

Comments

Hi, I'm new to building stuff from source, I'm getting error while linking it. http://pastebin.com/XWrJ0ADS the link contains the error details..
Actually I did this using "vcvars32.bat", but when I did it using "vcvarsx86_arm.bat" it gave me http://pastebin.com/m3RBvX4p.

It would be really nice if you can help through this.

jaydeep17 gravatar imagejaydeep17 (Mar 24 '13)edit

It look like arm versions of run time libraries are missing on your computer. You need to install the latest platforf SDK.

I have the latest platform SDK v8.0a installed.

jaydeep17 gravatar imagejaydeep17 (Mar 26 '13)edit

I update branch on github. Try it again. Also, I Use CMake 2.8.10.2. Try to update it.

I'm using CMake 2.8.10.2, I downloaded the updated zip, but still getting linking error in opencv_highgui244d.dll.

jaydeep17 gravatar imagejaydeep17 (Mar 26 '13)edit

Hi~ the build is not generated correctly. In inclue Folder, opencv, opencv2 Folder not maked So error occurs. 'opencv2/core/core_c.h': No such file or directory d:\opencv\opencv-winrt\include\opencv\cv.h

It would be really nice if you can help through this.

gang gravatar imagegang (Mar 27 '13)edit

What branch do you try to build? The right one is winrt.

bulid completed winrt. but windows runtion component Project error import dlls & libs

gang gravatar imagegang (Mar 27 '13)edit

after build, do we have to install it or something ? because the include folder doesn't contains the header files.

jaydeep17 gravatar imagejaydeep17 (Mar 27 '13)edit

It is development branch. It is experimental and some features may not work. Installation can work incorrectly, I try to fix this issue in day or two. You need to do it manually.

1

I agree that this is a development branch, but can you please instruct us where to find the include files, to get started.

jaydeep17 gravatar imagejaydeep17 (Mar 27 '13)edit
0

answered Jan 18 '14

Ettore gravatar image

Hi! Sorry for the trivial question but I'm having real problem with the build. Where should I run the scripts (scripts/cmake_winrt.cmd)? From <opencv_source_dir>/platforms/winrt/ (so >..\scripts/cmake_winrt.cmd) or in a new console?

In the first case I have to edit cmake_winrt.cmd changing the last line from cmake.exe ... -DCMAKE_TOOLCHAIN_FILE=..\winrt\arm.winrt.toolchain.cmake ..\ ..

to

cmake.exe ... -DCMAKE_TOOLCHAIN_FILE=..\winrt\arm.winrt.toolchain.cmake ..\ ..\ ..

otherway it can't find CMakeLists.txt But after I have maked this I got a lot of "Missing variable" from CMake

Preview: (hide)

Question Tools

Stats

Asked: Mar 21 '13

Seen: 4,607 times

Last updated: Jan 18 '14