Project

General

Profile

Minimalistic installation of wt::dbo (without any other part of wt, without boost)

Added by Dave Far almost 6 years ago

Hi, I would like to use only wt::dbo without any other part of wt in my project.

I successfully followed https://redmine.webtoolkit.eu/projects/wt/wiki/Installing_Wt_on_Mac_OS_X_Yosemite to install wt. However, I would prefer to integrate wt::dbo into my cmake project as lightly as possible.

Is it possible to only build wt::dbo, i.e. without any other part of wt, and thus also without boost? That would be great, since much faster and lighter. How is it possible?

David


Replies (1)

RE: Minimalistic installation of wt::dbo (without any other part of wt, without boost) - Added by Wim Dumon over 5 years ago

Hi Dave,

We don't explicitly support this, but there may be some tricks to help you.

Dbo does not rely on the wt libraries, so it is possible to use dbo without wt. It is not possible to build dbo without boost, but it is probably possible to use it without having the boost headers and libraries installed. The wt4 dbo libraries (.so files) don't rely on boost.

Two ways to build and use dbo libraries without wt:

  1. Run cmake for the entire Wt project, change to the src/Wt/Dbo directory in your build directory and type 'make'. Manually copy over the libraries and headerfiles to wherever you want.
  2. Run cmake for the entire project, build the entire project, type make install, and extract the minimal set of header files to make Dbo work.

The Dbo header files are the files located in the dbo directory, as well as WConfig.h, which is generated by cmake and contains defines related to the specific configuration of your library.

Obviously, the traits file that contains trait information for Wt types (WtSqlTraits.h: WString, WDate, ...) does rely on Wt, but if you don't use it, it will not cause any compile or link problems.

Best regards,

Wim.

    (1-1/1)