OpenCV VS 2010 C++ CMake -


i couldn't find answer simple question. have been having problems getting opencv work on computer either dev c++ or vs 2010.

my question not specifics instead cmake contributes process.

i have worked way through lot of c++ programs, learning language. however, wrote them , compiled them, no fuss, directly on dev c++ using standard includes, etc..

now wehn come try use first 3rd party set of libraries, there huge process of downloading executable, using cmake, compiling 1 of ides. me, there no wonder thing goes wrong. many steps , purpose?

ok, naive , simple programming. here questions:

why there executable if have 3 steps afterwards? sort of understand if writers have no idea compiler using; why not simple set of source codes , done it?

however, if there specific file vs 2010, why not have set way work on computer?, same way downloads vs 2010 in same format , installs itself?

finally, if sort of installer needed create directory structure (which still don't understand since zip, tar, etc. work fine), why there need cmake @ all?

i don't mind being laughed @ being stupid , missing obvious points, appreciate not having wade through quick retorts: may seem simple y'all outside, doesn't make sense. in advance, john


thanks. guess don't understand enough details of process understand why necessary. or rather, sort of understand: there different operating systems , different compilers, though coding different each, cmake understands compilers has listed , developer need figure out how write cmake. if cmake doesn't understand environment or compiler, library authors or developer has figure out how port particular environment. however, still don't understand why case of vs 2010, since opencv has particular compiler in mind, cmake necessary. however, leave alone moment , move on.

thanks again.


i think need add comment. in response question "is of issue?" think answer has yes. have wasted week trying opencv work vs 2010.

no one, microsoft websites independent blogs has been able me. have gone through sxstrace, etc. , tried has suggested. in end same problem.

so yes issue. not trying learn windows programming @ moment. nor want learn cmake intricacies @ time. .exe programs install windows have worked me. sure there exceptions there aren't. if opencv putting out special 2008.exe version, why not make work way.


by way, here output of sxstrace text file:

inizio generazione contesto di attivazione. parametro di input: flags = 0 processorarchitecture = x86 culturefallbacks = it-it;it manifestpath = c:\windows\system32\cxcore210d.dll assemblydirectory = c:\windows\system32\ application config file =

informazioni: analisi del file manifesto c:\windows\system32\cxcore210d.dll in corso. informazioni: l'identità di definizione del manifesto è (null). informazioni: riferimento: microsoft.vc90.debugcrt,processorarchitecture="x86",publickeytoken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" informazioni: risoluzione del riferimento microsoft.vc90.debugcrt,processorarchitecture="x86",publickeytoken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" in corso. informazioni: risoluzione del riferimento per processorarchitecture x86 in corso. informazioni: risoluzione del riferimento per la lingua neutral in corso. informazioni: applicazione dei criteri di binding in corso. informazioni: criteri di autore non trovati. informazioni: reindirizzamento criteri di binding non trovato. informazioni: inizio dell'esecuzione del probe dell'assembly. informazioni: assembly non trovato in winsxs. informazioni: tentativo di esecuzione del probe del manifesto in c:\windows\assembly\gac_32\microsoft.vc90.debugcrt\9.0.21022.8__1fc8b3b9a1e18e3b\microsoft.vc90.debugcrt.dll. informazioni: tentativo di esecuzione del probe del manifesto in c:\windows\system32\microsoft.vc90.debugcrt.dll. informazioni: tentativo di esecuzione del probe del manifesto in c:\windows\system32\microsoft.vc90.debugcrt.manifest. informazioni: tentativo di esecuzione del probe del manifesto in c:\windows\system32\microsoft.vc90.debugcrt\microsoft.vc90.debugcrt.dll. informazioni: tentativo di esecuzione del probe del manifesto in c:\windows\system32\microsoft.vc90.debugcrt\microsoft.vc90.debugcrt.manifest. informazioni: manifesto non trovato per la lingua neutral. informazioni: fine dell'esecuzione del probe dell'assembly. informazioni: impossibile risolvere il riferimento microsoft.vc90.debugcrt,processorarchitecture="x86",publickeytoken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8". errore: generazione del contesto di attivazione non riuscita. fine generazione contesto di attivazione.

here debug output.

'hello saturday night.exe': loaded 'c:\users\jake\documents\visual studio 2010\projects\hello saturday night\debug\hello saturday night.exe', symbols loaded. 'hello saturday night.exe': loaded 'c:\windows\system32\ntdll.dll', symbols loaded (source information stripped). 'hello saturday night.exe': loaded 'c:\windows\system32\kernel32.dll', symbols loaded (source information stripped). 'hello saturday night.exe': loaded 'c:\windows\system32\cxcore210d.dll', cannot find or open pdb file debugger:: unhandled non-continuable exception thrown during process load thread 'win32 thread' (0x1140) has exited code -1072365566 (0xc0150002). thread 'win32 thread' (0xf1c) has exited code -1072365566 (0xc0150002). program '[3688] hello saturday night.exe: native' has exited code -1072365566 (0xc0150002).

i think might misunderstand cmake benefits most. it's library authors, , reason. when authoring cross-platform library, need provide build environments different operating systems , compilers. there quite few combinations. maintaining these make-files , projects/solutions large library projects labour-intensive task, if new file has been added or removed.

cmake takes pain out of this. generates build in compiler-independent-manner, allowing authors of source code maintain single build environment. project can distributed across platforms , compilers easily.

so yes, it's step developer using library, have build once-per-release, of issue?


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -