Linux and QT

Source: Internet
Author: User

Statement: This article has no technical content, no reference, and pure complaints.

I wanted to create a project and use Qt in Linux. I thought it would "look amazing" and the result was really disgusting.

What I want to do is the tank war. I don't want to talk about anything else. At least the beginning, process, and end of the game should all have sound effects. As a result, this almost takes my life.

I used fedora 17, and the QT version was directly installed using the yum install QT-creator and other commands within about a month ago. Later I checked it during running, the QT version seems to be 4. 8. * The QT-creator version should be 2. 7. ).

Then I was lucky enough to find a piece of source code and run it, prompting that I could not find phonon, no such file or directory. Then my suffering started.

Various Google Answers, such as QT + = phonon, yum install libphonon4 phondev, for example, setting environment variables, such as phonon or phonon. There are countless Chinese Web pages on English pages. I read difficult English pages for a while (but it is not so painful). If I run the code, no matter which method I tried, there is only one result: no such file or diretory found. to solve this disgusting phonon problem, I spent almost two nights.
Such file or diretory found. At that time, I really didn't want to live. Various types of readmees and configuremakees are replaced with the source code in the form of tar.gz, which is compiled and installed on the local machine (more than once installed). It takes more than three hours each time. In this painful process, I suddenly hate Linux ------ maybe you still have only 1% market share so long, it's no reason, maybe you shouldn't default that every one of your users knows everything in this system, what environmental variables, what path, what source, what compilation, what configure, what make, and what gcc
-I-o-E-S-l-P and so on. In the past, I was always happy with what I wouldn't do before I succeeded. It seems like knowledge. But this time, I suddenly found that most of the time others are writing code, however, my time is indeed time-and-time environment configuration. Whenever I do something new, I will go through the dark and painful environment configuration process, suddenly, I felt like I should go back and think about it?

The external cause is not described. I have to finish this thing in a very limited time. In despair, I switched to windows7 and used the QT 5.0 installed here *, however, another error occurred. I forgot it, but Google for a long time. I found that it seems that the phonon module is not supported since 5.0, so it has never been successful? Then I went to the official website and checked the installation files of various versions. Finally, I installed the required QT and QT creator versions in strict accordance with what I wrote in a book, I thought it was over. However, I found that this was just the beginning of another hardship. Import project, compile, error, continue Google
To be honest, in this process, I really want to bring up a computer and drop it onto the ground or on the building. From then on, the world is peaceful, or I just want to jump down from this upstairs ------ it has been three days and two nights, for a phonon! I hate my teeth. Well, I am powerless after all.

The compiled paths are incorrect, and the paths such as path and includepath lib are incorrect. Then, they are set in the system environment variables. Then, they are still incorrect, and Google cannot solve the problem, I am crazy at this time.

However, I chose qt-win-opensource-4.7.2-mingw.exe and found the mingw. Then I installed the last one carefully. Then I imported the project and succeeded. At that moment, I thought I was the happiest person in the world.

I don't want to talk much about the project or the technology. I just want to think that maybe this time I can really give me a lesson. Instead of configuring the environment in Linux every day, how have you suffered? There is no need to force this kind of thing to do. There is no best. Which one can help you achieve your needs better.

I will not try the emperor's new clothes so actively in the future.

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.