title: How to compile CLucene for iOS?
body: <p>I am trying to compile CLucene for iOS and running into some problems.</p>
  
  <p>Here are the steps I've taken</p>
  
  <ol>
  <li>Modify the CLucene CMakeLists.txt to disable multithreading</li>
  <li>Create a "build-ios" directory in the CLucene source directory</li>
  <li>Drop the cmake file from this site into the cmake directory <a href="http://code.google.com/p/ios-cmake/" rel="nofollow">http://code.google.com/p/ios-cmake/</a></li>
  <li>run the following command "cmake -DCMAKE_TOOLCHAIN_FILE=./iOS.cmake -GXcode ../"</li>
  </ol>
  
  <p>Here's the output from that command. Can someone help me out with the error?</p>
  
  <p>-- Toolchain using default iOS SDK: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk
  -- Looking for include files CMAKE_HAVE_PTHREAD_H
  -- Looking 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 at /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 (most recent 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)</p>
  
  <p>-- Configuring incomplete, errors occurred!</p>
  
  <p>Thanks for your help!</p>