Windows,linux compile QT Source code (relatively simple)

Source: Internet
Author: User

First, the Linux static compilation Qt source code

1. Take the QT source and unzip to the folder

2.CD to QT Directory

3. Generate Makefile Using Configure

./configure
–prefix/opt/qtstatic–static–release-nomake Examples--nomake Demos
-nomake docs-continue

4. Execute make after execution is complete

5.makeinstall

Reference: http://www.cnblogs.com/qianyuming/archive/2011/03/09/1978747.html

Http://www.cnblogs.com/emouse/archive/2013/01/28/2880142.html

To compile the QT program you need to add the version of the QT Library to the project, and then go to the Pro project folder under the directory under the Configure file to modify the QT path for the newly compiled QT version, then compile the QT program.

Second, the compilation of Qt source under Windows, compiled with VS2010

1. Take the QT source and unzip to the folder

2. Run the VS2010 command-line tool COMMAND,CD to the QT directory

3. Execute command configure-platform win32-msvc2010-debug-and-release-fast-opensource-developer-build-confirm-license- Nomake Examples-nomake Demos-nomake Docs-nomake Translations
-no-openssl-webkit-no-qt3support

4. Execute NMAKE

Reference: http://hi.baidu.com/dbzhang800/item/44a2a427505e594647996247

Also compile QT program need to change QT version, modify the path.

Http://www.yaoguangkeji.com/a_G0ymd7a0.html

Windows,linux compile QT Source code (relatively simple)

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.