跳转至

Qt-Ubuntu

Get and Install Qt

delete

Text Only
1
2
3
rm -rf ~/.config/QtProject*
rm -rf ~/.local/share/QtProject*
rm -rf ~/.cache/QtSoftware*

qmake

Text Only
1
2
eric@fantasy:~$ which qmake
eric@fantasy:~$ 

pkg-config --libs --cflags QtCore

Text Only
1
2
3
4
5
eric@fantasy:~$ pkg-config --libs --cflags QtCore
Package QtCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtCore.pc'
to the PKG_CONFIG_PATH environment variable
Package 'QtCore', required by 'virtual:world', not found

find /etc/xdg -name "qt.conf"

Text Only
1
eric@fantasy:~$ find /etc/xdg -name "qt.conf"

dpkg -L qtbase5-dev

Text Only
1
2
3
eric@fantasy:~$ dpkg -L qtbase5-dev
dpkg-query: package 'qtbase5-dev' is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.

dpkg -L qtbase6-dev

Text Only
1
2
3
eric@fantasy:~$ dpkg -L qtbase6-dev
dpkg-query: package 'qtbase6-dev' is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.

find / -name "qmake" 2>/dev/null

Text Only
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
eric@fantasy:~$ find / -name "qmake" 2>/dev/null
/home/eric/software/Qt/Examples/Qt-6.9.0/qmake
/home/eric/software/Qt/6.9.0/Src/qtbase/coin/instructions/qmake
/home/eric/software/Qt/6.9.0/Src/qtbase/qmake
/home/eric/software/Qt/6.9.0/Src/qtbase/qmake/doc/snippets/qmake
/home/eric/software/Qt/6.9.0/Src/qtbase/examples/qmake
/home/eric/software/Qt/6.9.0/Src/qtbase/tests/auto/tools/qmake
/home/eric/software/Qt/6.9.0/gcc_64/bin/qmake
/home/eric/software/Qt/Tools/QtCreator/share/qtcreator/templates/wizards/projects/qmake
/home/eric/software/Qt/Tools/QtDesignStudio-4.8.0-preview/share/qtcreator/templates/wizards/projects/qmake
/home/eric/software/Qt/Tools/QtDesignStudio-4.8.0-preview/qt6_design_studio_reduced_version/bin/qmake
/home/eric/software/Qt/Docs/Qt-6.9.0/qmake
Text Only
1
2
export PATH=/home/eric/software/Qt/6.9.0/gcc_64/bin:$PATH
export PATH=/home/eric/software/Qt/6.9.0/gcc_64/bin${PATH:+:${PATH}}
Text Only
1
2
QT_DIR=c:\local\Qt\6.9.0\msvc2022_64\lib\cmake\
QT_DIR=/home/eric/software/Qt/6.9.0/gcc_64/lib/cmake

c:\local\Qt\6.9.0\msvc2022_64\bin\windeployqt.exe .\Debug\SimpleQtApp.exe

Text Only
1
PS D:\work\qt_2025_work\simple\01\build> c:\local\Qt\6.9.0\msvc2022_64\bin\windeployqt.exe .\Debug\SimpleQtApp.exe