Discussion:
[soci-users] [CMake] FInd threads - iOS
Sergei Nikulov
2013-03-15 07:46:46 UTC
Permalink
Hi Sergei,
Thanks for the the tip on the environment.
I tried that command but I'm now getting a different error.
cmake /Prog/Frameworks/soci/src/
-DCMAKE_IOS_SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
-DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake -GXcode -DWITH_BOOST=OFF
-- SOCI_VERSION = 3.2.0
-- SOCI_ABI_VERSION = 3.2
CMake is unable to recognize compilation toolset to build SOCI for you!
CMakeLists.txt:41 (include)
-- Configuring incomplete, errors occurred!
Thanks,
Casey
Casey,
caseyjames
2013-03-15 08:08:15 UTC
Permalink
Hi Sergei,

I commented out line 50 which let me get a little farther - eventually
getting back to the Thread issue.

Here are three consecutive runs at first it gets hung up on the SDK, but
then it gets to the threads.

CASEYs-MacBook-Pro:build caseybasichis$ cmake /Prog/Frameworks/soci/src/
-DCMAKE_IOS_SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
-DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake -GXcode -DWITH_BOOST=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:
-- Performing Test HAVE_MYSQL_OPT_EMBEDDED_CONNECTION
CMake Error at /Prog/iOS.cmake:101 (message):
No iOS SDK's found in default seach path
/Developer/Platforms/iPhoneOS.platform/Developer. Manually set
CMAKE_IOS_SDK_ROOT or install the iOS SDK.
Call Stack (most recent call first):
/Prog/Frameworks/soci/src/build/CMakeFiles/2.8.10.2/CMakeSystem.cmake:1
(include)
CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Configuring incomplete, errors occurred!
CASEYs-MacBook-Pro:build caseybasichis$ cmake /Prog/Frameworks/soci/src/
-DCMAKE_IOS_SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
-DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake -GXcode -DWITH_BOOST=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:
-- MySQL not found.
-- MySQL Embedded not found.
-- WARNING:
-- MySQL not found, some libraries or features will be disabled.
-- See the documentation for MySQL or manually set these variables:
-- MYSQL_INCLUDE_DIR = MYSQL_INCLUDE_DIR-NOTFOUND
-- MYSQL_LIBRARIES = MYSQL_LIBRARIES-NOTFOUND
-- ODBC:
-- WARNING:
-- ODBC not found, some libraries or features will be disabled.
-- See the documentation for ODBC or manually set these variables:
-- ODBC_INCLUDE_DIR = ODBC_INCLUDE_DIR-NOTFOUND
-- ODBC_LIBRARIES = ODBC_LIBRARY-NOTFOUND
-- Oracle:
-- WARNING:
-- Oracle not found, some libraries or features will be disabled.
-- See the documentation for Oracle or manually set these variables:
-- ORACLE_INCLUDE_DIR =
-- ORACLE_LIBRARIES =
-- PostgreSQL:
-- WARNING:
-- PostgreSQL not found, some libraries or features will be disabled.
-- See the documentation for PostgreSQL or manually set these variables:
-- POSTGRESQL_INCLUDE_DIR =
POSTGRESQL_INCLUDE_DIR-NOTFOUND
-- POSTGRESQL_LIBRARIES = POSTGRESQL_LIBRARIES-NOTFOUND
-- POSTGRESQL_VERSION = unknown
-- 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:
-- WARNING:
-- Firebird not found, some libraries or features will be disabled.
-- See the documentation for Firebird or manually set these variables:
-- FIREBIRD_INCLUDE_DIR = FIREBIRD_INCLUDE_DIR-NOTFOUND
-- FIREBIRD_LIBRARIES = FIREBIRD_LIBRARIES-NOTFOUND
-- FIREBIRD_VERSION =
-- DB2:
-- WARNING:
-- DB2 not found, some libraries or features will be disabled.
-- See the documentation for DB2 or manually set these variables:
-- DB2_INCLUDE_DIR = DB2_INCLUDE_DIR-NOTFOUND
-- DB2_LIBRARIES = DB2_LIBRARY-NOTFOUND
-- Configuring SOCI core library:
-- Looking for include file pthread.h
CMake Error at /Prog/iOS.cmake:101 (message):
No iOS SDK's found in default seach path
/Developer/Platforms/iPhoneOS.platform/Developer. Manually set
CMAKE_IOS_SDK_ROOT or install the iOS SDK.
Call Stack (most recent call first):
/Prog/Frameworks/soci/src/build/CMakeFiles/2.8.10.2/CMakeSystem.cmake:1
(include)
CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Configuring incomplete, errors occurred!
CASEYs-MacBook-Pro:build caseybasichis$ cmake /Prog/Frameworks/soci/src/
-DCMAKE_IOS_SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
-DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake -GXcode -DWITH_BOOST=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:
-- MySQL not found.
-- MySQL Embedded not found.
-- WARNING:
-- MySQL not found, some libraries or features will be disabled.
-- See the documentation for MySQL or manually set these variables:
-- MYSQL_INCLUDE_DIR = MYSQL_INCLUDE_DIR-NOTFOUND
-- MYSQL_LIBRARIES = MYSQL_LIBRARIES-NOTFOUND
-- ODBC:
-- WARNING:
-- ODBC not found, some libraries or features will be disabled.
-- See the documentation for ODBC or manually set these variables:
-- ODBC_INCLUDE_DIR = ODBC_INCLUDE_DIR-NOTFOUND
-- ODBC_LIBRARIES = ODBC_LIBRARY-NOTFOUND
-- Oracle:
-- WARNING:
-- Oracle not found, some libraries or features will be disabled.
-- See the documentation for Oracle or manually set these variables:
-- ORACLE_INCLUDE_DIR =
-- ORACLE_LIBRARIES =
-- PostgreSQL:
-- WARNING:
-- PostgreSQL not found, some libraries or features will be disabled.
-- See the documentation for PostgreSQL or manually set these variables:
-- POSTGRESQL_INCLUDE_DIR =
POSTGRESQL_INCLUDE_DIR-NOTFOUND
-- POSTGRESQL_LIBRARIES = POSTGRESQL_LIBRARIES-NOTFOUND
-- POSTGRESQL_VERSION = unknown
-- 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:
-- WARNING:
-- Firebird not found, some libraries or features will be disabled.
-- See the documentation for Firebird or manually set these variables:
-- FIREBIRD_INCLUDE_DIR = FIREBIRD_INCLUDE_DIR-NOTFOUND
-- FIREBIRD_LIBRARIES = FIREBIRD_LIBRARIES-NOTFOUND
-- FIREBIRD_VERSION =
-- DB2:
-- WARNING:
-- DB2 not found, some libraries or features will be disabled.
-- See the documentation for DB2 or manually set these variables:
-- DB2_INCLUDE_DIR = DB2_INCLUDE_DIR-NOTFOUND
-- DB2_LIBRARIES = DB2_LIBRARY-NOTFOUND
-- Configuring SOCI core library:
-- Could NOT find Threads (missing: Threads_FOUND)
CMake Error at core/CMakeLists.txt:22 (message):
No thread library found


