Difference between revisions of "Create your first Fcitx addon"

From Fcitx
Jump to navigation Jump to search
(Marked this version for translation)
m (Text replacement - "<translate1>" to "<translate>")
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
<translate>
 
<translate>
 
 
== Tool to use == <!--T:1-->
 
== Tool to use == <!--T:1-->
 
IDE: [http://www.kdevelop.org/ kdevelop] newer than 4.5.
 
IDE: [http://www.kdevelop.org/ kdevelop] newer than 4.5.

Latest revision as of 22:54, 2 February 2016


Tool to use

IDE: kdevelop newer than 4.5.

Build system: CMake newer than 2.8.

Fcitx library and headers: newer than 4.2.7.

The reason why I choose kdevelop here is it supports cmake, and has great template system you can easily use.

Step by step

  • Create new project

Kdev-fcitx1.png

  • Download fcitx template with KDevelop

Kdev-fcitx2.png

Kdev-fcitx3.png

  • Select fcitx as type, type your project name, as for project name, you'd better make first character in upper case, due to some kdevelop template limitation.

Kdev-fcitx4.png

  • If you want to use this with your system, change the prefix to "/usr" (or any other custom prefix you're using)

Kdev-fcitx5.png

  • Let's build it!

Kdev-fcitx6.png

  • Should be successfully built (check cmake output at the bottom)

Kdev-fcitx7.png

What to do next?

Read the comments to make sure you understand the project structure, and you may need some basic knowledge about cmake.

Read some other simple project to understand what can be done with Fcitx.

Some easy place to start with:

See also

CMake Tutorial