dtk编译 新错误, DTK_VERSION not declared,,,
Tofloor
poster avatar
t1st
deepin
2018-03-06 00:00
Author
这是在编译 dtkwidget的时候的错误,,
这个是变量未定义???
Reply Favorite View the author
All Replies
avatar
justforlxz
deepin
2018-03-06 00:19
#1
先编译安装一下dtkcore,再编译dtkwidget。
Reply View the author
avatar
t1st
deepin
2018-03-06 01:12
#2
https://bbs.deepin.org/post/153821
先编译安装一下dtkcore,再编译dtkwidget。

就是编译安装了最新的dtkcore啊,然后再装的这个..
Reply View the author
avatar
iceyer
deepin
2018-03-06 01:17
#3
https://bbs.deepin.org/post/153821
就是编译安装了最新的dtkcore啊,然后再装的这个..
  1. dpkg -S dtkcore_global.h
Copy the Code


看下dtkcore_global.h里面有没有下面这句

  1. #define DTK_VERSION DTK_VERSION_CHECK(DTK_VERSION_MAJOR, DTK_VERSION_MINOR, DTK_VERSION_PATCH, DTK_VERSION_BUILD)
Copy the Code
Reply View the author
avatar
t1st
deepin
2018-03-06 02:43
#4
https://bbs.deepin.org/post/153821
看下dtkcore_global.h里面有没有下面这句

没有 这段代码
Reply View the author
avatar
t1st
deepin
2018-03-06 02:49
#5
https://bbs.deepin.org/post/153821
看下dtkcore_global.h里面有没有下面这句

源代码里有这两句 , 但是 /usr/include/libdtk-2.0/DCore/dtkcore_global.h 这里面的没有这两句

  1. #define DTK_VERSION_CHECK(major, minor, patch, build) ((major<<24)|(minor<<16)|(patch<<8)|build)
  2. #define DTK_VERSION DTK_VERSION_CHECK(DTK_VERSION_MAJOR, DTK_VERSION_MINOR, DTK_VERSION_PATCH, DTK_VERSION_BUILD)
Copy the Code
Reply View the author
avatar
iceyer
deepin
2018-03-06 17:05
#6
https://bbs.deepin.org/post/153821
源代码里有这两句 , 但是 /usr/include/libdtk-2.0/DCore/dtkcore_global.h 这里面的没有这两句

...

dtkcore编译玩要用make install安装到系统中,不然会优先使用系统中旧的头文件
Reply View the author
avatar
t1st
deepin
2018-03-06 22:12
#7
https://bbs.deepin.org/post/153821
dtkcore编译玩要用make install安装到系统中,不然会优先使用系统中旧的头文件 ...

dtkcore 运行了 make install了啊,还是一样.
Reply View the author
avatar
t1st
deepin
2018-03-06 22:18
#8
https://bbs.deepin.org/post/153821
dtkcore编译玩要用make install安装到系统中,不然会优先使用系统中旧的头文件 ...

/usr/include 下面有两个文件夹 libdtk-2.0  和libdtk-2.0.6,,
Reply View the author
avatar
syys
deepin
2018-03-07 23:52
#9
去拉一个2.0.5.2的tag编译:https://bbs.deepin.org/post/150542
Reply View the author
avatar
iceyer
deepin
2018-03-08 01:41
#10
https://bbs.deepin.org/post/153821
dtkcore 运行了 make install了啊,还是一样.

有用root权限吗?
sudo make install
另外看下这个文件的内容
cat /usr/lib/x86_64-linux-gnu/pkgconfig/dtkcore.pc
Reply View the author
avatar
t1st
deepin
2018-03-08 17:32
#11
https://bbs.deepin.org/post/153821
有用root权限吗?
sudo make install
另外看下这个文件的内容

今天系统升级了 libdtk 2.0.7,然后在编译就通过了
Reply View the author
avatar
t1st
deepin
2018-03-08 17:32
#12
https://bbs.deepin.org/post/153821
去拉一个2.0.5.2的tag编译:https://bbs.deepin.org/post/150542

今天系统升级了 libdtk 2.0.7,然后在编译就通过了
Reply View the author