Skip to content

AndreiCherniaev/Ubuntu_X11_Build_Qt_widgets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To build Qt (themself) with widgets for Ubuntu 22 (X11 windowing system). Tested with 22.04.3 LTS

Ubuntu 22 with X11

Please switch to Xorg istead of Wayland.

How switch to X11 in Ubuntu
How switch to X11 in Ubuntu

Test

echo $XDG_SESSION_TYPE

Should be x11
Then make avaliable all dev pack

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"

This is how example application looks in Ubuntu
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"

About

To build Qt (themself) with widgets for Ubuntu 22 (X11 windowing system)

Topics

Resources

Stars

Watchers

Forks