"In the world ye shall have tribulation: but be of good cheer; I have overcome the world." –John 16:33

San Pedro Garza Garcia

Day: February 28, 2013

Making QT 5.0.1 work with OpenCV 2.4.3

I have been working with QT in combination with OpenCV for several years now.  I recently had the opportunity to download the new QT 5.0.1 toolchain and QT Creator IDE.  The latest stable release of OpenCV at this writing is OpenCV 2.4.3 which I already had installed on my computer.  I generally use the prebuilt binaries whenever I can and that is what I did this time, too.  I loaded up one of my work projects, but the stuff would not work together nicely.  Builds would run just fine outside the debugger, but I gdb blew up inside QT Creator.  I had never really had that problem before and expected to get it fixed pretty quickly, but struggled for quite awhile.

In the end, as is often the case, it was something pretty trivial.  It turns out that the prebuilt binaries for OpenCV 2.4.3 use a different MinGW exception handling library (dw2) than QT 5.0.1 (sjlj).  The upshot is that I rebuilt the OpenCV libraries from the source using this specific MinGW toolchain–the one used to build QT 5.0.1.  Of course you will also need CMake to do this, but after that everything worked like a champ.

Cyrus in Isaiah

Day 556 of 1000

This is day 10 of not driving the new car.

I read Isaiah 45 today.  The prophecy of Cyrus there is amazing.  I spent some time looking at the history of all this.  The finding of the complete text of Isaiah amongst the Dead Sea Scrolls dealt a further blow to those who have tried to ascribe authorship to several authors, at least one of which would have post-dated Cyrus.  This liberal theory is based primarily on the idea that it is not possible to prophecy the future and secondary on stylistic differences.  You can see images of The Great Isaiah Scroll, 1QIsa on this page.  After having studied it some, the multiple author theory does not make a whole lot of sense to me.  Here is a pretty good, concise breakdown of the competing theories and why the single author theory makes the most sense.

Powered by WordPress & Theme by Anders Norén