Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
编译安装stellarium,cmake报错
Apps Section
1054
views ·
4
replies ·
To
floor
Go
151******17
deepin
2014-07-23 04:34
Author
看到stellarium发布0.13.0了,软件中心里还没有更新,心血来潮想试试源码包编译安装,就没下deb包,下载了源码包
然后就出问题了
执行cmake的过程中报错
-- Found Qt5: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake (found suitable version "5.2.1", required is "5.1.0")
CMake Error at CMakeLists.txt:219 (FIND_PACKAGE):
By not providing "FindQt5Declarative.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt5Declarative", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Declarative"
with any of the following names:
Qt5DeclarativeConfig.cmake
qt5declarative-config.cmake
Add the installation prefix of "Qt5Declarative" to CMAKE_PREFIX_PATH or set
"Qt5Declarative_DIR" to a directory containing one of the above files. If
"Qt5Declarative" provides a separate development package or SDK, be sure it
has been installed.
-- Configuring incomplete, errors occurred!
See also "/home/xxxx/Downloads/stellarium-0.13.0/CMakeFiles/CMakeOutput.log".
See also "/home/xxxx/Downloads/stellarium-0.13.0/CMakeFiles/CMakeError.log".
Copy the Code
这是怎么回事,应该怎么处理?
Reply
Like 0
Favorite
View the author
All Replies
Bluek404
deepin
2014-07-24 18:49
#1
缺少qt5的依赖以及qt库的版本太高
Reply
Like 0
View the author
Orrgs
deepin
2014-10-13 08:33
#2
qt的版本太高了。我编译也是同样的情况。我的解决办法是卸载高版本的qt(5.2.1),安装5.1.0版本的qt。
不知道你是不是电脑上已经安装了stellarium,我的是这种情况。卸载stellarium,电脑上安装的qt 5.2.1版本的qt库会同时被卸载。
sudo apt-get autoremove stellarium
Copy the Code
然后我从网上下载了5.1.0版本的qt开发环境。
http://download.qt-project.org/official_releases/qt/5.1/5.1.0/
Copy the Code
chmod +x qt-linux-opensource-5.1.0-x86_64-offline.run
Copy the Code
sudo ./qt-linux-opensource-5.1.0-x86_64-offline.run
Copy the Code
然后设置环境变量,
gedit ~/.bashrc
Copy the Code
在最后加入(根据相应的安装目录修改)
export QTDIR="/opt/Qt5.1.0"
export LD_LIBRARY_PATH="/opt/Qt5.1.0/5.1.0/gcc_64/lib"
export PATH=$PATH:/opt/Qt5.1.0/5.1.0/gcc_64/bin
Copy the Code
source ~/.bashrc
Copy the Code
然后就能正常编译安装了。
Reply
Like 0
View the author
Orrgs
deepin
2014-10-13 08:49
#3
编译安装后无法输入中文,天体目录也不能更新,怎么解决?
Reply
Like 0
View the author
cxbii
deepin
2014-10-13 17:23
#4
http://wiki.linuxdeepin.com/index.php?t ... E.E9.A2.98
输入法
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Events
More
然后就出问题了
执行cmake的过程中报错