-- Configuring incomplete, errors occurred!



--
View this message in context: http://soci.6940.n7.nabble.com/Re-soci-users-CMake-FInd-threads-iOS-tp3400p3401.html
Sent from the soci-users mailing list archive at Nabble.com.
Sergei Nikulov
2013-03-15 08:19:49 UTC
Permalink
Hi Sergei,
I commented out line 50 which let me get a little farther - eventually
getting back to the Thread issue.
Here are three consecutive runs at first it gets hung up on the SDK, but
then it gets to the threads.
I see at least 3 invocation. The logs to noisy to understand what's going
on.

Can you try disable all back ends which is not required?

cmake <path to soci> -DCMAKE_IOS_SDK_ROOT=<path to SDK root>
-DCMAKE_TOOLCHAIN_FILE=<path to tool-chain file> -GXcode -DWITH_BOOST=OFF
-DWITH_MYSQL=OFF -DWITH_DB2=OFF -DWITH_POSTGRESQL=OFF -DWITH_ODBC=OFF
-DWITH_ORACLE=OFF -DWITH_FIREBIRD=OFF
Sergei Nikulov
2013-03-15 08:20:55 UTC
Permalink
Don't forget to delete all previosly generated files and start from the
clean folder.
Post by Sergei Nikulov
Hi Sergei,
I commented out line 50 which let me get a little farther - eventually
getting back to the Thread issue.
Here are three consecutive runs at first it gets hung up on the SDK, but
then it gets to the threads.
I see at least 3 invocation. The logs to noisy to understand what's going
on.
Can you try disable all back ends which is not required?
cmake <path to soci> -DCMAKE_IOS_SDK_ROOT=<path to SDK root>
-DCMAKE_TOOLCHAIN_FILE=<path to tool-chain file> -GXcode -DWITH_BOOST=OFF
-DWITH_MYSQL=OFF -DWITH_DB2=OFF -DWITH_POSTGRESQL=OFF -DWITH_ODBC=OFF
-DWITH_ORACLE=OFF -DWITH_FIREBIRD=OFF
--
Best Regards,
Sergei Nikulov
caseyjames
2013-03-15 08:26:29 UTC
Permalink
Here is the log from that. If I run

cmake /Prog/Frameworks/soci/src/
-DCMAKE_IOS_SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
-DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake -GXcode -DWITH_BOOST=OFF
-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
CMake Error at /Prog/iOS.cmake:101 (message):
No iOS SDK's found in default seach path
/Developer/Platforms/iPhoneOS.platform/Developer. Manually set
CMAKE_IOS_SDK_ROOT or install the iOS SDK.
Call Stack (most recent call first):
/Prog/Frameworks/soci/src/build/CMakeFiles/2.8.10.2/CMakeSystem.cmake:1
(include)
CMakeLists.txt:3 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Configuring incomplete, errors occurred!



--
View this message in context: http://soci.6940.n7.nabble.com/Re-soci-users-CMake-FInd-threads-iOS-tp3400p3404.html
Sent from the soci-users mailing list archive at Nabble.com.
Sergei Nikulov
2013-03-15 09:22:06 UTC
Permalink
Post by caseyjames
Here is the log from that. If I run
cmake /Prog/Frameworks/soci/src/
-DCMAKE_IOS_SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
-DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake -GXcode -DWITH_BOOST=OFF
-DWITH_MYSQL=OFF -DWITH_DB2=OFF -DWITH_POSTGRESQL=OFF -DWITH_ODBC=OFF
-DWITH_ORACLE=OFF -DWITH_FIREBIRD=OFF
-- 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
-- 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_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
-- Looking for include file pthread.h
No iOS SDK's found in default seach path
/Developer/Platforms/iPhoneOS.platform/Developer. Manually set
CMAKE_IOS_SDK_ROOT or install the iOS SDK.
/Prog/Frameworks/soci/src/build/CMakeFiles/2.8.10.2/CMakeSystem.cmake:1
(include)
CMakeLists.txt:3 (PROJECT)
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Configuring incomplete, errors occurred!
First of all it looks like you've downloaded toolchain which is dated by
2011, while repository shows 2012.
There is no message on line 101 "No iOS SDK's found in default seach path"
here http://code.google.com/p/ios-cmake/source/browse/toolchain/iOS.cmake

Could you please update tool chain file with latest version from repository?

Second thing - it really strange to me that following condition trigged "if
(NOT DEFINED CMAKE_IOS_SDK_ROOT)" anyway...
Could you please try supply this option to cmake as
-DCMAKE_IOS_SDK_ROOT:STRING="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk"

