Wt 4: Cannot build Dbo separately
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:
You can grep for '../' in dbo dir to see affected files (EscapeOStream.[hC], StringStream.[hC]).
Updated by Roel Standaert over 6 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.
Updated by Egor Pugin over 6 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.