Project

General

Profile

Actions

Bug #5797

open

Wt 4: Cannot build Dbo separately

Added by Egor Pugin almost 7 years ago. Updated almost 7 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]).

Actions #1

Updated by Roel Standaert almost 7 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.

Actions #2

Updated by Egor Pugin almost 7 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.

Actions

Also available in: Atom PDF