It seems I am a little bittle late to the party and you were already
pointed to BUILD_SHARED_LIBS in the OpenCV build setup. But I want to
add something.
> I am compiling the current master (f0bd675c42 from 2014-12-17)
> successfully, and i get two DLLs. I can run all of the tools _after_ i copy
> 6 dlls[1] from mingw and opencv into that same directory.
>
> My DLLs are 170 and 100KB in size. Which is why probably, why i have to do
> the copying in the first place. I have noticed that the
> psmoveapi_tracker.dll in the provided builds of 3.0.0 is much larger than
> mine. My guess would be static linking of the external libs.
Correct, the libs were linked statically in these builds.
But it is not required to statically link OpenCV. The reason why you had
to copy the DLLs was most likely a missing entry in the PATH environment
variable. The DLLs were simply not found. Copying them into the
executable's dir works because this is a default path to search for them.
So, instead of statically linking you could also add the directory
containing the OpenCV DLLs to your PATH variable and this should work.
Alex