Ask Your Question

Juarez_ASF's profile - activity

2014-05-08 20:46:28 -0500 asked a question Permission Denied when compiling with Qt Creator on Windows

There has been a while since I last worked with openCV on Windows and when I decided to compile a project today I found out that QtCreator has permission denied when accessing the folder containing the dll's of openCV. The awkward thing is that it compiled fine for the first time and after the second time it started giving me the permission denied error. I am able to compile through terminal, but I have to type de entire command and I'm getting tired of it. I've tryed to change permissions to the opencv/bin folder and the qtCreator.exe program, but nothing has seemed to work. What is going on?

-----------------edit: I am also able to compile it using eclipse, so I'm beggining to think that the problem is the way I'm linking the dll's. This is the .pro file:

TEMPLATE = app

CONFIG += console

CONFIG -= app_bundle

CONFIG -= qt

SOURCES += main.cpp

INCLUDEPATH += C:\Code\OpenCV\myInstall\include

LIBS += C:\Code\OpenCV\myInstall\x86\mingw\bin

I had this .pro saved here and as far as I remember it was suposed to work

2014-04-08 17:22:04 -0500 received badge  Editor (source)
2014-04-08 17:13:07 -0500 commented question Missing .hhp files after installing with Cmake + minGw

Another thing akward is that "/cygdrive/". I'm not sure, but this seems to be related to cygwin. I belived to be using only minGW, though. God! Such a hard time installing it! My binnaries from the first installation worked on this other computer, but i wanted to install it from zero in order to make sure that I mastered it.

2014-04-08 17:05:58 -0500 commented question Missing .hhp files after installing with Cmake + minGw

I successed on one computer then went to install into my friend's computer and again i'm meeting an error when trying to install. here it is: CMake Error at cmake_install.cmake:31 (FILE): file INSTALL cannot find "/cygdrive/c/OpenCV/build/C:/OpenCV/build/opencv2/opencv_modules.hpp".

I don't remember my previous installation having this C: directory. Indeed there is no such 'opencv_modules.hpp' file at this folder, but why is this 'C' file there at first place? What is going on?

2014-04-08 13:30:02 -0500 commented question i can't install on ubuntu 10.04 x64. i install latest version.

If you are on Linux, you don't have to bother compiling it by yourself unless you have a really good reason. If this is your case, you should try "sudo apt-get install libopencv-dev" or maybe "sudo apt-get install libopencv*" if connection is not a problem.

2014-04-08 13:23:00 -0500 commented question Missing .hhp files after installing with Cmake + minGw

hahaha that's actually a really good tip. Thank you.

2014-04-08 12:40:46 -0500 commented question Missing .hhp files after installing with Cmake + minGw

Well, I've figured it out about half an hour after posting it here but I wasn't allowed to answer my own question, since I'm new here. You are correct, I didn't hit install, although the command I used wasn't exactly the one you suggested. After running mingw32-make you ought to run "cmake -P cmake_install.cmake" at the build folder. After this it was generated C:\OpenCV\build\install\include\opencv2, which is the folder with the headers I was looking for.

2014-04-08 11:29:55 -0500 asked a question Missing .hhp files after installing with Cmake + minGw

I've followed a couple of tutorials in order to install OpenCV under windows and everything went fine. The problem is that after installation I don't have the headers that I was expecting to have under build/opencv2, such as "opencv2/highgui/highgui.hpp" and "opencv2/opencv.hpp". At this folder I only found "opencv_modules.hpp". Opening this file I see something like:

define HAVE_OPENCV_CALIB3D

define HAVE_OPENCV_CONTRIB

define HAVE_OPENCV_CORE ...

Also, the build examples are working, so I know that the libraries have been successfully build. I have lots of .ddl files at /build/bin and lots of .ddl.a at /build/lib. Why am I missing the headers? If the library is somehow build, how to compile a project that includes openCV?

I have been using OpenCV for a while but only on Linux. Now I need to compile it on windows and I'm finding everything much more complicated.


EDIT:

well, it turns out that I was not running the install process. After hitting "cmake -P cmake_install.cmake" the folder with the headers i was looking for was generated. After this I tryed to install opencv at a friend's machine and found another problem:

CMake Error at cmake_install.cmake:31 (FILE): file INSTALL cannot find "/cygdrive/c/OpenCV/build/C:/OpenCV/build/opencv2/opencv_modules.hpp".

I don't remember my previous installation having this ".../C/...": directory. Indeed there is no such 'opencv_modules.hpp' file at this folder, but why is this 'C' file there at first place? What is going on?

Another thing akward is that "/cygdrive/". I'm not sure, but this seems to be related to cygwin. I belived to be using only minGW, though. God! Such a hard time installing it! My binnaries from the first installation worked on this other computer, but i want to install it from scratch in order to make sure that I mastered it.