UI interdependency problems while building Subsurface
Willem Ferguson
willemferguson at zoology.up.ac.za
Sun Oct 25 06:28:04 PDT 2020
I need some help with what looks like not a simple problem with the way
ui_ files (generated by the Qt metacompiler) interact. I have a PR
pending on the Subsurface GitHub site that gives compilation errors that
I cannot solve.
I moved the three files (TabDiveStatistics.*) located in
src/subsurface/desktop-widgets/tab-widgets to a separate directory
(src/subsurface/stats_widget) and it has brought lots of problems.
Following a suggestion of @bstoeger I renamed the three files to
lowercase, so they are (after application of the PR) located at
subsurface/stats-widget/tab_divestatistics.*
One of the three files is tab_divestatistics.ui (formerly
desktop-widgets/tab-widgets/TabDiveStatistics.ui). The Metampiler turns
tab_divestatistics.ui into a c++ header file ui_tab_divestatistics.h.
This header file, in turn, includes ui_renumber.h which resides in
subsurface/build/desktop-widgets and NOT in
subsurface/build/stats-widget (where one finds ui_tab_divestatistics).
It appears that the build script expects ui_renumber.h in stats-widget.
This, moving tab_divestatistics.ui from desktop-widgets/tab-widgets is
causing some includes to fail with a "file not found" error.
Diagramatically, the move of files is like this:
Before move of source code:
subsurface/desktop-widgets/tab/widgets/
TabDiveStatistics.h
TabDiveStatistics.cpp
TabDiveStatistics.ui
After move of source code:
subsurface/stats-widget
tab_divestatistics.h
tab_divestatistics.cpp
tab_divestatistics.ui
After build process:
subsurface/build/desktop-widgets
ui_renumber.h
subsurface/stats-widget
ui_tab_divestatistics.h
and the problem is that ui_tab_divestatistics.h cannot find
ui_renumber.h. Before moving the sourcecode, both ui_ files were in
build/desktop_widgets.
Does anyone have advice?
Kind regards,
willem
--
This message and attachments are subject to a disclaimer.
Please refer to
http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf
<http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf> for
full
details.
More information about the subsurface
mailing list