[DTK] 更新完系统,重新打开编译之前的 QT 项目报 dtkcore_global.h 找不到 Resolved
Tofloor
poster avatar
寂静的羽夏
deepin
2022-05-31 20:02
Author

今天更新完系统,然后我继续开发我自己的小项目(基于 DTK),发现编译错误,如下所示:

/usr/include/libdtk-5.5.21/DWidget/dtkwidget_global.h:20: error: dtkcore_global.h: No such file or directory
 #include 
          ^~~~~~~~~~~~~~~~~~

image.png

请问有什么最简单的方式来解决这个编译错误。

Reply Favorite View the author
All Replies
忘记、过去
deepin
2022-05-31 20:16
#1

sudo apt reinstall libdtkcore-dev 试试看?

Reply View the author
寂静的羽夏
deepin
2022-05-31 20:22
#2

找到解决方式了:

删除之前编译过的东西,然后再次编译即可。

@忘记、过去

Reply View the author