Ask Your Question

Coisadas's profile - activity

2018-08-28 05:12:21 -0600 received badge  Popular Question (source)
2015-11-12 16:33:26 -0600 received badge  Enthusiast
2015-09-22 09:22:55 -0600 commented question Problem with opencv_contrib

I'm using Fedora 22 and write the code with C++. I disabled that module and the problem is solved! How can I figure out that the DNN module were causing this problem? :/

Thank you @berak!

2015-09-20 13:59:27 -0600 asked a question Problem with opencv_contrib

Hello

I'm working with OpenCV 3.0 without problems.

Now I'm trying follow the Features2D tutorials (using tools like SURF).

I installed the opencv_contrib without problems, as in the README.

After installed it, I make my project and the there is no erros.

But when I execute the program, is showing "Segmentation fault (core dumped)". It happens even if I re-make other project, which were working before I add the opencv_contrib (which doesn't use the xfeatures2d).

If I cmake OpenCV again, without the opencv_contrib path, I can re-make the projects again and they works ( unless the project which need the xfeatures2d).

How can I solve it?

2015-09-18 13:56:55 -0600 received badge  Supporter (source)
2015-09-17 20:24:03 -0600 answered a question Howto cmake opencv in Raspian

I think this site could help you http://robertcastle.com/2014/02/insta...

2015-09-06 17:16:07 -0600 commented answer OpenCV & ZBar scanning

Hi @bilow probably you should add this line

#include <opencv2/opencv.hpp>
2015-08-23 17:28:39 -0600 commented question OpenCV with gcc and CMake: Cannot find source file

@sturkmen Yes, I did but didn't work to

2015-08-23 17:15:53 -0600 commented question OpenCV with gcc and CMake: Cannot find source file

The problem was the name!

The white character after the .cpp.

I will never see that detail.

Thank you @LBerger for your time!

2015-08-23 16:44:59 -0600 commented question OpenCV with gcc and CMake: Cannot find source file

I call cmake in the same directory where are CMakeLists.txt and DisplayImage.cpp.

[doliveira@localhost OpenCV_tests]$ ll
total 8
-rwxrwxr-x. 1 doliveira doliveira 239 Ago 23 22:11 CMakeLists.txt
-rwxrwxr-x. 1 doliveira doliveira 478 Ago 23 11:57 DisplayImage.cpp 
[doliveira@localhost OpenCV_tests]$ cmake .
CMake Error at CMakeLists.txt:5 (add_executable):
  Cannot find source file:

    DisplayImage.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx

-- Generating done
-- Build files have been written to: /home/doliveira/Documentos/OpenCV_tests

How can I sprecifie the directory of DisplayImage.cpp in the CMakeLists.txt?

It's really weird.

2015-08-23 16:09:03 -0600 commented question OpenCV with gcc and CMake: Cannot find source file

I changed the CMakeLists.txt with your code and there is the result:

CMake Error at CMakeLists.txt:9 (ADD_EXECUTABLE):
  add_executable called with incorrect number of arguments

CMake Error at CMakeLists.txt:12 (target_link_libraries):
  Cannot specify link libraries for target "DisplayImage" which is not built
  by this project.

-- Configuring incomplete, errors occurred!

What's that meaning?

The folder where I execute cmake . is that

[doliveira@localhost OpenCV_tests]$ ll
total 8
-rwxrwxr-x. 1 doliveira doliveira 239 Ago 23 22:10 CMakeLists.txt
-rwxrwxr-x. 1 doliveira doliveira 478 Ago 23 11:57 DisplayImage.cpp 
[doliveira@localhost OpenCV_tests]$
2015-08-23 15:09:23 -0600 commented question OpenCV with gcc and CMake: Cannot find source file

Yes, the name are the same. I just copied it from the tutorial

My CMakeLists.txt

cmake_minimum_required(VERSION 2.8)
project( DisplayImage )
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
add_executable( DisplayImage DisplayImage.cpp )
target_link_libraries( DisplayImage ${OpenCV_LIBS} )
2015-08-23 12:51:41 -0600 asked a question OpenCV with gcc and CMake: Cannot find source file

Hello I installed OpenCV in Fedora 22 using this tutorial.

Now I'm following this example but CMake cannot find source file.

The CMakeLists.txt and DisplayImage.cpp are in the same directory.

[doliveira@localhost OpenCV_tests]$ cmake .
        -- The C compiler identification is GNU 5.1.1
        -- The CXX compiler identification is GNU 5.1.1
        -- Check for working C compiler: /usr/lib64/ccache/cc
        -- Check for working C compiler: /usr/lib64/ccache/cc -- works
        -- Detecting C compiler ABI info
        -- Detecting C compiler ABI info - done
        -- Detecting C compile features
        -- Detecting C compile features - done
        -- Check for working CXX compiler: /usr/lib64/ccache/c++
        -- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
        -- Detecting CXX compiler ABI info
        -- Detecting CXX compiler ABI info - done
        -- Detecting CXX compile features
        -- Detecting CXX compile features - done
        -- Configuring done
        CMake Error at CMakeLists.txt:5 (add_executable):
              Cannot find source file:
                DisplayImage.cpp
          Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
          .hxx .in .txx
    -- Generating done
    -- Generating done
    -- Build files have been written to: /home/doliveira/Documentos/OpenCV_tests

There is some problem with CMake or OpenCV instalation?

Some info: cmake version 3.2.2 and OpenCV 3.0.0

Thank you