Skip to content

Update README.md with Ubuntu setup instructions#147

Open
orao wants to merge 1 commit into
flysight:masterfrom
orao:orao/update-readme-ubuntu-setup
Open

Update README.md with Ubuntu setup instructions#147
orao wants to merge 1 commit into
flysight:masterfrom
orao:orao/update-readme-ubuntu-setup

Conversation

@orao

@orao orao commented Aug 23, 2023

Copy link
Copy Markdown

I had trouble following the existing instructions on my Ubuntu 20.04 installation and have updated the README.md with what I found worked for me.

Please review and let me know if there is a better way to set this up.

I'm thinking that it might be worth considering including the source dependencies as submodules.

@crwper

crwper commented Oct 1, 2023

Copy link
Copy Markdown
Contributor

Sorry it's taken me so long to get to this. Lots of good stuff here. Going through this process on a new Ubuntu install, I ran into a couple of things I wanted to ask you about.

First, rather than manually copying wwWidgets libraries, would it be better to use make install, as you did later on, i.e., instead of these commands (from my original version, not your changes):

sudo cp widgets/libwwwidgets4.so /usr/lib/libwwwidgets4.so
sudo cp widgets/libwwwidgets4.so /usr/lib/libwwwidgets4.so.1

Would something like this be better?

sudo make install sub-widgets
sudo ln -s /usr/local/lib/libwwwidgets4.so /usr/lib/libwwwidgets4.so
sudo ln -s /usr/local/lib/libwwwidgets4.so /usr/lib/libwwwidgets4.so.1

Second, to clone libVLC, you use:

git clone git@github.com:vlc-qt/vlc-qt.git

Is there any advantage compared with the following commands (a bit more familiar for me)?

git clone https://github.com/lib-vlc/vlc-qt.git
cd vlc-qt

@orao

orao commented Oct 11, 2023

Copy link
Copy Markdown
Author

sudo make install sub-widgets

The make install would be better. I'm not sure if we also need the --install-prefix on the fresh Ubuntu clone but I can try it out.

Regarding the:

git clone git@github.com:vlc-qt/vlc-qt.git

The https version may be better as it doesn't require the ssh key so that's good spotting on your part.

I was also considering potentially writing a ./configure script or something similar to allow a quick setup of the repo on a Linux distro that would attempt to do these steps automatically but haven't had time to try implement it.

I have had to reinstall my OS and lost my Ubuntu install, so I have a chance to try this again fresh.

@orao orao force-pushed the orao/update-readme-ubuntu-setup branch from 1490dbf to fd74b0e Compare April 1, 2024 19:04
@orao orao mentioned this pull request Apr 1, 2024
Comment thread README.md Outdated

# WSL2 Install Ubuntu Desktop, OpenGL, and setup the DISPLAY
sudo apt install ubuntu-desktop mesa-utils
export DISPLAY=localhost:0

@orao orao Apr 1, 2024

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without mesa-utils we seg. fault somewhere in OpenGL code. After we install mesa-utils and setup the DISPLAY env. var. we get:

user@DESKTOP:~/repos/flysight-viewer-qt/build$ ./FlySightViewer
qt.qpa.xcb: could not connect to display localhost:0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted

I'm now installing ubuntu-desktop expecting it to fix the remaining issues.

@orao

orao commented Apr 7, 2024

Copy link
Copy Markdown
Author

I'm redoing these instructions on WSL2 now and I'm hitting the wslgl issue 1214 now which I need to side-step using:

export GALLIUM_DRIVER=llvmpipe

@orao orao force-pushed the orao/update-readme-ubuntu-setup branch from 71ec5a3 to 5615868 Compare April 8, 2024 16:47
@orao

orao commented Apr 8, 2024

Copy link
Copy Markdown
Author

Rebased and squashed the commits.

@orao orao force-pushed the orao/update-readme-ubuntu-setup branch from 5615868 to ab04498 Compare April 24, 2024 18:46
@crwper

crwper commented Oct 17, 2024

Copy link
Copy Markdown
Contributor

I'm slogging through this again myself on a new Ubuntu install. I'm running into trouble when making VLC-Qt, as CMake isn't able to find the Qt package configuration file. Any chance this sounds familiar?

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

Successfully merging this pull request may close these issues.

2 participants