编译安装stellarium,cmake报错
Tofloor
poster avatar
151******17
deepin
2014-07-23 04:34
Author
看到stellarium发布0.13.0了,软件中心里还没有更新,心血来潮想试试源码包编译安装,就没下deb包,下载了源码包
然后就出问题了
执行cmake的过程中报错
  1. -- Found Qt5: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake (found suitable version "5.2.1", required is "5.1.0")
  2. CMake Error at CMakeLists.txt:219 (FIND_PACKAGE):
  3.   By not providing "FindQt5Declarative.cmake" in CMAKE_MODULE_PATH this
  4.   project has asked CMake to find a package configuration file provided by
  5.   "Qt5Declarative", but CMake did not find one.
  6.   Could not find a package configuration file provided by "Qt5Declarative"
  7.   with any of the following names:
  8.     Qt5DeclarativeConfig.cmake
  9.     qt5declarative-config.cmake
  10.   Add the installation prefix of "Qt5Declarative" to CMAKE_PREFIX_PATH or set
  11.   "Qt5Declarative_DIR" to a directory containing one of the above files.  If
  12.   "Qt5Declarative" provides a separate development package or SDK, be sure it
  13.   has been installed.
  14. -- Configuring incomplete, errors occurred!
  15. See also "/home/xxxx/Downloads/stellarium-0.13.0/CMakeFiles/CMakeOutput.log".
  16. See also "/home/xxxx/Downloads/stellarium-0.13.0/CMakeFiles/CMakeError.log".
Copy the Code
这是怎么回事,应该怎么处理?
Reply Favorite View the author
All Replies
Bluek404
deepin
2014-07-24 18:49
#1
缺少qt5的依赖以及qt库的版本太高
Reply 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库会同时被卸载。
  1. sudo apt-get autoremove stellarium
Copy the Code
然后我从网上下载了5.1.0版本的qt开发环境。
  1. http://download.qt-project.org/official_releases/qt/5.1/5.1.0/
Copy the Code
  1. chmod +x qt-linux-opensource-5.1.0-x86_64-offline.run
Copy the Code
  1. sudo ./qt-linux-opensource-5.1.0-x86_64-offline.run
Copy the Code
然后设置环境变量,
  1. gedit ~/.bashrc
Copy the Code
在最后加入(根据相应的安装目录修改)
  1. export QTDIR="/opt/Qt5.1.0"
  2. export LD_LIBRARY_PATH="/opt/Qt5.1.0/5.1.0/gcc_64/lib"
  3. export PATH=$PATH:/opt/Qt5.1.0/5.1.0/gcc_64/bin
Copy the Code
  1. source ~/.bashrc
Copy the Code
然后就能正常编译安装了。
Reply View the author
Orrgs
deepin
2014-10-13 08:49
#3
编译安装后无法输入中文,天体目录也不能更新,怎么解决?
Reply View the author
cxbii
deepin
2014-10-13 17:23
#4
Reply View the author