O que devo fazer depois de um erro de cmake?

1

Eu quero instalar o software da fonte após o git clone. O autor forneceu as seguintes etapas para instalá-lo:

git submodule init
git submodule update
mkdir build;cd build
cmake ..
make
sudo make install

mas quando eu entro na etapa cmake .. , o erro ocorre:

    -- checking for module 'purple'
    --   package 'purple' not found
    CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 (message):
      A required package was not found
    Call Stack (most recent call first):
      /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal)
      CMakeLists.txt:18 (pkg_check_modules)


    -- checking for module 'glib-2.0'
    --   package 'glib-2.0' not found
    CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 (message):
      A required package was not found
    Call Stack (most recent call first):
      /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal)
      CMakeLists.txt:19 (pkg_check_modules)


    -- checking for module 'mozjs185'
    --   package 'mozjs185' not found
    CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 (message):
      A required package was not found
    Call Stack (most recent call first):
      /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal)
      CMakeLists.txt:20 (pkg_check_modules)


    libpurple version:Package purple was not found in the pkg-config search path.
    Perhaps you should add the directory containing 'purple.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'purple' found
    libpurple version outdate
    -- checking for module 'libcurl'
    --   package 'libcurl' not found
    CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 (message):
      A required package was not found
    Call Stack (most recent call first):
      /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal)
      liblwqq/CMakeLists.txt:29 (pkg_check_modules)


    -- checking for module 'sqlite3'
    --   package 'sqlite3' not found
    CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 (message):
      A required package was not found
    Call Stack (most recent call first):
      /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal)
      liblwqq/CMakeLists.txt:30 (pkg_check_modules)


    CMake Error at src/CMakeLists.txt:38 (INSTALL):
      install TARGETS given no LIBRARY DESTINATION for module target "webqq".


    ===============================================
    -- With Libev (Option)     : NO
    -- Native Language Support : true
    -- Install Path            : 
    ===============================================
    -- Configuring incomplete, errors occurred!

Depois de instalar os pacotes glib-2.0 e sqlite3, a mensagem de erro não muda!

Além disso, o comando sudo apt-get install purple não funciona.

Então, o que devo fazer para concluir a instalação deste software?

    
por Liu Hao 17.09.2013 / 04:54

1 resposta

1

Para criar um programa que dependa de algumas bibliotecas, você precisa instalar os pacotes development para essas bibliotecas. Pacotes de desenvolvimento geralmente nomeados como biblioteca, mas com -dev no final, por ex. libpurple-dev para libpurple , libsqlite3-dev para libsqlite3 etc.

De acordo com seu log, você precisa instalar:

apt-get install libpurple-dev libglib2.0-dev libmozjs185-dev \
    libsqlite3-dev libcurl4-gnutls-dev
    
por Vladimir Rutsky 08.01.2014 / 15:13