[DTK] qtcreator设计者怎么添加dtk控件
Tofloor
poster avatar
mengqx2021
deepin
2022-04-08 19:14
Author

qtcreator设计者如何添加dtk控件

看之前的开发文档是要获取一个libdcustomwidgets.so的动态库文件 ,这个文件是要从哪里获取

Reply Favorite View the author
All Replies
tsic
deepin
2022-04-08 23:52
#1

这个是实验性的,需要自己编译DTK。

Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2022-04-09 06:11
#2

如果是deepin下可以直接从仓库获取

星火做了一个ubuntu 20.04的移植

https://gitee.com/deepin-community-store/spark-dtk

Reply View the author
mengqx2021
deepin
2022-04-11 04:25
#3
tsic

这个是实验性的,需要自己编译DTK。

我编译出来的so没有libdcustomwidgets,只有dtkgui,dtkwidget和dtkcore这三个so文件

Reply View the author
mengqx2021
deepin
2022-04-26 22:13
#4
tsic

这个是实验性的,需要自己编译DTK。

能否提供编译过程呢

Reply View the author
tsic
deepin
2022-04-27 00:20
#5
mengqx2021

能否提供编译过程呢

  1. 获取 dtkwidget的代码,从github
  2. 进入源码的目录,使用 apt build-dep libdtkwidget5.5 安装全部的编译库
  3. 进入到源码的 plugin/目录下,使用 qmake 生成 Makefile ,然后使用 make -j$(nproc)进行编译
  4. 编译结果在 dtkuiplugin/plugins/designer/libdcustomwidgets.so
Reply View the author
mengqx2021
deepin
2022-04-27 03:32
#6
It has been deleted!
mengqx2021
deepin
2022-04-27 03:50
#7
tsic
  1. 获取 dtkwidget的代码,从github
  2. 进入源码的目录,使用 apt build-dep libdtkwidget5.5 安装全部的编译库
  3. 进入到源码的 plugin/目录下,使用 qmake 生成 Makefile ,然后使用 make -j$(nproc)进行编译
  4. 编译结果在 dtkuiplugin/plugins/designer/libdcustomwidgets.so

进入plugin目录,进行make时会出现这样的错误,No module claims plugin type 'designer',这个怎么解决呢

uos@uos-PC:~/Desktop/DTK/dtkwidget/plugin$ make -j$(nproc)
cd dtkuidemo/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/uos/Desktop/DTK/dtkwidget/plugin/dtkuidemo/dtkuidemo.pro ) && make -f Makefile
cd dtkuiplugin/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/uos/Desktop/DTK/dtkwidget/plugin/dtkuiplugin/dtkuiplugin.pro ) && make -f Makefile
Project ERROR: No module claims plugin type 'designer'
make: *** [Makefile:71:sub-dtkuiplugin-make_first] 错误 3
Reply View the author
3***9@qq.com
deepin
2025-01-21 18:20
#8

想问问libdcustomwidgets.so动态库文件这个你弄到了吗

Reply View the author