Don't forget to remove all files from previous attempt and invoke cmake
from clean folder.
--
Best Regards,
Sergei Nikulov
caseyjames
2013-03-16 04:32:37 UTC
Permalink
Hi,

Sorry for the delay, I had a deadline I had to hit.

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


-- Configuring incomplete, errors occurred!

Thanks,
Casey



--
View this message in context: http://soci.6940.n7.nabble.com/Re-soci-users-CMake-FInd-threads-iOS-tp3400p3408.html
Sent from the soci-users mailing list archive at Nabble.com.
Mateusz Loskot
2013-03-16 16:09:57 UTC
Permalink
Post by caseyjames
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
-- 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
-- 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_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
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND)
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
Casey Basichis
2013-03-16 16:22:42 UTC
Permalink
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
Post by caseyjames
Post by caseyjames
I downloaded the most up to date script - I was downloading the zip
instead
Post by caseyjames
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"
Post by caseyjames
-DWITH_MYSQL=OFF -DWITH_DB2=OFF -DWITH_POSTGRESQL=OFF -DWITH_ODBC=OFF
-DWITH_ORACLE=OFF -DWITH_FIREBIRD=OFF
-- 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
-- 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_INCLUDE_DIR =
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include
Post by caseyjames
-- SQLITE3_LIBRARIES =
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/libsqlite3.dylib
Post by caseyjames
-- Firebird: disabled, since WITH_FIREBIRD=OFF
-- DB2: disabled, since WITH_DB2=OFF
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND)
No thread library found
Let's try simplest test possible to eliminate any issues outside SOCI first.
$ 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}")
${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}")
${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
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
soci-users mailing list
https://lists.sourceforge.net/lists/listinfo/soci-users
--
Casey James Basichis
Composer - Adventure Time - Cartoon Network
http://www.caseyjamesbasichis.com
***@gmail.com
310.387.7540
Sergei Nikulov
2013-03-16 16:36:51 UTC
Permalink
Mateusz,

The problem is with cross compilation for IOS and not with Mac OSX itself.
I'm really don't know if ios sdk use pthreads, cause I don't have Apple HW
to check this.

Casey,
Try comment out or delete "include(FindThreads)" and "message(FATAL_ERROR
"No thread library found")" at at core/CMakeLists.txt
and repeat.
And as usual
Don't forget to remove all files from previous attempt and invoke cmake
from clean folder.
CMakeLists.txt with the following content:

Also you can try Mateusz's simple test with toolchain file and provide
results here.
--
Best Regards,
Sergei Nikulov
Mateusz Loskot
2013-03-16 16:53:51 UTC
Permalink
Post by Sergei Nikulov
Mateusz,
The problem is with cross compilation for IOS and not with Mac OSX itself.
Yes, that's what I undersatnd too.
Post by Sergei Nikulov
I'm really don't know if ios sdk use pthreads, cause I don't have Apple HW
to check this.
Same here.
Post by Sergei Nikulov
Also you can try Mateusz's simple test with toolchain file and provide
results here.
That's what I actually suggested, perhaps not clearly.
Yes, on OSX everything works as there are SOCI team members
who use OSX for development. The iOS is what we need to test here.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
caseyjames
2013-03-16 23:36:29 UTC
Permalink
Hey hey,

Sorry I missed the toolchain aspect. Here is that test.

cmake ../ -DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake

-- Toolchain using default iOS SDK:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND)
-- Threads_FOUND: FALSE
-- CMAKE_THREAD_LIBS_INIT:
-- CMAKE_USE_SPROC_INIT:
-- CMAKE_USE_WIN32_THREADS_INIT:
-- CMAKE_USE_PTHREADS_INIT:
-- CMAKE_HP_PTHREADS_INIT:
-- CMAKE_THREAD_PREFER_PTHREAD:
-- Configuring done
-- Generating done
-- Build files have been written to:
/Prog/Frameworks/soci/src/CMAKETEST/build




--
View this message in context: http://soci.6940.n7.nabble.com/Re-soci-users-CMake-FInd-threads-iOS-tp3400p3414.html
Sent from the soci-users mailing list archive at Nabble.com.
Mateusz Loskot
2013-03-17 00:00:59 UTC
Permalink
Post by caseyjames
Sorry I missed the toolchain aspect. Here is that test.
cmake ../ -DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND)
-- Threads_FOUND: FALSE
Casey, thanks for this test.
It confirms the problem is in the iOS toolchain, I'm afraid.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
caseyjames
2013-03-18 17:58:14 UTC
Permalink
Hi I was able to SOCI compiled. I constructed an xcode project with cmake
and manually built and lipo-ed the binaries into a fat binary.

#include "soci.h"
#include "soci-sqlite3.h"
soci::session sql(soci::sqlite3, dbPath);

The binaries themselves aren't missing the architecture
Architectures in the fat file: libsoci_sqlite3_static.a are: armv7 armv7s
i386

When I try to run a command I get a raft of errors. At a glance, do they
suggest an obvious issue of what might not be working?

----

