diff --git a/selfdrive/ui/SConscript b/selfdrive/ui/SConscript index e14bc21..5dc8edd 100644 --- a/selfdrive/ui/SConscript +++ b/selfdrive/ui/SConscript @@ -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("_spinner", ["qt/spinner.cc"], LIBS=qt_libs) -# Clearpilot tools # 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/QtWebEngineCore"] qt_env['CXXFLAGS'] += ["-I/usr/include/aarch64-linux-gnu/qt5/QtWebEngineWidgets"] qt_env['CXXFLAGS'] += ["-I/usr/include/aarch64-linux-gnu/qt5/QtWebChannel"] 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_webview", ["/data/openpilot/system/clearpilot/tools/qt_webview.cc"], LIBS=qt_webengine_libs) diff --git a/system/clearpilot/tools/qt_webview.cc b/system/clearpilot/tools/qt_webview.cc index e0dfa0b..9d23919 100644 --- a/system/clearpilot/tools/qt_webview.cc +++ b/system/clearpilot/tools/qt_webview.cc @@ -60,7 +60,7 @@ int main(int argc, char *argv[]) { QString url = args.first(); QWebEngineView *web_view = new QWebEngineView(); web_view->load(QUrl(url)); - center_layout->addWidget(web_view); + layout->addWidget(web_view); return app.exec(); }