Compilando dictconv no Haiku

Compilando dictconv no Haiku

Estou tendo problemas para compilardictconvno Haiku noturno hrev46922. Eu nunca tentei antes.

Primeiro reclamou de não saber qual sistema operacional era. Então segui as instruções e substituí config.subpor config.guessoutras mais novas. Executei de novo, existem outros ainda mais novos, acho que eles mudaram do CVS para o github.

OK, executei novamente e desta vez disse que não foi possível encontrar a libxml2. Então usei o HaikuDepot para instalar o libxml2.

Agora tenho a libxml2 2.8.0-6 instalada, mas acabei de perceber que a libxml2_x86 já estava instalada, versão 2.9.1-1. No entanto, com duas cópias, ainda não consegue encontrá-lo:

~/Desktop/dictconv-0.2> ./configure --prefix=/boot/home/Desktop/dictconv-0.2/
[...lots of checking, without errors...]
checking for libxml - version >= 2.5.0... no
*** The xml2-config script installed by LIBXML could not be found
*** If libxml was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the XML2_CONFIG environment variable to the
*** full path to xml2-config.
configure: error: You must have libxml2 >= 2.5.0 installed

Bom, procurei xml2-confige não encontrei. No entanto, encontrei um arquivo chamado /boot/system/data/cmake/Modules/FindLibXml2.cmakee notei no dictconvsite que eu poderia usar cmake, então tentei isso:

~/Desktop/dictconv-0.2/build> cmake ..
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
XML2_INCLUDE_DIR
   used as include directory in directory /boot/home/Desktop/dictconv-0.2/src
XML2_LIBRARY
    linked by target "dictconv" in directory /boot/home/Desktop/dictconv-0.2/src

-- Configuring incomplete, errors occurred!

Por último, pensei em tentar fazer com que ele usasse o arquivo que encontrei:

~/Desktop/dictconv-0.2/build> cmake -P /boot/system/data/cmake/Modules/FindLibXml2.cmake ..
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
-- Could NOT find LibXml2 (missing:  LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR) 

Neste ponto eu já estou perdendo a cabeça, mas continuei procurando mesmo assim. eu vejo emHaikuPortsesses dois arquivos de receita, mas não tenho certeza de como usá-los para obter o que no Linux é o tipo de pacote "-devel", que é o que imagino dictconvque o script de configureestá procurando.

Ajuda?

Responder1

Sei que esta é uma resposta um pouco tardia, mas você só precisa instalar o pacote libxml2_devel.

Isso não é mostrado por padrão no HaikuDepot, então vá até a opção "Mostrar" no menu do HaikuDepot e selecione "Desenvolver pacotes". Isso deve fazer com que o pacote correto seja listado, permitindo que você o instale.

Depois disso, o xml2-config deve funcionar para você conforme o esperado.

informação relacionada