"Big talk qt" Ctkpluginframework plug-in system under Windows compilation

Source: Internet
Author: User

The use of ctkpluginframework as a plug-in system framework does have many development advantages. Recently received some letter from the station, we all want to use ctkpluginframework but do not know how to compile, this tutorial will talk about the Ctkpluginframework plug-in system under Windows compilation process.

Preparation conditions:

1. Install git and we'll download the CTK source from it.

2. Install CMake, which we use to generate the SLN solution file under vs.

Related sites:

1. CTK's official website: http://www.commontk.org/index.php/Main_Page

2. CTK Source: Https://github.com/commontk/CTK

Compile steps:

Note: The files that appear in the following directory, as I have compiled, may be a lot more files than just downloaded, just to illustrate what the process is.

1. Git downloads the source package. Git:https://github.com/commontk/ctk.git.


2. Use CMake to open the outermost CMakeList.txt file, select the Ctkpluginframework subkey, and generate the SLn file.

After the git download is complete, its directory structure is as follows:


For example, open the CMake tool and select the CTK directory that you just downloaded, which automatically loads the sub-items according to the CMakeList.txt file, as shown in;


Select the Ctkpluginframework module, click Generate, Configure; When finished, check to see if the SLn file is generated, note: Check the ctk_enable_pluginframework of the callout here. Otherwise, the generated SLN file will not generate the final CTKPluginFramework.dll file;


3. Open the SLn file under VS2010, compile to generate CTKPluginFramework.dll and CTKCore.dll.

After you open the SLn file with VS2010, the structure looks like this:


Select all Bulid compile to generate the final CTKPluginFramework.dll, the DLL that the plug-in system applies to is the file.

Finally, the final CTKCore.dll and CTKPluginFramework.dll files and the corresponding Lib files can be generated under ctk/ctk-build/bin/debug/, and the header file will be used to build the system based on the plug-in development, as shown in:


Summarize:

        as shown above, the compilation of Ctkpluginframework is very simple, the key is to work with the business, in the project reasonable use of it, Believe it will bring unexpected benefits, especially in the face of large-scale projects, multi-person collaborative development process. How to build a project structure and how to use the plug-in development in the project, CTK's official website also has the relevant introduction, but I feel is not very clear, detailed use in the next post to write.

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.