Project

General

Profile

Bug #5797

Wt 4: Cannot build Dbo separately

Added by Egor Pugin about 5 years ago. Updated about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
07/08/2017
Due date:
% Done:

0%

Estimated time:

Description

If we extract Wt/Dbo files outside of source tree (in case of separate lib compilation), build fails.

Such setup is useful for pkg managers. E.g. in such subproject structure https://cppan.org/projects/pvt.cppan.demo.emweb.wt

The error is because of relative includes in dbo files like:

#include "../../web/EscapeOStream.h"

You can grep for '../' in dbo dir to see affected files (EscapeOStream.[hC], StringStream.[hC]).

#1

Updated by Roel Standaert about 5 years ago

While the Wt::Dbo library does not depend on Wt, we do reuse some utility classes by compiling them in. I don't immediately see a solution for this apart from not using these classes (not an option) or splitting off these classes in a separate utility library, which for such a small amount of functionality is a bit ridiculous, in my opinion.

I think it's a non-goal to remove these includes. The package managers of desktop distributions, like Ubuntu, just compile all of Wt and then split of the resulting installation in separate packages. Surely you can work around this problem?

Personally, I'm not completely sold on CPPAN's approach of not using the project's build system, creating a separate definition, and using the original source tree for includes.

#2

Updated by Egor Pugin about 5 years ago

Surely you can work around this problem?

I already did. (Maybe I hurried too much with creating this ticket, sorry.)

The issue is just in case you'll rework this some time.

Personally, I'm not completely sold on CPPAN's approach of not using the project's build system...

If cppan is used as a build system for a project, then package manager will use it, so you statement won't have —Āontradictions.

Also available in: Atom PDF