Ask Your Question

DJUego's profile - activity

2019-01-28 23:47:03 -0600 received badge  Famous Question (source)
2018-02-07 01:11:49 -0600 received badge  Notable Question (source)
2018-01-05 11:02:50 -0600 asked a question High-end webcam: Canon XA35+elgato Camera Link

High-end webcam: Canon XA35+elgato Camera Link Hi! I have a Canon XA35. And i want to use with Open CV. So I am conside

2017-11-27 07:53:58 -0600 received badge  Popular Question (source)
2017-07-26 06:51:02 -0600 answered a question Building OpenCV with MinGW (gcc 7.1.0 and cmake 3.9.0)-> windres.exe: unknown option -- W

Hi! Thank you for your answers, guys. I can confirm that disabling precompiled headers (in CMake) works! Thank you for the hint, p310!! I am using cmake 3.9.0.

I have other problems with building but i think they are not related with this. I will open a new question about them. In a related note, What are the consequences (collateral effects) of disabling precompiled headers? Thanks in advance!

DJuego

2017-07-23 15:25:07 -0600 received badge  Student (source)
2017-07-23 14:38:00 -0600 asked a question Building OpenCV with MinGW (gcc 7.1.0 and cmake 3.9.0)-> windres.exe: unknown option -- W

Hi!

Windows 10 x64

I try to build (default options) the current opencv master (2017/07/23) in MinGW (Mingw-builds, msys2) and i get;

> make
[  2%] Built target zlib
[  5%] Built target libtiff
[  8%] Built target libjpeg
[ 16%] Built target libwebp
[ 19%] Built target libjasper
[ 20%] Built target libpng
[ 25%] Built target IlmImf
[ 31%] Built target libprotobuf
[ 32%] Built target opencv_core_pch_dephelp
[ 32%] Built target pch_Generate_opencv_core
[ 32%] Building RC object modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj
v:\MinGW-Builds\mingw64\bin\windres.exe: unknown option -- W
Usage: v:\MinGW-Builds\mingw64\bin\windres.exe [option(s)] [input-file] [output-file]
 The options are:
  -i --input=<file>            Name input file
  -o --output=<file>           Name output file
  -J --input-format=<format>   Specify input format
  -O --output-format=<format>  Specify output format
  -F --target=<target>         Specify COFF target
     --preprocessor=<program>  Program to use to preprocess rc file
     --preprocessor-arg=<arg>  Additional preprocessor argument
  -I --include-dir=<dir>       Include directory when preprocessing rc file
  -D --define <sym>[=<val>]    Define SYM when preprocessing rc file
  -U --undefine <sym>          Undefine SYM when preprocessing rc file
  -v --verbose                 Verbose - tells you what it's doing
  -c --codepage=<codepage>     Specify default codepage
  -l --language=<val>          Set language when reading rc file
     --use-temp-file           Use a temporary file instead of popen to read
                               the preprocessor output
     --no-use-temp-file        Use popen (default)
  -r                           Ignored for compatibility with rc
  @<file>                      Read options from <file>
  -h --help                    Print this help message
  -V --version                 Print version information
FORMAT is one of rc, res, or coff, and is deduced from the file name
extension if not specified.  A single file name is an input file.
No input-file is stdin, default rc.  No output-file is stdout, default rc.
v:\MinGW-Builds\mingw64\bin\windres.exe: supported targets: pe-x86-64 pei-x86-64 pe-bigobj-x86-64 elf64-x86-64 elf64-l1om elf64-k1om pe-i386 pei-i386 elf32-i386 elf32-iamcu elf64-little elf64-big elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
modules/core/CMakeFiles/opencv_core.dir/build.make:1642: recipe for target `modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj' failed
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj] Error 1
CMakeFiles/Makefile2:1512: recipe for target `modules/core/CMakeFiles/opencv_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
Makefile:162: recipe for target `all' failed
make: *** [all] Error 2

Any idea? Thanks in advance!

DJuego

2016-08-10 08:47:49 -0600 commented question Building OpenCV with MINGW-Builds gcc 6.1.0 (x86_64-win32-seh)

I have "solved" the Release Mode problem.

In detection_based_tracker.cpp

#if (defined(__cplusplus) &&  __cplusplus > 199711L) || (defined(_MSC_VER) && _MSC_VER >= 1700)
// #define USE_STD_THREADS //THIS LINE IS DISABLED/COMMENTED
#endif

However the "Debug Mode" problem persists.

DJuego

2016-07-25 04:07:23 -0600 received badge  Editor (source)
2016-07-24 17:57:57 -0600 asked a question Building OpenCV with MINGW-Builds gcc 6.1.0 (x86_64-win32-seh)

(Windows 10 64bit) Yeah. I am unable to build OpenCV from git (commit 1001b05) However i built without problem the same code with Microsoft Visual Studio 2015. :-) In "Debug mode" i have this problem (31%):

YO@MONSTRUOSO p:\Compilados\x32-x64\TRABAJO_MINGW_x64\MinGW-Builds\opencv-git\builds\debug
> mingw32-make
[  2%] Built target zlib
[  7%] Built target libtiff
[ 12%] Built target libjpeg
[ 18%] Built target libwebp
[ 22%] Built target libjasper
[ 23%] Built target libpng
[ 31%] Built target IlmImf
[ 31%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/merge.cpp.obj
In file included from v:/MinGW-Builds/mingw64/lib/gcc/x86_64-w64-mingw32/6.1.0/include/emmintrin.h:31:0,
                 from P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/cvdef.h:168,
                 from P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core.hpp:52,
                 from P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/utility.hpp:56,
                 from p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/src/precomp.hpp:49,
                 from p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/src/merge.cpp:44:
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp: In function 'void _mm_interleave_ps(__m128&, __m128&, __m128&, __m128&)':
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:572:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk0 = _mm_shuffle_ps(v_r0, v_r1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:573:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk2 = _mm_shuffle_ps(v_r0, v_r1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:574:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk1 = _mm_shuffle_ps(v_g0, v_g1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:575:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk3 = _mm_shuffle_ps(v_g0, v_g1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:577:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk0 = _mm_shuffle_ps(layer2_chunk0, layer2_chunk1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:578:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk2 = _mm_shuffle_ps(layer2_chunk0, layer2_chunk1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:579:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk1 = _mm_shuffle_ps(layer2_chunk2, layer2_chunk3, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:580:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk3 = _mm_shuffle_ps(layer2_chunk2, layer2_chunk3, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:582:12: error: the last argument must be an 8-bit immediate
     v_r0 = _mm_shuffle_ps(layer1_chunk0, layer1_chunk1, mask_lo);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:583:12: error: the last argument must be an 8-bit immediate
     v_g0 = _mm_shuffle_ps(layer1_chunk0, layer1_chunk1, mask_hi);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git ...
(more)
2015-06-10 08:23:01 -0600 answered a question Not able to build OpenCV3-RC1 with 'Debug' build type

Yes i have the same problem with OpenCV-3.0.0

My compiler is 'x86_64-5.1.0-release-win32-seh-rt_v4-rev0'. (mingw-builds 64 bits gcc 5.1.0 win32 seh) [Windows 8.1]

DJuego