Undefined symbols for architecture i386:
"_sqlite3_column_blob", referenced from:
soci::sqlite3_standard_into_type_backend::post_fetch(bool, bool,
soci::indicator*) in libsoci_sqlite3_static.a(standard-into-type.o)
"std::string::end()", referenced from:
soci::sqlite3_statement_backend::describe_column(int,
soci::data_type&, std::string&) in libsoci_sqlite3_static.a(statement.o)
"_sqlite3_column_type", referenced from:
soci::sqlite3_statement_backend::describe_column(int,
soci::data_type&, std::string&) in libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_standard_into_type_backend::post_fetch(bool, bool,
soci::indicator*) in libsoci_sqlite3_static.a(standard-into-type.o)
"_sqlite3_bind_blob", referenced from:
soci::sqlite3_statement_backend::bind_and_execute(int) in
libsoci_sqlite3_static.a(statement.o)
"_sqlite3_bind_text", referenced from:
soci::sqlite3_statement_backend::bind_and_execute(int) in
libsoci_sqlite3_static.a(statement.o)
"_sqlite3_step", referenced from:
soci::sqlite3_statement_backend::load_rowset(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::load_one() in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::describe_column(int,
soci::data_type&, std::string&) in libsoci_sqlite3_static.a(statement.o)
"_sqlite3_changes", referenced from:
soci::sqlite3_statement_backend::get_affected_rows() in
libsoci_sqlite3_static.a(statement.o)
"_sqlite3_column_count", referenced from:
soci::sqlite3_statement_backend::load_rowset(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::prepare_for_describe() in
libsoci_sqlite3_static.a(statement.o)
"_sqlite3_reset", referenced from:
soci::sqlite3_statement_backend::reset_if_needed() in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::bind_and_execute(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::execute(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::describe_column(int,
soci::data_type&, std::string&) in libsoci_sqlite3_static.a(statement.o)
"std::string::compare(char const*) const", referenced from:
bool std::operator==<char, std::char_traits&lt;char>,
std::allocator<char> >(char const*, std::basic_string<char,
std::char_traits&lt;char>, std::allocator<char> > const&) in
libsoci_sqlite3_static.a(session.o)
"_sqlite3_column_decltype", referenced from:
soci::sqlite3_statement_backend::describe_column(int,
soci::data_type&, std::string&) in libsoci_sqlite3_static.a(statement.o)
"_sqlite3_close", referenced from:
soci::sqlite3_session_backend::clean_up() in
libsoci_sqlite3_static.a(session.o)
"_sqlite3_finalize", referenced from:
soci::sqlite3_statement_backend::clean_up() in
libsoci_sqlite3_static.a(statement.o)
"_sqlite3_exec", referenced from:
(anonymous namespace)::execude_hardcoded(sqlite_api::sqlite3*, char
const*, char const*) in libsoci_sqlite3_static.a(session.o)
"_sqlite3_column_bytes", referenced from:
soci::sqlite3_standard_into_type_backend::post_fetch(bool, bool,
soci::indicator*) in libsoci_sqlite3_static.a(standard-into-type.o)
"_sqlite3_bind_null", referenced from:
soci::sqlite3_statement_backend::bind_and_execute(int) in
libsoci_sqlite3_static.a(statement.o)
"std::string::find(char const*, unsigned long) const", referenced from:
(anonymous namespace)::get_default_paths() in
libsoci_core_static.a(backend-loader.o)
soci::sqlite3_statement_backend::describe_column(int,
soci::data_type&, std::string&) in libsoci_sqlite3_static.a(statement.o)
"_sqlite3_free", referenced from:
(anonymous namespace)::execude_hardcoded(sqlite_api::sqlite3*, char
const*, char const*) in libsoci_sqlite3_static.a(session.o)
"std::allocator<char>::std::allocator(std::allocator<char> const&)",
referenced from:
std::vector<char, std::allocator&lt;char> >::_M_erase_at_end(char*) in
libsoci_sqlite3_static.a(vector-into-type.o)
std::vector<char, std::allocator&lt;char>
::_M_fill_insert(__gnu_cxx::__normal_iterator<char*, std::vector&lt;char,
std::allocator&lt;char> > >, unsigned long, char const&) in
libsoci_sqlite3_static.a(vector-into-type.o)
"std::basic_ostream<char, std::char_traits&lt;char> >&
std::operator<<<char, std::char_traits&lt;char>, std::allocator<char>
(std::basic_ostream<char, std::char_traits&lt;char> >&,
std::basic_string<char, std::char_traits&lt;char>, std::allocator<char> >
const&)", referenced from:
soci::sqlite3_vector_use_type_backend::bind_by_name(std::string
const&, void*, soci::details::exchange_type) in
libsoci_sqlite3_static.a(vector-use-type.o)
soci::sqlite3_standard_use_type_backend::bind_by_name(std::string
const&, void*, soci::details::exchange_type, bool) in
libsoci_sqlite3_static.a(standard-use-type.o)
"std::basic_stringstream<char, std::char_traits&lt;char>,
std::allocator<char> >::basic_stringstream(std::string const&,
std::_Ios_Openmode)", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
"std::string::append(std::string const&)", referenced from:
std::basic_string<char, std::char_traits&lt;char>,
std::allocator<char> > std::operator+<char, std::char_traits&lt;char>,
std::allocator<char> >(char const*, std::basic_string<char,
std::char_traits&lt;char>, std::allocator<char> > const&) in
libsoci_core_static.a(backend-loader.o)
std::basic_string<char, std::char_traits&lt;char>,
std::allocator<char> > std::operator+<char, std::char_traits&lt;char>,
std::allocator<char> >(std::basic_string<char, std::char_traits&lt;char>,
std::allocator<char> > const&, std::basic_string<char,
std::char_traits&lt;char>, std::allocator<char> > const&) in
libsoci_core_static.a(backend-loader.o)
"std::string::operator=(char const*)", referenced from:
soci::sqlite3_statement_backend::load_rowset(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::describe_column(int,
soci::data_type&, std::string&) in libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_vector_use_type_backend::pre_use(soci::indicator const*)
in libsoci_sqlite3_static.a(vector-use-type.o)
soci::sqlite3_standard_use_type_backend::pre_use(soci::indicator
const*) in libsoci_sqlite3_static.a(standard-use-type.o)
"std::string::operator[](unsigned long)", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
"std::string::erase(unsigned long, unsigned long)", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
"std::basic_istream<char, std::char_traits&lt;char> >& std::getline<char,
std::char_traits&lt;char>, std::allocator<char> >(std::basic_istream<char,
std::char_traits&lt;char> >&, std::basic_string<char,
std::char_traits&lt;char>, std::allocator<char> >&, char)", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
"std::basic_istringstream<char, std::char_traits&lt;char>,
std::allocator<char> >::basic_istringstream(std::string const&,
std::_Ios_Openmode)", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
"std::istream::operator>>(int&)", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
"std::string::c_str() const", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
soci::sqlite3_statement_backend::prepare(std::string const&,
soci::details::statement_type) in libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::bind_and_execute(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_vector_use_type_backend::bind_by_name(std::string
const&, void*, soci::details::exchange_type) in
libsoci_sqlite3_static.a(vector-use-type.o)
soci::sqlite3_vector_use_type_backend::pre_use(soci::indicator const*)
in libsoci_sqlite3_static.a(vector-use-type.o)
soci::sqlite3_vector_into_type_backend::post_fetch(bool,
soci::indicator*) in libsoci_sqlite3_static.a(vector-into-type.o)
soci::sqlite3_standard_use_type_backend::bind_by_name(std::string
const&, void*, soci::details::exchange_type, bool) in
libsoci_sqlite3_static.a(standard-use-type.o)
...
"std::basic_stringstream<char, std::char_traits&lt;char>,
std::allocator<char> >::str() const", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
"_sqlite3_errmsg", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
soci::sqlite3_statement_backend::prepare(std::string const&,
soci::details::statement_type) in libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::load_rowset(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::load_one() in
libsoci_sqlite3_static.a(statement.o)
"std::basic_ostringstream<char, std::char_traits&lt;char>,
std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)", referenced
from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
(anonymous namespace)::execude_hardcoded(sqlite_api::sqlite3*, char
const*, char const*) in libsoci_sqlite3_static.a(session.o)
soci::sqlite3_statement_backend::prepare(std::string const&,
soci::details::statement_type) in libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::load_rowset(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::load_one() in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_vector_use_type_backend::bind_by_name(std::string
const&, void*, soci::details::exchange_type) in
libsoci_sqlite3_static.a(vector-use-type.o)
soci::sqlite3_standard_use_type_backend::bind_by_name(std::string
const&, void*, soci::details::exchange_type, bool) in
libsoci_sqlite3_static.a(standard-use-type.o)
...
"std::allocator<char>::std::allocator()", referenced from:
soci::connection_pool::give_back(unsigned long) in
libsoci_core_static.a(connection-pool.o)
(anonymous namespace)::get_default_paths() in
libsoci_core_static.a(backend-loader.o)
soci::sqlite3_session_backend::get_backend_name() const in
libsoci_sqlite3_static.a(session.o)
soci::sqlite3_statement_backend::bind_and_execute(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::execute(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::describe_column(int,
soci::data_type&, std::string&) in libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_vector_use_type_backend::bind_by_pos(int&, void*,
soci::details::exchange_type) in libsoci_sqlite3_static.a(vector-use-type.o)
...
"std::_Rb_tree_increment(std::_Rb_tree_node_base*)", referenced from:
std::_Rb_tree_iterator<std::pair&lt;std::string const, (anonymous
namespace)::info> >::operator++() in libsoci_core_static.a(backend-loader.o)
"std::string::substr(unsigned long, unsigned long) const", referenced
from:
(anonymous namespace)::get_default_paths() in
libsoci_core_static.a(backend-loader.o)
"std::string::length() const", referenced from:
soci::sqlite3_statement_backend::bind_and_execute(int) in
libsoci_sqlite3_static.a(statement.o)
"std::basic_stringstream<char, std::char_traits&lt;char>,
std::allocator<char> >::~basic_stringstream()", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
"std::__throw_length_error(char const*)", referenced from:
std::vector<std::string, std::allocator&lt;std::string>
::_M_insert_aux(__gnu_cxx::__normal_iterator<std::string*,
std::vector&lt;std::string, std::allocator&lt;std::string> > >, std::string
const&) in libsoci_core_static.a(backend-loader.o)
std::vector<soci::sqlite3_column,
std::allocator&lt;soci::sqlite3_column>
::_M_fill_insert(__gnu_cxx::__normal_iterator<soci::sqlite3_column*,
std::vector&lt;soci::sqlite3_column, std::allocator&lt;soci::sqlite3_column>
, unsigned long, soci::sqlite3_column const&) in
libsoci_sqlite3_static.a(statement.o)
std::vector<std::vector&lt;soci::sqlite3_column,
std::allocator&lt;soci::sqlite3_column> >,
std::allocator<std::vector&lt;soci::sqlite3_column,
std::allocator&lt;soci::sqlite3_column> > >
::_M_fill_insert(__gnu_cxx::__normal_iterator<std::vector&lt;soci::sqlite3_column,
std::allocator&lt;soci::sqlite3_column> >*,
std::vector<std::vector&lt;soci::sqlite3_column,
std::allocator&lt;soci::sqlite3_column> >,
std::allocator<std::vector&lt;soci::sqlite3_column,
std::allocator&lt;soci::sqlite3_column> > > > >, unsigned long,
std::vector<soci::sqlite3_column, std::allocator&lt;soci::sqlite3_column> >
const&) in libsoci_sqlite3_static.a(statement.o)
std::vector<tm, std::allocator&lt;tm>
::_M_fill_insert(__gnu_cxx::__normal_iterator<tm*, std::vector&lt;tm,
std::allocator&lt;tm> > >, unsigned long, tm const&) in
libsoci_sqlite3_static.a(vector-into-type.o)
std::vector<std::string, std::allocator&lt;std::string>
::_M_fill_insert(__gnu_cxx::__normal_iterator<std::string*,
std::vector&lt;std::string, std::allocator&lt;std::string> > >, unsigned
long, std::string const&) in libsoci_sqlite3_static.a(vector-into-type.o)
std::vector<double, std::allocator&lt;double>
::_M_fill_insert(__gnu_cxx::__normal_iterator<double*,
std::vector&lt;double, std::allocator&lt;double> > >, unsigned long, double
const&) in libsoci_sqlite3_static.a(vector-into-type.o)
std::vector<unsigned long long, std::allocator&lt;unsigned long long>
::_M_fill_insert(__gnu_cxx::__normal_iterator<unsigned long long*,
std::vector&lt;unsigned long long, std::allocator&lt;unsigned long long> >
, unsigned long, unsigned long long const&) in
libsoci_sqlite3_static.a(vector-into-type.o)
...
"std::string::append(char const*, unsigned long)", referenced from:
std::basic_string<char, std::char_traits&lt;char>,
std::allocator<char> > std::operator+<char, std::char_traits&lt;char>,
std::allocator<char> >(char const*, std::basic_string<char,
std::char_traits&lt;char>, std::allocator<char> > const&) in
libsoci_core_static.a(backend-loader.o)
"std::basic_ios<char, std::char_traits&lt;char> >::eof() const",
referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
"std::string::assign(char const*)", referenced from:
soci::sqlite3_standard_into_type_backend::post_fetch(bool, bool,
soci::indicator*) in libsoci_sqlite3_static.a(standard-into-type.o)
"std::runtime_error::runtime_error(std::string const&)", referenced from:
soci::soci_error::soci_error(std::string const&) in
libsoci_core_static.a(error.o)
"std::basic_string<char, std::char_traits&lt;char>, std::allocator<char>
std::basic_string<char, std::char_traits&lt;char>,
std::allocator<char> > std::operator+<char, std::char_traits&lt;char>,
std::allocator<char> >(char const*, std::basic_string<char,
std::char_traits&lt;char>, std::allocator<char> > const&) in
libsoci_core_static.a(backend-loader.o)

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)

soci::sqlite3_vector_use_type_backend::sqlite3_vector_use_type_backend(soci::sqlite3_statement_backend&)
in libsoci_sqlite3_static.a(statement.o)

soci::sqlite3_standard_use_type_backend::sqlite3_standard_use_type_backend(soci::sqlite3_statement_backend&)
in libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_column::sqlite3_column() in
libsoci_sqlite3_static.a(statement.o)
void soci::details::sqlite3::resize_vector<std::string>(void*,
unsigned long) in libsoci_sqlite3_static.a(vector-into-type.o)
"std::string::append(char const*)", referenced from:
std::basic_string<char, std::char_traits&lt;char>,
std::allocator<char> > std::operator+<char, std::char_traits&lt;char>,
std::allocator<char> >(std::basic_string<char, std::char_traits&lt;char>,
std::allocator<char> > const&, char const*) in
libsoci_core_static.a(backend-loader.o)
"_sqlite3_column_text", referenced from:
soci::sqlite3_statement_backend::load_rowset(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_standard_into_type_backend::post_fetch(bool, bool,
soci::indicator*) in libsoci_sqlite3_static.a(standard-into-type.o)
"_sqlite3_prepare", referenced from:
soci::sqlite3_statement_backend::prepare(std::string const&,
soci::details::statement_type) in libsoci_sqlite3_static.a(statement.o)
"_sqlite3_bind_parameter_index", referenced from:
soci::sqlite3_vector_use_type_backend::bind_by_name(std::string
const&, void*, soci::details::exchange_type) in
libsoci_sqlite3_static.a(vector-use-type.o)
soci::sqlite3_standard_use_type_backend::bind_by_name(std::string
const&, void*, soci::details::exchange_type, bool) in
libsoci_sqlite3_static.a(standard-use-type.o)
"_sqlite3_busy_timeout", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
"std::string::operator=(std::string const&)", referenced from:
std::vector<std::string, std::allocator&lt;std::string>
::_M_insert_aux(__gnu_cxx::__normal_iterator<std::string*,
std::vector&lt;std::string, std::allocator&lt;std::string> > >, std::string
const&) in libsoci_core_static.a(backend-loader.o)
std::string* std::__copy_backward<false,
std::random_access_iterator_tag>::__copy_b<std::string*,
std::string*>(std::string*, std::string*, std::string*) in
libsoci_core_static.a(backend-loader.o)
std::string* std::__copy<false,
std::random_access_iterator_tag>::copy<std::string*,
std::string*>(std::string*, std::string*, std::string*) in
libsoci_core_static.a(backend-loader.o)
std::string* std::__copy<false,
std::random_access_iterator_tag>::copy<std::string const*,
std::string*>(std::string const*, std::string const*, std::string*) in
libsoci_core_static.a(backend-loader.o)

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
soci::sqlite3_column::operator=(soci::sqlite3_column const&) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_vector_use_type_backend::bind_by_name(std::string
const&, void*, soci::details::exchange_type) in
libsoci_sqlite3_static.a(vector-use-type.o)
...
"_sqlite3_column_name", referenced from:
soci::sqlite3_statement_backend::describe_column(int,
soci::data_type&, std::string&) in libsoci_sqlite3_static.a(statement.o)
"std::string::begin()", referenced from:
soci::sqlite3_statement_backend::describe_column(int,
soci::data_type&, std::string&) in libsoci_sqlite3_static.a(statement.o)
"std::basic_ostringstream<char, std::char_traits&lt;char>,
std::allocator<char> >::str() const", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
(anonymous namespace)::execude_hardcoded(sqlite_api::sqlite3*, char
const*, char const*) in libsoci_sqlite3_static.a(session.o)
soci::sqlite3_statement_backend::prepare(std::string const&,
soci::details::statement_type) in libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::load_rowset(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::load_one() in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_vector_use_type_backend::bind_by_name(std::string
const&, void*, soci::details::exchange_type) in
libsoci_sqlite3_static.a(vector-use-type.o)
soci::sqlite3_standard_use_type_backend::bind_by_name(std::string
const&, void*, soci::details::exchange_type, bool) in
libsoci_sqlite3_static.a(standard-use-type.o)
...
"std::basic_string<char, std::char_traits&lt;char>, std::allocator<char>
void std::_Construct<std::string, std::string>(std::string*,
std::string const&) in libsoci_core_static.a(backend-loader.o)
__gnu_cxx::new_allocator<std::string>::construct(std::string*,
std::string const&) in libsoci_core_static.a(backend-loader.o)
std::vector<std::string, std::allocator&lt;std::string>
::_M_insert_aux(__gnu_cxx::__normal_iterator<std::string*,
std::vector&lt;std::string, std::allocator&lt;std::string> > >, std::string
const&) in libsoci_core_static.a(backend-loader.o)
std::basic_string<char, std::char_traits&lt;char>,
std::allocator<char> > std::operator+<char, std::char_traits&lt;char>,
std::allocator<char> >(std::basic_string<char, std::char_traits&lt;char>,
std::allocator<char> > const&, char const*) in
libsoci_core_static.a(backend-loader.o)
std::basic_string<char, std::char_traits&lt;char>,
std::allocator<char> > std::operator+<char, std::char_traits&lt;char>,
std::allocator<char> >(std::basic_string<char, std::char_traits&lt;char>,
std::allocator<char> > const&, std::basic_string<char,
std::char_traits&lt;char>, std::allocator<char> > const&) in
libsoci_core_static.a(backend-loader.o)

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)

soci::sqlite3_statement_backend::rewrite_for_procedure_call(std::string
const&) in libsoci_sqlite3_static.a(statement.o)
...
"soci::session::session(soci::backend_factory const&,
std::__1::basic_string<char, std::__1::char_traits&lt;char>,
std::__1::allocator<char> > const&)", referenced from:
SoFancyApp::setup() in SoFancyApp.o
"_sqlite3_open", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
"std::allocator<char>::~std::allocator()", referenced from:
soci::connection_pool::give_back(unsigned long) in
libsoci_core_static.a(connection-pool.o)
(anonymous namespace)::get_default_paths() in
libsoci_core_static.a(backend-loader.o)
soci::sqlite3_session_backend::get_backend_name() const in
libsoci_sqlite3_static.a(session.o)
soci::sqlite3_statement_backend::bind_and_execute(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::execute(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::describe_column(int,
soci::data_type&, std::string&) in libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_vector_use_type_backend::bind_by_pos(int&, void*,
soci::details::exchange_type) in libsoci_sqlite3_static.a(vector-use-type.o)
...
"std::string::reserve(unsigned long)", referenced from:
std::basic_string<char, std::char_traits&lt;char>,
std::allocator<char> > std::operator+<char, std::char_traits&lt;char>,
std::allocator<char> >(char const*, std::basic_string<char,
std::char_traits&lt;char>, std::allocator<char> > const&) in
libsoci_core_static.a(backend-loader.o)
"std::string::size() const", referenced from:
(anonymous namespace)::get_default_paths() in
libsoci_core_static.a(backend-loader.o)
std::basic_string<char, std::char_traits&lt;char>,
std::allocator<char> > std::operator+<char, std::char_traits&lt;char>,
std::allocator<char> >(char const*, std::basic_string<char,
std::char_traits&lt;char>, std::allocator<char> > const&) in
libsoci_core_static.a(backend-loader.o)

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
soci::sqlite3_statement_backend::prepare(std::string const&,
soci::details::statement_type) in libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_vector_use_type_backend::pre_use(soci::indicator const*)
in libsoci_sqlite3_static.a(vector-use-type.o)
soci::sqlite3_standard_use_type_backend::pre_use(soci::indicator
const*) in libsoci_sqlite3_static.a(standard-use-type.o)
"std::string::find(char, unsigned long) const", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
"std::string::empty() const", referenced from:
(anonymous namespace)::get_default_paths() in
libsoci_core_static.a(backend-loader.o)

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
"std::basic_string<char, std::char_traits&lt;char>, std::allocator<char>
soci::session::~session() in libsoci_core_static.a(session.o)
std::pair<char const* const, std::string>::~pair() in
libsoci_core_static.a(session.o)
soci::connection_parameters::~connection_parameters() in
libsoci_core_static.a(session.o)
soci::connection_pool::give_back(unsigned long) in
libsoci_core_static.a(connection-pool.o)
std::pair<std::string const, (anonymous namespace)::info>::~pair() in
libsoci_core_static.a(backend-loader.o)
(anonymous namespace)::get_default_paths() in
libsoci_core_static.a(backend-loader.o)
void std::_Destroy<std::string>(std::string*) in
libsoci_core_static.a(backend-loader.o)
...
"std::basic_ostringstream<char, std::char_traits&lt;char>,
std::allocator<char> >::~basic_ostringstream()", referenced from:
soci::session::~session() in libsoci_core_static.a(session.o)

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
(anonymous namespace)::execude_hardcoded(sqlite_api::sqlite3*, char
const*, char const*) in libsoci_sqlite3_static.a(session.o)
soci::sqlite3_statement_backend::prepare(std::string const&,
soci::details::statement_type) in libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::load_rowset(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::load_one() in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_vector_use_type_backend::bind_by_name(std::string
const&, void*, soci::details::exchange_type) in
libsoci_sqlite3_static.a(vector-use-type.o)
...
"std::basic_istringstream<char, std::char_traits&lt;char>,
std::allocator<char> >::~basic_istringstream()", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
"std::basic_string<char, std::char_traits&lt;char>, std::allocator<char>
soci::connection_pool::give_back(unsigned long) in
libsoci_core_static.a(connection-pool.o)
(anonymous namespace)::get_default_paths() in
libsoci_core_static.a(backend-loader.o)
soci::sqlite3_session_backend::get_backend_name() const in
libsoci_sqlite3_static.a(session.o)
soci::sqlite3_statement_backend::bind_and_execute(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::execute(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::describe_column(int,
soci::data_type&, std::string&) in libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_vector_use_type_backend::bind_by_pos(int&, void*,
soci::details::exchange_type) in libsoci_sqlite3_static.a(vector-use-type.o)
...
"std::basic_ostream<char, std::char_traits&lt;char> >&
std::operator<<<std::char_traits&lt;char> >(std::basic_ostream<char,
std::char_traits&lt;char> >&, char const*)", referenced from:

soci::sqlite3_session_backend::sqlite3_session_backend(soci::connection_parameters
const&) in libsoci_sqlite3_static.a(session.o)
(anonymous namespace)::execude_hardcoded(sqlite_api::sqlite3*, char
const*, char const*) in libsoci_sqlite3_static.a(session.o)
soci::sqlite3_statement_backend::prepare(std::string const&,
soci::details::statement_type) in libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::load_rowset(int) in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_statement_backend::load_one() in
libsoci_sqlite3_static.a(statement.o)
soci::sqlite3_vector_use_type_backend::bind_by_name(std::string
const&, void*, soci::details::exchange_type) in
libsoci_sqlite3_static.a(vector-use-type.o)
soci::sqlite3_standard_use_type_backend::bind_by_name(std::string
const&, void*, soci::details::exchange_type, bool) in
libsoci_sqlite3_static.a(standard-use-type.o)
...
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see
invocation)



--
View this message in context: http://soci.6940.n7.nabble.com/Re-soci-users-CMake-FInd-threads-iOS-tp3400p3420.html
Sent from the soci-users mailing list archive at Nabble.com.
Mateusz Loskot
2013-03-18 18:22:39 UTC
Permalink
Post by caseyjames
Hi I was able to SOCI compiled. I constructed an xcode project with cmake
and manually built and lipo-ed the binaries into a fat binary.
#include "soci.h"
#include "soci-sqlite3.h"
soci::session sql(soci::sqlite3, dbPath);
The binaries themselves aren't missing the architecture
Architectures in the fat file: libsoci_sqlite3_static.a are: armv7 armv7s
i386
When I try to run a command I get a raft of errors. At a glance, do they
suggest an obvious issue of what might not be working?
----
[...]
These are linker errors, looks like SQLite3 binaries missing for
one of the architectures. I have no idea how the iOS build toochain
supports multi-architecture binaries.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
caseyjames
2013-03-16 04:34:34 UTC
Permalink
Hi,

Sorry for the delay, I had a deadline I had to hit.

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


-- Configuring incomplete, errors occurred!

Thanks,
Casey


On Fri, Mar 15, 2013 at 2:22 AM, Sergei Nikulov [via SOCI] <
2013/3/15 caseyjames <[hidden email]<http://user/SendEmail.jtp?type=node&node=3405&i=0>
Here is the log from that. If I run
cmake /Prog/Frameworks/soci/src/
-DCMAKE_IOS_SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
-DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake -GXcode -DWITH_BOOST=OFF
-DWITH_MYSQL=OFF -DWITH_DB2=OFF -DWITH_POSTGRESQL=OFF -DWITH_ODBC=OFF
-DWITH_ORACLE=OFF -DWITH_FIREBIRD=OFF
-- 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
-- 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_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
-- Looking for include file pthread.h
No iOS SDK's found in default seach path
/Developer/Platforms/iPhoneOS.platform/Developer. Manually set
CMAKE_IOS_SDK_ROOT or install the iOS SDK.
/Prog/Frameworks/soci/src/build/CMakeFiles/2.8.10.2/CMakeSystem.cmake:1
(include)
CMakeLists.txt:3 (PROJECT)
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Configuring incomplete, errors occurred!
First of all it looks like you've downloaded toolchain which is dated by
2011, while repository shows 2012.
There is no message on line 101 "No iOS SDK's found in default seach path"
here http://code.google.com/p/ios-cmake/source/browse/toolchain/iOS.cmake
Could you please update tool chain file with latest version from repository?
Second thing - it really strange to me that following condition trigged
"if (NOT DEFINED CMAKE_IOS_SDK_ROOT)" anyway...
Could you please try supply this option to cmake as
-DCMAKE_IOS_SDK_ROOT:STRING="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk"
Don't forget to remove all files from previous attempt and invoke cmake
from clean folder.
--
Best Regards,
Sergei Nikulov
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
soci-users mailing list
[hidden email] <http://user/SendEmail.jtp?type=node&node=3405&i=1>
https://lists.sourceforge.net/lists/listinfo/soci-users
------------------------------
If you reply to this email, your message will be added to the discussion
http://soci.6940.n7.nabble.com/Re-soci-users-CMake-FInd-threads-iOS-tp3400p3405.html
To unsubscribe from Re: [soci-users] [CMake] FInd threads - iOS, click
here<http://soci.6940.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3400&code=Y2FzZXliYXNpY2hpc0BnbWFpbC5jb218MzQwMHw5NzQ2MTQ2MjI=>
.
NAML<http://soci.6940.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
--
Casey James Basichis
Composer - Adventure Time - Cartoon Network
http://www.caseyjamesbasichis.com
***@gmail.com
310.387.7540




--
View this message in context: http://soci.6940.n7.nabble.com/Re-soci-users-CMake-FInd-threads-iOS-tp3400p3409.html
Sent from the soci-users mailing list archive at Nabble.com.
Mateusz Loskot
2013-03-15 10:24:33 UTC
Permalink
Post by Sergei Nikulov
Thanks for the the tip on the environment.
I tried that command but I'm now getting a different error.
cmake /Prog/Frameworks/soci/src/
-DCMAKE_IOS_SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
-DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake -GXcode -DWITH_BOOST=OFF
-- SOCI_VERSION = 3.2.0
-- SOCI_ABI_VERSION = 3.2
CMake is unable to recognize compilation toolset to build SOCI for you!
CMakeLists.txt:41 (include)
-- Configuring incomplete, errors occurred!
Casey,
Loading...