Haiku에서 dictconv 컴파일하기

Haiku에서 dictconv 컴파일하기

컴파일하는 데 문제가 있습니다.dictconv하이쿠 야간 hrev46922에서. 나는 전에 한번도 시도한 적이 없습니다.

처음에는 어떤 OS인지 모른다고 불평했습니다. 그래서 지시 사항을 따르고 새로운 것으로 config.sub교체 했습니다. config.guess다시 실행해 보니 더 새로운 것들이 있는데 CVS에서 github로 전환한 것 같습니다.

좋아, 다시 실행해 보니 이번에는 libxml2를 찾을 수 없다고 뜹니다. 그래서 HaikuDepot을 사용하여 libxml2를 설치했습니다.

이제 libxml2 2.8.0-6이 설치되었지만 libxml2_x86 버전 2.9.1-1이 이미 설치되어 있다는 것을 방금 깨달았습니다. 그럼에도 불구하고 두 개의 복사본이 있어도 여전히 찾을 수 없습니다.

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

글쎄요, 검색해봤는데 xml2-config없어요. 하지만 이라는 파일을 찾았고 의 사이트 /boot/system/data/cmake/Modules/FindLibXml2.cmake에서 cmake를 사용할 수 있다는 것을 우연히 발견하여 다음과 같이 시도해 보았습니다.dictconv

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

마지막으로, 내가 찾은 파일을 사용하도록 하려고 생각했습니다.

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

이 시점에서 나는 이미 머리를 숙이고 있었지만 어쨌든 계속해서 살펴보았습니다. 나는 본다하이쿠항dictconv이 두 가지 레시피 파일이 있는데 어떻게 사용하여 Linux에서 의 configure스크립트가 찾고 있는 "-devel" 종류의 패키지를 만드는지 잘 모르겠습니다 .

돕다?

답변1

답변이 다소 늦었다는 것을 알고 있지만 libxml2_devel 패키지를 설치하기만 하면 됩니다.

이것은 HaikuDepot에서 기본적으로 표시되지 않으므로 HaikuDepot 메뉴에서 "표시" 옵션으로 이동하여 "패키지 개발"을 선택하세요. 그러면 올바른 패키지가 나열되어 설치가 가능해집니다.

이 후에는 xml2-config가 예상대로 작동합니다.

관련 정보