rawproc Now Compiles with Distro Packages

I had to do a cmake build for another wxWidgets application, figured out enough about THAT mess to make a similar build system for rawproc. Along with that, I found that rawproc code I thought was so dependent on wxWidgets 3.1 actually had very little that kept from using 3.0, what Ubuntu carries in its LTS package repository. Made all the needed changes, and now if you clone the rawproc master branch you can build it with just OS package dependencies.

Well, 'cept for librtprocess. To get the goodness of RT demosaic and highlight reconstruction, you still have to download, compile, and install librtprocess. Once you’ve done that, however, all it takes is a -DLIBRTPROCESS=ON in the cmake command line and it’s automatically incorporated, thanks to the inclusion of the cmake find scripts by the librtprocess folk.

Not the case for G’MIC; if you want to link libgmic you’ll need to specify the relevant paths; the README tells you how.

Anyway, no need to download and compile wxWidgets anymore, just another package dependency.

4 Likes

nice! you know that if you have to use cmake for a reason or another, there is ExternalProject_Add or some such that allows you to clone + build a subproject within the build (i.e. would remove the need for your users to read the docs…).

1 Like

Almost went there for the initial capability, but then tried to duplicate what i do in autotools for compile/link to arbitrary directory locations, and cmake choked on everything I tried. Making librtprocess and libgmic sub-projects would be a fine thing…