Use QT in CodeBlock

Source: Internet
Author: User
Use QT-general Linux technology-Linux programming and kernel information in CodeBlock. The following is a detailed description. I have been using vim to write QT programs for a long time, especially auto-completion.
Today, when I think of CodeBlock, I downloaded it. As a result, it was really depressing that we could not create a new QT project. After google, we saw a post on a similar issue on a German Forum.
It is a templates file that modifies CodeBlock.

Find the file:
There is a wizard. script under/usr/share/codeblocks/templates/wizard/qt4.
It is.

Because my QT is not compiled by source code and is returned by apt-get, the distribution is messy and distributed according to the debian directory, however, CodeBlock is configured according to the distribution of all files in one directory, so problems may occur when creating a project.

The Directory of QT returned from apt-get is/usr/share/qt4, which must include and lib under the directory, and the include compiled by QT must be under/usr/include/qt4, the Connection Library is under/usr/lib.
After the modification, create a new project and find that there is a problem with the lib option. The prompt that lib must be a. a or a file ending with. lib is really depressing.

Write a script to automatically link the. so file.
QUOTE:

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.