Install QT-related software in RHEL4

Source: Internet
Author: User

I have been studying QT over the past few days. To learn this technology, we must first establish the software in the Linux environment. Of course, QT is not only available on the Linux platform.

 

My colleagues have installed QT virtual machines. The system is ubantu. Because I prefer to use a red hat, I decided to install the software on rhel4.0 from the beginning. After some hard work, I finally completed the installation and configuration of QT and qtcreator. To avoid forgetting this problem in the future, record the problem solving process for future reference.

 

From the Internet to the qt-4.5 version of the source code, the first problem encountered in the installation process is to decompress the software package to run./configure, check the system installation environment, the first problem is here. The system prompts that the header file of X cannot be found. The message is missing. This problem occurs because I used to build a rehl system as a server, so I did not select X software development or other development components when installing the system, the installation of QT requires the support of these components, so an error is reported during the Environment check process. It takes a lot of effort to know the reason, and it is convenient to solve the problem. You only need to select the required software in the GNOME Environment for the update system.

 

The installation process went smoothly. After three or four hours of compilation, QT was finally installed. I did not check the installed software because of other things at that time. Later, my colleague came to see that the QT version I started was 3.3, which was very strange, I suspect there is a problem with my software package, so I will delete the installed source code package, get the source code package from my colleagues again, decompress it, check, compile, install, after four hours of installation, I thought it would be okay. The qmake-V command hit me again, and the result is still 3. 3. this is a bit suspicious. The source code package is certainly no problem, because the QT running on the colleague ubantu is the source code package of this version. The installation process is correct, but after the command is entered, version 3.3 is always started, not the environment variable, so CD/usr/bin, and then ls, it turns out that qmake in this directory is a soft link to the qmake file in the bin directory of version 3.3. Although you have specified/usr/local/trolltech/Qt-4.5.3/bin in profile, the system lookup path is first located under the original path, so we started version 3.3 all the time (this version is a low version of the system, which is significantly different from the syntax and usage of qt4 ). The reason is clear, and the solution is available. Delete the original link and re-create the link file in the new version. After the creation, use qmake-V again. OK! The version is correct.

 

Next we will install QT-Creator, which is a great integrated environment. It is also easy to install. Copy the. BIN file and run it directly to install it. The installation process is also completed smoothly. But the problem lies in running qtcreator. Double-click the desktop shortcut without any response. Run the./qtcreator command directly under the binfile in the installation directory, and report the error that glibc_2.4 is required during installation. No way. It seems that you have to upgrade glibc. Upgrading is also very troublesome. Fortunately, the solution is provided online. The method is as follows:

Problem: Configure: Error: cannot find sources (include/features. h) in ..

Solution:./ConfigureThat is to say it cannot be done directly in the glibc-2.4 directory. /configure, you must create a new directory and enter the directory before proceeding. /configure, for example, re-establish a directory glibc_build to enter this directory/home/src/glibc-2.4/glibc_build, run. /configure,

The result is all normal.

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.