wip
This commit is contained in:
@@ -81,15 +81,16 @@ qt_env.SharedLibrary("qt/python_helpers", ["qt/qt_window.cc"], LIBS=qt_libs)
|
|||||||
qt_env.Program("_text", ["qt/text.cc"], LIBS=qt_libs)
|
qt_env.Program("_text", ["qt/text.cc"], LIBS=qt_libs)
|
||||||
qt_env.Program("_spinner", ["qt/spinner.cc"], LIBS=qt_libs)
|
qt_env.Program("_spinner", ["qt/spinner.cc"], LIBS=qt_libs)
|
||||||
|
|
||||||
# Clearpilot tools
|
|
||||||
|
|
||||||
# Clearpilot
|
# Clearpilot
|
||||||
|
# Add qtwebengine to build paths
|
||||||
qt_env['CXXFLAGS'] += ["-I/usr/include/aarch64-linux-gnu/qt5/QtWebEngine"]
|
qt_env['CXXFLAGS'] += ["-I/usr/include/aarch64-linux-gnu/qt5/QtWebEngine"]
|
||||||
qt_env['CXXFLAGS'] += ["-I/usr/include/aarch64-linux-gnu/qt5/QtWebEngineCore"]
|
qt_env['CXXFLAGS'] += ["-I/usr/include/aarch64-linux-gnu/qt5/QtWebEngineCore"]
|
||||||
qt_env['CXXFLAGS'] += ["-I/usr/include/aarch64-linux-gnu/qt5/QtWebEngineWidgets"]
|
qt_env['CXXFLAGS'] += ["-I/usr/include/aarch64-linux-gnu/qt5/QtWebEngineWidgets"]
|
||||||
qt_env['CXXFLAGS'] += ["-I/usr/include/aarch64-linux-gnu/qt5/QtWebChannel"]
|
qt_env['CXXFLAGS'] += ["-I/usr/include/aarch64-linux-gnu/qt5/QtWebChannel"]
|
||||||
qt_webengine_libs = base_libs + ['Qt5WebEngineWidgets']
|
qt_webengine_libs = base_libs + ['Qt5WebEngineWidgets']
|
||||||
|
|
||||||
|
# Create clearpilot tools
|
||||||
qt_env.Program("/data/openpilot/system/clearpilot/tools/qt_shell", ["/data/openpilot/system/clearpilot/tools/qt_shell.cc"], LIBS=qt_libs)
|
qt_env.Program("/data/openpilot/system/clearpilot/tools/qt_shell", ["/data/openpilot/system/clearpilot/tools/qt_shell.cc"], LIBS=qt_libs)
|
||||||
qt_env.Program("/data/openpilot/system/clearpilot/tools/qt_webview", ["/data/openpilot/system/clearpilot/tools/qt_webview.cc"], LIBS=qt_webengine_libs)
|
qt_env.Program("/data/openpilot/system/clearpilot/tools/qt_webview", ["/data/openpilot/system/clearpilot/tools/qt_webview.cc"], LIBS=qt_webengine_libs)
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ int main(int argc, char *argv[]) {
|
|||||||
QString url = args.first();
|
QString url = args.first();
|
||||||
QWebEngineView *web_view = new QWebEngineView();
|
QWebEngineView *web_view = new QWebEngineView();
|
||||||
web_view->load(QUrl(url));
|
web_view->load(QUrl(url));
|
||||||
center_layout->addWidget(web_view);
|
layout->addWidget(web_view);
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user