Dictconv auf Haiku zusammenstellen

364
Kev

Ich habe Probleme, dictconv auf Haiku nachts hrev46922 zu erstellen. Ich habe es noch nie probiert.

Zuerst beklagte es sich, nicht zu wissen, um welches Betriebssystem es sich handelt. Also folgte ich den Anweisungen und ersetzte config.subund config.guessmit neueren. Ich habe es wieder gemacht, es gibt sogar noch neuere, ich glaube, sie haben von CVS zu Github gewechselt.

OK, lief es erneut und diesmal wurde libxml2 nicht gefunden. Also habe ich HaikuDepot benutzt, um libxml2 zu installieren.

Jetzt habe ich libxml2 2.8.0-6 installiert, aber mir wurde gerade klar, dass libxml2_x86 bereits installiert war, Version 2.9.1-1. Trotzdem kann es mit zwei Exemplaren es immer noch nicht finden:

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

Nun, ich habe gesucht xml2-configund habe es nicht. Ich habe jedoch eine Datei gefunden /boot/system/data/cmake/Modules/FindLibXml2.cmake, die auf dictconvder Website aufgerufen wurde und zufällig festgestellt hat, dass ich cmake verwenden kann. Also habe ich Folgendes versucht:

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

Schließlich dachte ich, ich würde versuchen, die gefundene Datei zu verwenden:

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

An diesem Punkt bin ich bereits über meinen Kopf hinweg, aber ich habe trotzdem nachgesehen. Ich sehe auf HaikuPorts diese beiden Rezeptdateien, aber ich bin nicht sicher, wie sie verwenden, um mit am Ende, was unter Linux ist die „-devel“ Art von Paket, das ist, was ich meine, dictconv‚s - configureSkript für sucht.

Hilfe?

0

1 Antwort auf die Frage

2
Justin Stressman

Mir ist klar, dass dies eine späte Antwort ist, aber Sie sollten nur das Paket libxml2_devel installieren.

Dies wird in HaikuDepot nicht standardmäßig angezeigt. Gehen Sie daher im Menü von HaikuDepot zur Option "Anzeigen" und wählen Sie "Pakete entwickeln". Dadurch sollte das richtige Paket aufgeführt werden, sodass Sie es installieren können.

Danach sollte xml2-config erwartungsgemäß für Sie funktionieren.

Vielen Dank. Ich kann das im Moment nicht testen, werde es aber tun, wenn ich die nächste Gelegenheit habe. Kev vor 9 Jahren 0