Compilando dictconv en Haiku

Compilando dictconv en Haiku

tengo problemas para compilardictconven Haiku todas las noches hrev46922. Nunca lo he intentado antes.

Primero se quejó de no saber qué sistema operativo era. Así que seguí las instrucciones y las reemplacé config.subpor config.guessotras más nuevas. Lo ejecuté de nuevo, hay incluso otros más nuevos, supongo que cambiaron de CVS a github.

Bien, lo ejecuté nuevamente y esta vez dijo que no puede encontrar libxml2. Entonces usé HaikuDepot para instalar libxml2.

Ahora tengo instalado libxml2 2.8.0-6, pero me acabo de dar cuenta de que libxml2_x86 ya estaba instalado, versión 2.9.1-1. Sin embargo, con dos copias, todavía no lo encuentra:

~/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

Bueno, lo busqué xml2-configy no lo tengo. Sin embargo, encontré un archivo llamado /boot/system/data/cmake/Modules/FindLibXml2.cmakey noté en dictconvel sitio que podía usar cmake, así que lo intenté:

~/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, pensé en intentar que use el archivo que encontré:

~/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) 

En este punto ya estoy perdido, pero seguí buscando de todos modos. veo enHaikuPuertosestos dos archivos de recetas, pero no estoy seguro de cómo usarlos para terminar con lo que en Linux es el tipo de paquete "-devel", que es lo que supongo que dictconvestá configurebuscando el script.

¿Ayuda?

Respuesta1

Me doy cuenta de que esta es una respuesta un poco tardía, pero solo debería necesitar instalar el paquete libxml2_devel.

Esto no se muestra de forma predeterminada en HaikuDepot, así que suba en el menú de HaikuDepot a la opción "Mostrar" y seleccione "Desarrollar paquetes". Esto debería hacer que aparezca el paquete correcto, permitiéndole instalarlo.

Después de esto, xml2-config debería funcionar como se esperaba.

información relacionada