I'm trying to build the latest head and I'm getting lots of errors. I'm
trying to fix them one by one but I'd like some guidance on this because
some of what I'm doing isn't right.
1. GIT_VERSION_STRING isn't defined.
compiling qt-ui/about.cpp
qt-ui/about.cpp: In constructor ‘SubsurfaceAbout::SubsurfaceAbout(QWidget*,
Qt::WindowFlags)’:
qt-ui/about.cpp:18:22: error: ‘GIT_VERSION_STRING’ was not declared in this
scope
"</span>").arg(GIT_VERSION_STRING));
I can manually edit this into ssrf_version.h but that's clearly not the
right thing to do. I can see that subsurface-gen-version.pri is supposed to
do this but I can't figure out how to invoke it.
2. Facebook related compile issues:
compiling qt-ui/maintab.cpp
In file included from qt-ui/maintab.cpp:19:0:
qt-ui/socialnetworks.h: In constructor ‘MainTab::MainTab(QWidget*)’:
qt-ui/socialnetworks.h:19:7: error: ‘void FacebookManager::justLoggedIn()’
is protected
void justLoggedIn();
^
qt-ui/maintab.cpp:189:32: error: within this context
connect(fb, &FacebookManager::justLoggedIn, ui.facebookPublish,
&QPushButton::show);
^
qt-ui/maintab.cpp:189:84: error: no matching function for call to
‘MainTab::connect(FacebookManager*&, void (FacebookManager::*)(),
QPushButton*&, void (QWidget::*)())’
connect(fb, &FacebookManager::justLoggedIn, ui.facebookPublish,
&QPushButton::show);
I can wrap the references to ::justLogged.* in SIGNAL() and the slots in
SLOT() and get past that.
3. ui_maintab.h doesn't have some of the new UI elements, like facebook so
I get errors like:
qt-ui/maintab.cpp: In constructor ‘MainTab::MainTab(QWidget*)’:
qt-ui/maintab.cpp:191:57: error: ‘class Ui::MainTab’ has no member named
‘facebookPublish’
connect(fb, SIGNAL(&FacebookManager::justLoggedIn), ui.facebookPublish,
SLOT(&QPushButton::show));
I can change the maintab.h and include "../.uic/ui_maintab.h" but that
seems wrong. Copying the .uic/ui_maintab.h also seems like it should be
done by the build.
4. More errors that might be ui_*.h related.
compiling qt-ui/mainwindow.cpp
qt-ui/mainwindow.cpp: In constructor ‘MainWindow::MainWindow()’:
qt-ui/mainwindow.cpp:143:22: error: ‘class Ui::MainWindow’ has no member
named ‘profileInnerLayout’
QLayoutItem *p = ui.profileInnerLayout->takeAt(0);
There are more, but perhaps this is one common problem, like being able to
re-create ui_*.h files.
--
John Van Ostrand
At large on sabbatical
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface