CentOS 6.5 Installation qt5.2

Source: Internet
Author: User
Tags gdb debugger

2. Install update gcc, g++ compiler, GDB debugger
#yum-y install gcc gcc-c++ gdb

#yum install g++

 

3. Installing the QT5.2 SDK development tool
A) Download the Qt5.2 SDK:
Http://releases.qt-project.org/qt5/5.2/qt-linux-opensource-5.2-x86-offline.run

b) Installation
#chmod 777 Qt-linux-opensource-5.2-x86-offline.run
#./qt-linux-opensource-5.0.1-x86-offline.run

4) Open QT Creator IDE tool, create a new QT Widgets application project, run the hint LDGL not found.
Installation (2 OpenGL core Libraries)
#yum Install Mesa-libgl-devel Mesa-libglu-devel
Once the installation is complete, the form interface appears successfully.


#yum Install Mesa-libgl-devel Mesa-libglu-devel

#yum install libgl1-mesa-dev libglu1-mesa-dev

Problems that may occur:

Installation completed according to the installed graphical interface, prompt error: glibcxx_3.4.15 not found
Can see no glibcxx_3.4.15 this version, download a new version
Http://ftp.de.debian.org/debian/pool/main/g/gcc-4.7/libstdc++6_4.7.2-5_i386.deb
c) Unzip the file
#tar-X Libstdc++6_4.7.2-5_i386.deb
#tar-ZXVF data.tar.gz
Unzip the generated USR folder into the Usr/lib/i386-linux-gnu directory
#cd Usr/lib/i386-linux-gnu
Copy the libstdc++.so.6.0.17 file to the/usr/lib folder
#cp Libstdc++.so.6.0.17/usr/lib
Enter the/usr/lib folder to create a new soft link
#ln-SF libstdc++.so.6.0.17 libstdc++.so.6
Check Again
#strings/usr/lib/libstdc++.so.6 | grep GLIBC

found that the glibcxx_3.4.15 had appeared.

CentOS 6.5 Installation qt5.2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.