Install the Qt platform under Fedora14

Source: Internet
Author: User
If you don't want to bother with the GUI, you can use mfc, c #, java, or even python. I chose Qt because Qt is a specialized graphic GUI platform. Unlike c #, java, python, and other languages, it comes with or extends the graphics library. MFC is not selected because it is not cross-platform. Another reason is that I prefer to work in a linux environment and open-source software. Qt has two development methods in linux. Command Line and IDE. Common ides include the official QtCreator, eclipse plug-in, and V

If you don't want to bother with the GUI, you can use mfc, c #, java, or even python. I chose Qt because Qt is a specialized graphic GUI platform. Unlike c #, java, python, and other languages, it comes with or extends the graphics library. MFC is not selected because it is not cross-platform. Another reason is that I prefer to work in a linux environment and open-source software.

Qt has two development methods in linux. Command Line and IDE. Commonly used ides include the official Qt Creator, eclipse plug-ins, and VS plug-ins. And lightweight ides such as Qdevelop and Kdevelop in linux. In linux, we will introduce Qt Creater. You can view the document on your own using the command line.

Qt SDK cannot be installed in Fedora14. The gmake step prompts that a library is not defined, and google does not find a solution, so the "Framework Only" version is installed.

First switch to the root administrator

  1. Su root

I. Install the Qt Library

1. Download the official Qt library. As of today (, the latest release of qt-everywhere-opensource-src-4.7.1.tar.gz is
2. Go to the directory where the downloaded file is located, and then:

  1. Tar-zxvf qt-everywhere-opensource-src-4.7.1.tar.gz-C/tmp


3Prepare data to build:

  1. ./Configure

"C" is a commercial version and requires a payment. "o" is an open-source version and is free of charge. Therefore, enter o.
The prompt is as follows:

Therefore, follow the prompts to install the SDK.

 

  1. Gmake
  2. Gmake install

Then the installation is complete.

Ii. Configuration path

After installation, you still have to configure the path.

  1. Vim/etc/profile

Set the following Copy and save the following code.

  1. PATH =/usr/local/Trolltech/Qt-4.7.1/bin: $ PATH
  2. Export PATH

3. Install/use Qt Creator
Download Qt Creator from the official website. As of today ) The latest version is qt-creator-linux-x86-opensource.2.0.1.bin.

Go to the qt-creator-linux-x86-opensource.2.0.1.bin directory, and then:

  1. /Qt-creator-linux-x86-opensource.2.0.1.bin

After completion:

4. Set Desktop shortcuts for Qt Creator

  1. Vim/usr/share/application/qtcreator. desktop

Copy the following code and save it.

  1. [Desktop Entry]
  2. Encoding = UTF-8
  3. Name = QtCreator
  4. Comment = Qt Creator
  5. Exec =/opt/qtcreator-2.0.1/bin/qtcreator
  6. Icon =/opt/qtcreator-2.0.1/bin/Nokia-QtCteator-64.png
  7. Terminal =False
  8. StartupNotify =True
  9. Type = Application
  10. Categories = Application; Development

Find the development Directory to find the Qt Creator.

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.