编译老王的deepin-note/text
Tofloor
poster avatar
walle
deepin
2017-06-25 05:22
Author
本帖最后由 walle 于 2017-6-25 07:51 编辑

安装了全部依赖,并且编译安装了dtk,截图如下  
  
接下来按照github上编译deepin-note时最后出现   
  
  1. main.o:在函数‘main’中:
  2. /home/wallen/Gitprojects/deepin-note/build/../src/main.cpp:54:对‘Dtk::Widget::DApplication::setProductIcon(QPixmap const&)’未定义的引用
  3. /home/wallen/Gitprojects/deepin-note/build/../src/main.cpp:55:对‘Dtk::Widget::DApplication::setProductName(QString const&)’未定义的引用
  4. /home/wallen/Gitprojects/deepin-note/build/../src/main.cpp:56:对‘Dtk::Widget::DApplication::setApplicationDescription(QString const&)’未定义的引用
  5. /home/wallen/Gitprojects/deepin-note/build/../src/main.cpp:57:对‘Dtk::Widget::DApplication::setApplicationAcknowledgementPage(QString const&)’未定义的引用
  6. collect2: error: ld returned 1 exit status
  7. Makefile:149: recipe for target 'deepin-note' failed
  8. make: *** [deepin-note] Error 1
Copy the Code

Reply Favorite View the author
All Replies
avatar
walle
deepin
2017-06-25 05:23
#1

Reply View the author
avatar
walle
deepin
2017-06-25 05:24
#2
   

网络抽了。。。一下发了三个  实在抱歉
Reply View the author
avatar
weichongjian
deepin
2017-06-25 05:48
#3
https://bbs.deepin.org/post/141551
网络抽了。。。一下发了三个  实在抱歉

我也跟你一样错误
Reply View the author
avatar
rekols
deepin
2017-06-25 05:50
#4
看了一下问题,找不到这些API是因为老王用的是git版本的dtk,你可以直接把它注释掉。
Reply View the author
avatar
walle
deepin
2017-06-25 05:56
#5
https://bbs.deepin.org/post/141551
看了一下问题,找不到这些API是因为老王用的是git版本的dtk,你可以直接把它注释掉。 ...

什么是git版本的dtk呢?  
我是从github上clone的最新的dtk。谢谢您
Reply View the author
avatar
walle
deepin
2017-06-25 06:53
#6
在代码中 dapplication.cpp中找到如下函数
void DApplication::setProductIcon(const QPixmap &productIcon)
{
    D_D(DApplication);

    d->productIcon = productIcon;
}
  

dtk编译安装也能正常执行,为什么就是未定义呢,非常疑惑
Reply View the author
avatar
walle
deepin
2017-06-25 06:59
#7
https://cr.deepin.io/#/admin/projects/deepin-tool-kit
在这个github项目的原镜像上下载编译,还是这个错误
Reply View the author
avatar
pikachuhy
deepin
2017-06-25 07:29
#8
dtk版本太老了 然后新的dtk依赖一个libdtkwidget.so.1.0.0
Reply View the author
Comments
walle
2017-06-25 07:35
ls -al查看了/usr/lib下的libdtkwidget.so.1.0.0,以及几个链接,都为编译后新生成的
avatar
walle
deepin
2017-06-25 07:33
#9
https://bbs.deepin.org/post/141551
dtk版本太老了 然后新的dtk依赖一个libdtkwidget.so.1.0.0

我就是git clone的最新的dtk编译安装的呀
Reply View the author
avatar
walle
deepin
2017-06-25 07:34
#10
https://bbs.deepin.org/user/23944 大佬,别光加分呀,这是什么问题呢
Reply View the author
avatar
walle
deepin
2017-06-25 07:42
#11
本帖最后由 walle 于 2017-6-24 23:46 编辑

https://bbs.deepin.org/user/78734   
感谢帮助我的各位,问题已解决。
deepin-tool-kit编译后生成的动态库.so文件定位于/usr/lib下,而诸如deepin-note等应用make时会调用/usr/lib/x86_64_linux_gun下的.so文件,将之替换为/usr/lib下的文件即可。  但是这样又出现了问题,文件管理器打不开了。。。可能是文件管理器使用旧的.so文件。
Reply View the author
avatar
walle
deepin
2017-06-25 08:40
#12
本帖最后由 walle 于 2017-6-25 07:50 编辑

在github上clone了文件管理器的最新release版本,编译安装后文件管理器回来了。     
Reply View the author
avatar
walle
deepin
2017-06-25 08:41
#13

附一张编译成功的老王牌系统监视器
Reply View the author
avatar
walle
deepin
2017-06-25 08:45
#14
本帖最后由 walle 于 2017-6-25 07:50 编辑


Reply View the author
avatar
tamlok
deepin
2017-06-25 17:27
#15
搞开发的话,一般换成英文界面会舒服一点~
Reply View the author