Hi,
It looks like it is finding it in this simple test.
CASEYs-MacBook-Pro:CMAKETEST caseybasichis$ cat CMakeLists.txt
cmake_minimum_required (VERSION 2.8)
find_package(Threads)
message(STATUS "Threads_FOUND: ${Threads_FOUND}")
message(STATUS "CMAKE_THREAD_LIBS_INIT: ${CMAKE_THREAD_LIBS_INIT}")
message(STATUS "CMAKE_USE_SPROC_INIT: ${CMAKE_USE_SPROC_INIT}")
message(STATUS "CMAKE_USE_WIN32_THREADS_INIT:
${CMAKE_USE_WIN32_THREADS_INIT}")
message(STATUS "CMAKE_USE_PTHREADS_INIT: ${CMAKE_USE_PTHREADS_INIT}")
message(STATUS "CMAKE_HP_PTHREADS_INIT: ${CMAKE_HP_PTHREADS_INIT}")
message(STATUS "CMAKE_THREAD_PREFER_PTHREAD:
${CMAKE_THREAD_PREFER_PTHREAD}")
CASEYs-MacBook-Pro:CMAKETEST caseybasichis$ mkdir build
CASEYs-MacBook-Pro:CMAKETEST caseybasichis$ cd build/
CASEYs-MacBook-Pro:build caseybasichis$ cmake ..
-- The C compiler identification is Clang 4.2.0
-- The CXX compiler identification is Clang 4.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Threads_FOUND: TRUE
-- CMAKE_THREAD_LIBS_INIT:
-- CMAKE_USE_SPROC_INIT:
-- CMAKE_USE_WIN32_THREADS_INIT:
-- CMAKE_USE_PTHREADS_INIT: 1
-- CMAKE_HP_PTHREADS_INIT:
-- CMAKE_THREAD_PREFER_PTHREAD:
-- Configuring done
-- Generating done
-- Build files have been written to:
/Prog/Frameworks/soci/src/CMAKETEST/build
On Sat, Mar 16, 2013 at 9:09 AM, Mateusz Loskot <[email protected]> wrote:
> On 16 March 2013 04:32, caseyjames <[email protected]> wrote:
> >
> > I downloaded the most up to date script - I was downloading the zip
> instead
> > of the mercurial.
> >
> > The iOS SDK error seems to be gone, but the thread error is still there.
> >
> > Here is the output.
> >
> > cmake /Prog/Frameworks/soci/src/ -DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake
> > -GXcode -DWITH_BOOST=OFF
> >
> -DCMAKE_IOS_SDK_ROOT:STRING="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk"
> > -DWITH_MYSQL=OFF -DWITH_DB2=OFF -DWITH_POSTGRESQL=OFF -DWITH_ODBC=OFF
> > -DWITH_ORACLE=OFF -DWITH_FIREBIRD=OFF
> >
> > -- Configuring SOCI:
> > -- SOCI_VERSION = 3.2.0
> > -- SOCI_ABI_VERSION = 3.2
> > -- SOCI_PLATFORM_NAME = x86
> > -- SOCI_COMPILER_NAME = gcc-4.2.1
> > -- SOCI_STATIC = ON
> > -- SOCI_TESTS = ON
> > -- Looking for SOCI dependencies:
> > -- Boost: disabled, since WITH_BOOST=OFF
> > -- MySQL: disabled, since WITH_MYSQL=OFF
> > -- ODBC: disabled, since WITH_ODBC=OFF
> > -- Oracle: disabled, since WITH_ORACLE=OFF
> > -- PostgreSQL: disabled, since WITH_POSTGRESQL=OFF
> > -- SQLite3:
> > -- SQLITE3_INCLUDE_DIR =
> >
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include
> > -- SQLITE3_LIBRARIES =
> >
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/libsqlite3.dylib
> > -- Firebird: disabled, since WITH_FIREBIRD=OFF
> > -- DB2: disabled, since WITH_DB2=OFF
> > -- Configuring SOCI core library:
> > -- Looking for include file pthread.h
> > -- Looking for include file pthread.h - not found
> > -- Could NOT find Threads (missing: Threads_FOUND)
> > CMake Error at core/CMakeLists.txt:22 (message):
> > No thread library found
>
> Let's try simplest test possible to eliminate any issues outside SOCI
> first.
> Create CMakeLists.txt with the following content:
>
> $ cat CMakeLists.txt
> cmake_minimum_required (VERSION 2.8)
> find_package(Threads)
> message(STATUS "Threads_FOUND: ${Threads_FOUND}")
> message(STATUS "CMAKE_THREAD_LIBS_INIT: ${CMAKE_THREAD_LIBS_INIT}")
> message(STATUS "CMAKE_USE_SPROC_INIT: ${CMAKE_USE_SPROC_INIT}")
> message(STATUS "CMAKE_USE_WIN32_THREADS_INIT:
> ${CMAKE_USE_WIN32_THREADS_INIT}")
> message(STATUS "CMAKE_USE_PTHREADS_INIT: ${CMAKE_USE_PTHREADS_INIT}")
> message(STATUS "CMAKE_HP_PTHREADS_INIT: ${CMAKE_HP_PTHREADS_INIT}")
> message(STATUS "CMAKE_THREAD_PREFER_PTHREAD:
> ${CMAKE_THREAD_PREFER_PTHREAD}")
>
> then
>
> $ mkdir build
> $ cd build
> $ cmake ..
>
> Do you get threads found at all?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> soci-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/soci-users
>
--
Casey James Basichis
Composer - Adventure Time - Cartoon Network
http://www.caseyjamesbasichis.com
[email protected]
310.387.7540
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users