How to compile CLucene for iOS?

I am trying to compile CLucene for iOS and run into some problems.

Here are the steps I took

  • Modify CLucene CMakeLists.txt to disable multithreading
  • Create the "build-ios" directory in the CLucene source directory
  • Drop the cmake file from this site into the cmake directory http://code.google.com/p/ios-cmake/
  • run the following command: cmake -DCMAKE_TOOLCHAIN_FILE =. / iOS.cmake -GXcode ../ "

Here is the output from this command. Can someone help me with an error?

- Toolkit using the default SDK for iOS: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk - Search for include files CMAKE_HAVE_PTHREAD_H - Search for include files CMAKE_HAVE_PTHREAD_H - not found. - Could not find Boost Boost not found using local: /Users/aschuler/Desktop/clucene-core-2.3.3.4/src/ext CMake error in / Applications / CMake 2.8-6.app/Contents/share/cmake-2.8 /Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE): Could not find threads (missing: Threads_FOUND) Call stack (last call first): / Applications / CMake 2.8-6.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs .cmake: 252 (_FPHSA_FAILURE_MESSAGE) / Applications / CMake 2.8-6.app/Contents/share/cmake-2.8/Modules/FindThreads.cmake:157 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) src / shared / CMakeLists.txt: 38 (find_package)

- Configuring incomplete, errors have occurred!

Thank you for your help!

+4
source share
2 answers

there seems to be no acceleration. boost - required library - check readme

0
source

I know it has been a long time. But try Cmake with Zlib. Because I'm doing the same thing as you, but I wait until I get the MAc mini. If you find a solution, share it, because it will be useful for me and many others. Thanks.

0
source

Source: https://habr.com/ru/post/1388481/


All Articles