Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreicherniaev/ubuntu_x11_build_qt_widgets
To build Qt (themself) with widgets for Ubuntu 24 (X11 windowing system)
https://github.com/andreicherniaev/ubuntu_x11_build_qt_widgets
build-automation qt qtbase ubuntu x11 xorg
Last synced: about 1 month ago
JSON representation
To build Qt (themself) with widgets for Ubuntu 24 (X11 windowing system)
- Host: GitHub
- URL: https://github.com/andreicherniaev/ubuntu_x11_build_qt_widgets
- Owner: AndreiCherniaev
- Created: 2023-12-01T01:12:22.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-07T01:44:59.000Z (2 months ago)
- Last Synced: 2024-11-07T02:39:42.725Z (2 months ago)
- Topics: build-automation, qt, qtbase, ubuntu, x11, xorg
- Language: C++
- Homepage:
- Size: 62.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
To build Qt (themself) with widgets for Ubuntu 24 (X11 windowing system). See also [Building Qt 6.6 for Raspberry Pi on Raspberry Pi OS](https://www.tal.org/tutorials/building-qt-66-raspberry-pi-raspberry-pi-os) Tested with 22.04.3 LTS
## Ubuntu with X11
Please switch to Xorg istead of Wayland.
How switch to X11 in UbuntuTest
```
echo $XDG_SESSION_TYPE
```
Should be x11
## dev pack
### modern Ubuntu
Then make available all dev pack. For Ubuntu 24 and more new
```
sudo sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
```
### old Ubuntu
```
sudo nano /etc/apt/sources.list
```
and uncomment all strings with "deb-src"## Prepare
```
git clone https://github.com/AndreiCherniaev/Ubuntu_X11_Build_Qt_widgets.git
export MyBaseDir="$PWD/Ubuntu_X11_Build_Qt_widgets"
```## Build Qt themself
Install dependency
```
. "$MyBaseDir/Qt_themself/Ubuntu_dependency.sh"
```
Build Qt themself
```
"$MyBaseDir/Qt_themself/readme.sh"
```## Build example
```
export QT_DEBUG_PLUGINS=1 #usually no need, use in case of error
"$MyBaseDir/example/readme.sh"
```
example application## linuxFB
This step is optional. If you want try to run your app with linuxfb then use
```
# sudo adduser $USER video
export QT_DEBUG_PLUGINS=1
# export QT_QPA_PLATFORM=linuxfb
# export QT_QPA_EGLFS_FB=/dev/fb0
"$MyBaseDir/example/readme.sh"
```