about building custom widgets

i wrote a custom widget class which inherited from PtRaw class.it passed through compiling and genereted libmywidget.so.
my problem is how to load this custom widget into Phab so that i can edit it just like i edit the PtButton widget.
which files i have to change under the directory /usr/photon?
i also followed the steps in the Building Custom Widget guide like writing a *.pal file ,but it did not work.

os version is qnx 6.0.
phab version is 2.01

thank you very very much