Building opencv in parallel with mingw (using cmake-gui)
Is this possible with tdm-gcc 4.9? And where do I have to set which option in CMake-GUI (-jN)?
Is this possible with tdm-gcc 4.9? And where do I have to set which option in CMake-GUI (-jN)?
Found it ... (at last!) in cmake: CMAKE_CODEBLOCKS_MAKE_ARGUMENTS
Asked: 2017-08-28 05:11:44 -0600
Seen: 641 times
Last updated: Aug 29 '17
OpenCV 2.4.3 MinGW cannot run program
which mingw compiler is used to create the pre-build libs in 2.4.3 release
OpenCV 2.4.4 with OpenNI2 using MinGW
Recompile OpenCV 1.1 for 64 bit Windows 7
Problems with compiling program x86 using opencv on windows 7 x64 [closed]
OpenVC 2.4.5, eclipse CDT Juno, MinGW error 0xc0000005
the
-j4
option should go into yourmake
line, not into the cmake one(cmake-gui itself needs only 1 thread)Yes, I know that. My question is HOW and where to insert the -jN-Option. As cmake builds the make files, this should be the place to insert the option. But I didn't find where. (Sorry, I didn't saw your comment earlier, as I only looked for the answered-flag).
this option is usually not part of the makefile, but you invoke make like
Thankyou again. Still we're misunderstanding ... I try to explain: cmake generates the makefiles (and in my case the codeblock project file that executes the makefile). The makefile is 92 kB, the c:b project file is about 800 kB. I cannot image that it is necessary to change the makefile itself. (cmake generated file: DO NOT EDIT! Generated by "MinGW Makefiles" Generator, CMake Version 3.8). I can only imagine that there is a simple option in cmake. I searched, tried, ... but was not successful. What exactly do I have to do to let build opencv mulithreaded? (Actually for me it seems only natural to do so, as single-threaded it takes very long to build it anew. So one should think everybody should do this ...???)
ah, i don't see any point in using code-blocks to build the opencv libs. especially, if you're using plain unix makefiles.
just run
make -j4
from the cmdline in your build folder.(... while my 8 horses have been busy ... ;-)) ... ). The point is I'm still a newby to open source toolchains (coming from convenient M$), and having decided for c:b, and then needed opencv, and for that cmake, cmake found the c:b toolchain and suggested to build project-files for that.
^^ yea, good luck !