在Deepin 15.1.1上 qtcreator源码无法编译通过,使用龙芯处理器
Tofloor
poster avatar
f0002489
deepin
2017-02-24 04:22
Author
本帖最后由 f0002489 于 2017-2-23 20:23 编辑

mips


QMake version 3.0
Using Qt version 5.6.1 in /usr/lib/mipsel-linux-gnu


Deepin 15.1.1 桌面版 32位

Reply Favorite View the author
All Replies
avatar
187******12
deepin
2017-02-24 05:15
#1
貼出錯誤信息
Reply View the author
avatar
f0002489
deepin
2017-02-24 17:28
#2
qt-creator-opensource-src-4.2.0# make
cd src/ && ( test -e Makefile || /usr/bin/qmake /home/loongson/下载/qt-creator-opensource-src-4.2.0/src/src.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/home/loongson/下载/qt-creator-opensource-src-4.2.0/src'
cd shared/qbs/src/lib/corelib/ && ( test -e Makefile || /usr/bin/qmake /home/loongson/下载/qt-creator-opensource-src-4.2.0/src/shared/qbs/src/lib/corelib/corelib.pro -o Makefile ) && make -f Makefile
Project ERROR: Unknown module(s) in QT: script
Makefile:53: recipe for target 'sub-shared-qbs-src-lib-corelib-make_first-ordered' failed
make[1]: *** [sub-shared-qbs-src-lib-corelib-make_first-ordered] Error 3
make[1]: Leaving directory '/home/loongson/下载/qt-creator-opensource-src-4.2.0/src'
Makefile:43: recipe for target 'sub-src-make_first-ordered' failed
make: *** [sub-src-make_first-ordered] Error 2


接着我编译qtscript,也报错!
qtscript-opensource-src-5.6.1# qmake qtscript.pro
Info: creating cache file /home/loongson/下载/qtscript-opensource-src-5.6.1/.qmake.cache

qtscript-opensource-src-5.6.1# make
g++: error: unrecognized command line option ‘-std=c++1z’
Makefile:915: recipe for target '.pch/Qt5Script.gch/c++' failed
make[2]: *** [.pch/Qt5Script.gch/c++] Error 1
make[2]: Leaving directory '/home/loongson/下载/qtscript-opensource-src-5.6.1/src/script'
Makefile:43: recipe for target 'sub-script-make_first-ordered' failed
make[1]: *** [sub-script-make_first-ordered] Error 2
make[1]: Leaving directory '/home/loongson/下载/qtscript-opensource-src-5.6.1/src'
Makefile:44: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2




Reply View the author
avatar
xielingyun
deepin
2017-02-24 19:19
#3
https://bbs.deepin.org/post/135174
qt-creator-opensource-src-4.2.0# make
cd src/ && ( test -e Makefile || /usr/bin/qmake /home/loongson ...

qtcreator编译错误的问题稍等,我尝试重现一下

qtscript看起来可能是g++-5不支持新参数的问题,我使用 libqt5script5 5.6.1+dfsg-2 编译的时候没有遇到这个问题
P.S. 如果没有特殊需求,可以尝试使用debian官方的软件包,如果使用没问题就不需要自己编译,例如qtcreator 可以从这里得到 http://ftp.cn.debian.org/debian/pool/main/q/qtcreator/ ,选择里面的 mipsel 版本


P.S.2 建议使用debian的编译方式来编译软件
Reply View the author
avatar
f0002489
deepin
2017-02-24 22:32
#4
https://bbs.deepin.org/post/135174
qtcreator编译错误的问题稍等,我尝试重现一下

qtscript看起来可能是g++-5不支持新参数的问题,我使用 l ...

1 .  libqt5script5 5.6.1+dfsg-2  这个是哪下载的 ?

2,. debian的编译方式 是 ?
Reply View the author
avatar
f0002489
deepin
2017-02-24 22:46
#5
https://bbs.deepin.org/post/135174
qtcreator编译错误的问题稍等,我尝试重现一下

qtscript看起来可能是g++-5不支持新参数的问题,我使用 l ...

# dpkg -i qtcreator_4.2.0-1+b1_mipsel.deb
(正在读取数据库 ... 系统当前共安装有 190232 个文件和目录。)
正准备解包 qtcreator_4.2.0-1+b1_mipsel.deb  ...
正在将 qtcreator (4.2.0-1+b1) 解包到 (3.2.1+dfsg-7+deb8u1) 上 ...
dpkg: 依赖关系问题使得 qtcreator 的配置工作不能继续:
qtcreator 依赖于 qml-module-qtqml-models2;然而:
  未安装软件包 qml-module-qtqml-models2。
qtcreator 依赖于 qtcreator-data (= 4.2.0-1);然而:
  未安装软件包 qtcreator-data。
qtcreator 依赖于 libbotan-1.10-1 (>= 1.10.10);然而:
  未安装软件包 libbotan-1.10-1。
qtcreator 依赖于 libqbscore1.7 (>= 1.7.0);然而:
  未安装软件包 libqbscore1.7。
qtcreator 依赖于 libqbsqtprofilesetup1.7 (>= 1.2.1);然而:
  未安装软件包 libqbsqtprofilesetup1.7。
qtcreator 依赖于 libqt5core5a (>= 5.7.0);然而:
系统中 libqt5core5a:mipsel 的版本为 5.6.1+dfsg-4。
qtcreator 依赖于 libqt5designercomponents5 (>= 5.6.0~beta);然而:
  未安装软件包 libqt5designercomponents5。
qtcreator 依赖于 libqt5gui5 (>= 5.7.0);然而:
系统中 libqt5gui5:mipsel 的版本为 5.6.1+dfsg-4。
qtcreator 依赖于 libqt5widgets5 (>= 5.7.0);然而:
系统中 libqt5widgets5:mipsel 的版本为 5.6.1+dfsg-4。
qtcreator 依赖于 qtdeclarative-abi-5-7-0;然而:
  未安装软件包 qtdeclarative-abi-5-7-0。

dpkg: 处理软件包 qtcreator (--install)时出错:
依赖关系问题 - 仍未被配置
正在处理用于 libc-bin (2.22-7) 的触发器 ...
正在处理用于 lastore-daemon (0.9.41-4+g81b0abd) 的触发器 ...
正在处理用于 mime-support (3.60) 的触发器 ...
正在处理用于 bamfdaemon (0.2.118-1+b1) 的触发器 ...
Rebuilding /usr/share/applications/bamf.index...
正在处理用于 desktop-file-utils (0.22-1) 的触发器 ...
正在处理用于 man-db (2.7.5-1) 的触发器 ...
正在处理用于 menu (2.1.47) 的触发器 ...
在处理时有错误发生:
qtcreator
Reply View the author
avatar
xielingyun
deepin
2017-02-24 22:47
#6
https://bbs.deepin.org/post/135174
1 .  libqt5script5 5.6.1+dfsg-2  这个是哪下载的 ?

2,. debian的编译方式 是 ?

好吧,这个版本是deepin留着的
http://packages.deepin.com/loongson/pool/main/q/qtscript-opensource-src/ 这里是我们编译出的二进制包
Reply View the author
avatar
xielingyun
deepin
2017-02-24 22:48
#7
https://bbs.deepin.org/post/135174
# dpkg -i qtcreator_4.2.0-1+b1_mipsel.deb
(正在读取数据库 ... 系统当前共安装有 190232 个文件和目录 ...

唔,我知道了,Debian的版本已经升级到QT5.7了,和当前Deepin的QT版本不一样
稍等看看我能不能编译一个出来吧,大概要周一才能给结果了,编译比较慢...
Reply View the author
avatar
f0002489
deepin
2017-02-24 22:52
#8
深度商店: Qt Creator安装不上,提示下载失败!

SQLiteStudio, Notepadqq等又安装成功。
Reply View the author
avatar
xielingyun
deepin
2017-02-24 23:01
#9
https://bbs.deepin.org/post/135174
深度商店: Qt Creator安装不上,提示下载失败!

SQLiteStudio, Notepadqq等又安装成功。 ...

等等,你怎么会有深度商店...

尝试在终端安装 qtcreator 试试?商店和终端我刚刚试了下都是可以的

执行这个命令 sudo apt install qtcreator ,有提示什么错误信息吗?
Reply View the author
avatar
f0002489
deepin
2017-02-24 23:39
#10
https://bbs.deepin.org/post/135174
等等,你怎么会有深度商店...

尝试在终端安装 qtcreator 试试?商店和终端我刚刚试了下都是可以的

深度deepin操作系统

# apt install qtcreator
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
qtcreator 已经是最新版 (4.2.0-1+b1)。
您可能需要运行“apt-get -f install”来纠正下列错误:
下列软件包有未满足的依赖关系:
qtcreator : 依赖: qml-module-qtqml-models2 但是它将不会被安装
             依赖: qtcreator-data (= 4.2.0-1) 但是它将不会被安装
             依赖: libbotan-1.10-1 (>= 1.10.10) 但是它将不会被安装
             依赖: libqbscore1.7 (>= 1.7.0) 但无法安装它
             依赖: libqbsqtprofilesetup1.7 (>= 1.2.1) 但无法安装它
             依赖: libqt5core5a (>= 5.7.0) 但是 5.6.1+dfsg-4 正要被安装
             依赖: libqt5designercomponents5 (>= 5.6.0~beta) 但是它将不会被安装
             依赖: libqt5gui5 (>= 5.7.0) 但是 5.6.1+dfsg-4 正要被安装
             依赖: libqt5widgets5 (>= 5.7.0) 但是 5.6.1+dfsg-4 正要被安装
             依赖: qtdeclarative-abi-5-7-0 但无法安装它
             推荐: clang 但是它将不会被安装
             推荐: qmlscene 但是它将不会被安装
             推荐: qt5-doc 但是它将不会被安装
             推荐: qt5-qmltooling-plugins 但是它将不会被安装
             推荐: qtcreator-doc 但是它将不会被安装
             推荐: qtdeclarative5-dev-tools 但是它将不会被安装
             推荐: qttools5-dev-tools 但是它将不会被安装
             推荐: qtxmlpatterns5-dev-tools 但是它将不会被安装
E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt-get -f install”(也可以指定一个解决办法)。
Reply View the author
avatar
xielingyun
deepin
2017-02-24 23:48
#11
https://bbs.deepin.org/post/135174
深度deepin操作系统

# apt install qtcreator

龙芯版本的深度商店发布了?

这个是刚刚来自Debian的包造成的...
使用 sudo apt install -f 删除这个错误的版本,重新在商店安装试试吧
Reply View the author
avatar
A·S·M·X·T 😏😜
deepin
2017-02-25 04:31
#12
本帖最后由 liululin 于 2017-2-24 20:34 编辑

debian的Qt创建器和当前系统Qt版本不同造成的,卸载Qt创建器,从源里安装。
可以尝试aptitude命令能否选择一个合适的方案

或者把Debian mips源加入系统,从debian源安装。但有风险

本地编译最保险,只要不怕折腾。。。。。


Reply View the author
avatar
xielingyun
deepin
2017-02-26 02:49
#13
我编译了一个版本

链接: https://pan.baidu.com/s/1miAwqjI 密码: tf2a

先安装两个依赖
sudo apt install libbotan-1.10-1 libqt5designercomponents5
然后解压压缩包然后安装压缩包内的4个deb
sudo dpkg -i qtcreator_4.2.0-1_mipsel.deb qtcreator-data_4.2.0-1_all.deb libqbscore1.7_1.7.0+dfsg-4_mipsel.deb libqbsqtprofilesetup1.7_1.7.0+dfsg-4_mipsel.deb  

qtcreator 4.2的版本应该可以使用
Reply View the author
avatar
f0002489
deepin
2017-02-27 19:37
#14
https://bbs.deepin.org/post/135174
我编译了一个版本

链接: https://pan.baidu.com/s/1miAwqjI 密码: tf2a

谢谢哦,暂时不管了,,,QtCreator界面可出来,无法新建和打开项目,,,,,
----------------------------------------------------------------------------------------------------------------------------

# apt install libbotan-1.10-1 libqt5designercomponents5
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
您可能需要运行“apt-get -f install”来纠正下列错误:
下列软件包有未满足的依赖关系:
qtcreator : 依赖: qml-module-qtqml-models2 但是它将不会被安装
             推荐: clang 但是它将不会被安装
             推荐: qmlscene 但是它将不会被安装
             推荐: qt5-doc 但是它将不会被安装
             推荐: qt5-qmltooling-plugins 但是它将不会被安装
             推荐: qtcreator-doc 但是它将不会被安装
             推荐: qtdeclarative5-dev-tools 但是它将不会被安装
             推荐: qttools5-dev-tools 但是它将不会被安装
             推荐: qtxmlpatterns5-dev-tools 但是它将不会被安装
E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt-get -f install”(也可以指定一个解决办法)。
Reply View the author
avatar
f0002489
deepin
2017-02-27 19:47
#15
libbotan-1.10-1 libqt5designercomponents5 哪里有apt 源 ?
Reply View the author
avatar
f0002489
deepin
2017-02-27 19:49
#16
https://bbs.deepin.org/post/135174
debian的Qt创建器和当前系统Qt版本不同造成的,卸载Qt创建器,从源里安装。
可以尝试aptitude命令能否选择 ...

我就是本地编译的,没成功
Reply View the author
avatar
xielingyun
deepin
2017-02-27 21:38
#17
本帖最后由 xielingyun 于 2017-2-27 13:40 编辑
https://bbs.deepin.org/post/135174
libbotan-1.10-1 libqt5designercomponents5 哪里有apt 源 ?

奇怪了,既然你用了深度商店,默认应该就是这个源,不会有其他源的

http://packages.deepin.com/loongson/pool/main/b/botan1.10/

http://packages.deepin.com/loongson/pool/main/q/qttools-opensource-src/
你的问题应该是这个没安装 qml-module-qtqml-models2 ,试试 sudo apt install qml-module-qtqml-models2 看看报错信息是啥
Reply View the author
avatar
f0002489
deepin
2017-02-28 00:04
#18
# cat /etc/apt/sources.list
## Generated by deepin-installer-reborn
deb [trusted=yes] http://packages.deepin.com/loongson raccoon main contrib non-free
#deb-src [trusted=yes] http://packages.deepin.com/loongson raccoon main contrib non-free

----------------------------------------------------------------------------------------------------------------------------------------------------
# apt install qml-module-qtqml-models2
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
您可能需要运行“apt-get -f install”来纠正下列错误:
下列软件包有未满足的依赖关系:
qtcreator : 依赖: libbotan-1.10-1 (>= 1.10.10) 但是它将不会被安装
             依赖: libqt5designercomponents5 (>= 5.6.0~beta) 但是它将不会被安装
             推荐: clang 但是它将不会被安装
             推荐: qmlscene 但是它将不会被安装
             推荐: qt5-doc 但是它将不会被安装
             推荐: qt5-qmltooling-plugins 但是它将不会被安装
             推荐: qtcreator-doc 但是它将不会被安装
             推荐: qtdeclarative5-dev-tools 但是它将不会被安装
             推荐: qttools5-dev-tools 但是它将不会被安装
             推荐: qtxmlpatterns5-dev-tools 但是它将不会被安装
E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt-get -f install”(也可以指定一个解决办法)。
Reply View the author