Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation on Ubuntu 20.04 and Linux Mint 20.1 #4

Open
mondele opened this issue Apr 23, 2021 · 0 comments
Open

Installation on Ubuntu 20.04 and Linux Mint 20.1 #4

mondele opened this issue Apr 23, 2021 · 0 comments

Comments

@mondele
Copy link

mondele commented Apr 23, 2021

After considerable experimentation (in a docker instance, to protect my machine) I got doc-browser to compile after:

sudo apt install qt5-default qtwebengine5-dev qml-module-qtlocation qml-module-qtwebengine liblzma-dev libghc-regex-pcre-dev pkg-config curl
curl -sSL https://get.haskellstack.org | sh
echo "PATH=~/.local/bin/:\$PATH" >> ~/.bashrc
. ~/.bashrc
stack install c2hs alex happy hsqml
stack install

(I did, actually, have curl installed before, but I added it for clarity.)

However, when I run doc-browser, I get an error:

$ doc-browser
wait for server slot
start new server
QGLXContext: Failed to create dummy context
QQmlExpression: Expression file:///tmp/doc-browser-gui-1439252/ui/main.qml:25:9 depends on non-NOTIFYable properties:
    ()_2::controller
file:///tmp/doc-browser-gui-1439252/ui/main.qml:353:17: QML Rectangle: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///tmp/doc-browser-gui-1439252/ui/main.qml:332:13: QML RowLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///tmp/doc-browser-gui-1439252/ui/main.qml:383:13: QML TabView: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///tmp/doc-browser-gui-1439252/ui/main.qml:214:13: QML Rectangle: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///tmp/doc-browser-gui-1439252/ui/main.qml:276:13: QML ScrollView: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///tmp/doc-browser-gui-1439252/ui/main.qml:203:9: QML ColumnLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///tmp/doc-browser-gui-1439252/ui/main.qml:325:9: QML ColumnLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
Aborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant