Установка Avogadro 1.2.0 из исходного кода Ubuntu 20.04

Пакет загружен как avogadro-1.2.0.tar.gz и помещен в папку home/src; распаковал в ту же папку. Я добрался до шага 2 из папки INSTALL, здесь ...

 -- CMake 2.8.9 or later (2.8.11 recommended)
 -- Qt 4.6.0 or later (4.8.5 recommended)
 -- OpenBabel 2.3.x or later (development version from 
  http://github.org/openbabel/openbabel is recommended)
 -- Eigen 2.0.x or later (3.x also supported)

Basic Installation
These instructions give a very basic overview of how to configure, compile and
install Avogadro on most systems.  If you are using unique install locations
and/or libraries are not automatically detected please consult the 'Advanced'

1. Create a 'build' directory in the package source directory.

   mkdir build
   cd build

2. Configure the build system

   cmake ../

3. Compile

   make -j2

4. Install

   sudo make install

, то есть после ввода

cmake ../

я получил следующие ошибки,

darren@darren-Vostro-3560:~/src/avogadro-1.2.0/build$  cmake ../
-- The build type is RelWithDebInfo
CMake Error at /usr/share/cmake-3.16/Modules/FindQt4.cmake:1314 (message):
  Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
  CMakeLists.txt:226 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/darren/src/avogadro-1.2.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/darren/src/avogadro-1.2.0/build/CMakeFiles/CMakeError.log".

с сообщением CMakeOutput.log, обрезанным, так как слишком долго, но может быть поставляется.

и в журнале CMakeError.log

Performing C++ SOURCE FILE Test COMPILES_WITHOUT_FPERMISSIVE failed with the following output:
Change Dir: /home/darren/src/avogadro-1.2.0/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_842a7/fast && /usr/bin/make -f CMakeFiles/cmTC_842a7.dir/build.make CMakeFiles/cmTC_842a7.dir/build
make[1]: Entering directory '/home/darren/src/avogadro-1.2.0/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_842a7.dir/src.cxx.o
/usr/bin/c++    -fvisibility=hidden -fvisibility-inlines-hidden -DCOMPILES_WITHOUT_FPERMISSIVE   -o CMakeFiles/cmTC_842a7.dir/src.cxx.o -c /home/darren/src/avogadro-1.2.0/build/CMakeFiles/CMakeTmp/src.cxx
/home/darren/src/avogadro-1.2.0/build/CMakeFiles/CMakeTmp/src.cxx:6:17: error: declaration of ‘auto_ptr<_Tp> counted_ptr<_Tp>::auto_ptr()’ changes meaning of ‘auto_ptr’ [-fpermissive]
    6 |   auto_ptr<_Tp> auto_ptr();
      |                 ^~~~~~~~
/home/darren/src/avogadro-1.2.0/build/CMakeFiles/CMakeTmp/src.cxx:2:28: note: ‘auto_ptr’ declared here as ‘class auto_ptr<_Tp>’
    2 | template <class _Tp> class auto_ptr {};
      |                            ^~~~~~~~
make[1]: *** [CMakeFiles/cmTC_842a7.dir/build.make:66: CMakeFiles/cmTC_842a7.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/darren/src/avogadro-1.2.0/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_842a7/fast] Error 2

Source file was:

template <class _Tp> class auto_ptr {};
template <class _Tp>
struct counted_ptr
  auto_ptr<_Tp> auto_ptr();
int main() {return 0;}

и я говорю, пожалуйста, помогите.

задан 1 December 2021 в 17:14

0 ответов

Другие вопросы по тегам:

Похожие вопросы: