Installing PYQT5 Part3

Source: Internet
Author: User

Trouble constantly, fix one after another.

After installing SIP, open visual Studio x64 Win64 Command Prompt (2010), cut to the PyQt5.0 source directory, run configure.py, this thought can proceed smoothly, the results as shown:

Checked, said the PYQT source does not contain the QT part, need to download separately, Qt-opensource-windows-x86-msvc2010-5.5.0.exe

After the download is finished running configure.py again, still reported the above error, it seems necessary to manually put C:\Qt\Qt5.5.0\5.5\msvc2010\bin into the environment variable path

Run configure.py again, the good news is not to report the above error, the bad news is reported in the following error:

Follow the prompts plus the--verbose parameter to run once to get detailed error information

It appears to be another 32-bit NMAKE and 64-bit NMAKE problem, 64-bit not decisive start 32-bit Visual Studio Command Prompt (2010)

Run configure.py with the following error message:

Good you old goblin, endless. The main idea is that the PYQT5 protocol is incompatible with the QT protocol.

See the license section of PYQT5 official website:

PYQT5 is dual licensed on all platforms under the Riverbank commercial License and the GPL v3. Your PYQT5 License must is compatible with Your Qt license. If you use the GPL version then your own code must also use a compatible license.

PYQT5, unlike Qt, is not available under the LGPL.

Quote another person's findings:

There are three licensing protocols in Qt 4.5, the GPL, LGPL and commercial, and many people may ask why the same kind of licensing agreement is most appropriate for the same product that provides three license agreements. Here I would like to explain briefly:

The full name of the GPL is the GNU General public License, which is currently the majority of the GNU program and more than half of the free software used by the license agreement. The starting point of the GPL is the code of open source/free use and citation/modification/derivative code of Open source/free use, but does not allow the modification and derivative of the code to be released and marketed as closed source commercial software.
The main content of the GPL agreement is that the SOFTWARE product must also be licensed under the GPL, both open source and free, as long as it is used in a software ("Use" refers to a class library reference, modified code or derivative code) of the GPL-based product. This is known as "contagious". GPL products are used as a standalone product without any problems and can also enjoy the benefits of free.

Returning to LGPL, LGPL's full name is the more permissive public license for the GNU Lesser General publicly License,gnu, also a license issued by the Free Software Foundation, an open-source protocol designed primarily for use in class libraries, And the GPL requires that any software that uses/modifies/derives from the GPL library must be different from the GPL agreement. LGPL allows commercial software to use the LGPL class library through the Class Library Reference (link) without the need for code for open source commercial software. This allows open source code with the LGPL protocol to be referenced and published and sold as a class library by commercial software.

In addition to the GPL and LGPL two open source agreements, Qt also provides the commercial commercial agreement, QT's commercial agreement is defined by Nokia, signed by Nokia and the buyer, has the legal effect of the QT product license agreement. Commercial license and GPL and LGPL provide more flexibility for commercial customers, and customers can modify QT source code and develop commercial software without exposing any source code. And, in commercial license, we also provide technical support services. Of course, a commercial license agreement is required.

When do you need to choose the GPL and LGPL? One of the most obvious reasons is that they are free, there is no need to pay for the use of LGPL and GPL version of QT, of course, we will not provide technical support accordingly. If you're going to develop real open source software, and you want users to be able to keep open source, then the GPL is a better choice because everyone, whether yourself or in the future, will have to open source for re-development based on your code. If you are going to develop a closed source (non-open source) commercial software, then LGPL is more suitable, but must meet the following two conditions:
1. Your application should dynamically link the QT function library and publish your application separately from the LGPL library that has not been modified. It is also important to ensure that the user (recipient) knows that the application uses the LGPL version of QT;
2. If you make any changes to the LGPL version of QT and publish it, you must follow the LGPL terms. Any user has the right to get these modifications (usually the source code) and to make sure that the user can generate the QT version that you modified by using these modifications.

It is believed that there is a basic understanding of the three types of protocols provided by QT, and there is usually a question about how much of the functionality of Qt products based on the three license agreements is different, and whether the commercial version will be more complete and performance better. Here I can responsibly say: 99% of the code is the same, whether it is the GPL, LGPL or commercial, features, performance is not different, the only difference is the licensing agreement.

It is also important to note that because LGPL is introduced in this version of Qt4.5, the previous QT version, 4.4 or 3.x version, does not provide LGPL protocol, is irreversible. At the same time, the release of the QT version in the future will always provide three different versions of the license agreement.

PYQT use of GPL,QT to be compatible with the GPL must be used (of course, both have a commercial version, but the cock silk otaku can not afford, do not consider. ), meaning that the QT protocol in front of the elder brother is LGPL, and the GPL has to be re-signed.

But there's a question that I didn't see anywhere on the QT page. What distinguishes the GPL from the LGPL and the commercial version, is this another big hole? Forget it, come here today, not too early, and tomorrow.

Finally, summarize the installation sequence.

1.python3.4

2.SIP

3.qt5.5.0

4.pyqt5.0

Installing PYQT5 Part3

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.