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

Reply via email to