install linux qt5

1. First load package qt

qt-opensource-linux-x64-5.14.1.run

 

2. Direct operation?

Up and running is no problem, but want to compile the project is not enough drops. You can try to create a project

After you create a project build, you will encounter this Could not start process "make" qmake_all problem (the middle there is a lot of words, and projects related to the path name)

Solution: sudo install APT-GET Build-Essential

 

try again? Continue error could not find -lGL

Solution: sudo install libgl1 APT-GET-Mesa-dev

 

3. Other issues

I want to use qmake -version check the installation was successful, suggesting that there is no qtchooser, follow the prompts to install later

qmake: could not find a Qt installation of ''

solution:

The first step: to delete the original link: sudo rm / usr / bin / qmake
Step two: create a new link: sudo ln -s /opt/Qt5.14.1/5.14.1/gcc_64/bin/qmake / usr / bin / qmake

 

Guess you like

Origin www.cnblogs.com/castor-xu/p/12588135.html