Qt下如何编译deepin-music等软件
Tofloor
poster avatar
loring
deepin
2017-05-06 08:14
Author
下载了deepin-music等深度的原生应用源码,已经在deepin系统下装好Qt,但不知道还需要装那些依赖项以及如何去装才能编译通过此代码?请各位不吝赐教
Reply Favorite View the author
All Replies
avatar
158******98
deepin
2017-05-06 19:08
#1
sudo apt-get build-dep deepin-music
Reply View the author
avatar
158******98
deepin
2017-05-06 19:09
#2
你的源码从哪里下载的?github上面还是apt-get source?
Reply View the author
avatar
loring
deepin
2017-05-06 19:16
#3
https://bbs.deepin.org/post/139006
你的源码从哪里下载的?github上面还是apt-get source?

从github上下载的
Reply View the author
avatar
loring
deepin
2017-05-06 19:20
#4
https://bbs.deepin.org/post/139006
sudo apt-get build-dep deepin-music

我是新手,没懂您的意思,能否详细点?感激不尽 我这样做后显示“您必须在 sources.list 中指定代码源(deb-src) URI” 还是不知道怎么弄
Reply View the author
avatar
A·S·M·X·T 😏😜
deepin
2017-05-06 20:21
#5
https://bbs.deepin.org/post/139006
我是新手,没懂您的意思,能否详细点?感激不尽 我这样做后显示“您必须在 sources.list 中指定代码源(de ...

把/etc/apt/sources.list中deb-src前#去掉,再sudo apt update刷新一下
Reply View the author
avatar
loring
deepin
2017-05-06 23:13
#6
https://bbs.deepin.org/post/139006
把/etc/apt/sources.list中deb-src前#去掉,再sudo apt update刷新一下

谢谢你 我照着你的做后成功安装了deepin的软件包 但是Qt Creator里面还是不能运行此代码  qmake时候显示“:-1: error: libavutil development package not found” 我应该怎么做?请指教 不甚感激
Reply View the author
avatar
loring
deepin
2017-05-06 23:16
#7
https://bbs.deepin.org/post/139006
把/etc/apt/sources.list中deb-src前#去掉,再sudo apt update刷新一下

我按着这个里面安装这两个库http://www.cnblogs.com/wanghetao/p/3386311.html 没安装成功 不知道怎么回事
Reply View the author
avatar
A·S·M·X·T 😏😜
deepin
2017-05-07 02:06
#8
https://bbs.deepin.org/post/139006
谢谢你 我照着你的做后成功安装了deepin的软件包 但是Qt Creator里面还是不能运行此代码  qmake时候显示 ...

你试试sudo apt install libavutil 按tab补全试试有没有-dev结尾的包
Reply View the author
avatar
loring
deepin
2017-05-07 02:32
#9
https://bbs.deepin.org/post/139006
你试试sudo apt install libavutil 按tab补全试试有没有-dev结尾的包

我把libavutil-dev         libavutil-ffmpeg54    libavutil-ffmpeg-dev  libavcodec-dev这四个软件包都装上了, 构建代码的时候还是显示:-1: error: libavformat development package not found
Reply View the author
avatar
loring
deepin
2017-05-07 02:45
#10
https://bbs.deepin.org/post/139006
你试试sudo apt install libavutil 按tab补全试试有没有-dev结尾的包

谢谢你 这个问题已经搞定了 但是又显示差taglib包 但是好像get不到这个包 请问怎么处理?
Reply View the author
avatar
A·S·M·X·T 😏😜
deepin
2017-05-07 03:29
#11
本帖最后由 liululin 于 2017-5-6 19:31 编辑
https://bbs.deepin.org/post/139006
谢谢你 这个问题已经搞定了 但是又显示差taglib包 但是好像get不到这个包 请问怎么处理?
...

.........多看看源目录中.md文档说明。。。。。。
如果源代码中有Debian目录。就直接构建成deb包。  依赖提示你看得懂些。

cd <源目录>
sudo apt install dpkg-dev  fakeroot
dpkg-buildpackage -us -uc -b
编译出的deb在上层目录


Reply View the author
avatar
158******98
deepin
2017-05-08 16:47
#12
最好不要从github下载源代码,而是通过apt-get source来下载,github上面的源代码可能被修改过,依赖要求变化了。
Reply View the author