[CMake] FInd threads - iOS
Casey Basichis
caseybasichis at gmail.com
Thu Mar 14 14:10:08 EDT 2013
Hi,
I followed your instructions.
I also modified the make files a bit according to this -
http://ares.lids.mit.edu/redmine/projects/forest-game/wiki/Building_soci_for_iOS
Though I'm not using their scripts.
I compiled to 386:Arm7 fat target. Here are the errors I get. The thread
bits are at the bottom. Everything else seem ok - though the printed out
data suggest the compiler is not clang, it seems to be using it.
cmake
-DIOS_INCLUDE_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include
-DCMAKE_CXX_COMPILER=/usr/bin/clang++
-DCMAKE_OSX_ARCHITECTURES="i386;armv7" -DSOCI_EMPTY=OFF -DSOCI_MYSQL=OFF
-DSOCI_ODBC=OFF -DSOCI_ORACLE=OFF -DSOCI_POSTGRESQL=OFF -DSOCI_SQLITE3=ON
-DSOCI_TESTS=OFF ../
-- 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 - failed
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- 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 = OFF
-- Looking for SOCI dependencies:
-- Boost:
-- Boost_RELEASE_VERSION = 1.52.0
-- Boost_INCLUDE_DIR = /Prog/Frameworks/boost_1_52_0
-- Boost_LIBRARIES =
-- MySQL:
-- Performing Test HAVE_MYSQL_OPT_EMBEDDED_CONNECTION
-- Performing Test HAVE_MYSQL_OPT_EMBEDDED_CONNECTION - Failed
-- 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:
-- ODBC_INCLUDE_DIR = /usr/include
-- ODBC_LIBRARIES = /usr/lib/libiodbc.dylib
-- 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:
-- POSTGRESQL_INCLUDE_DIR = /usr/include
-- POSTGRESQL_LIBRARIES = /usr/lib/libpq.dylib
-- POSTGRESQL_VERSION = 9.1.4
-- SQLite3:
-- SQLITE3_INCLUDE_DIR = /usr/include
-- SQLITE3_LIBRARIES = /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
-- 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!
On Thu, Mar 14, 2013 at 11:01 AM, Nick Overdijk <nick at astrant.net> wrote:
> You should install boost in /usr/local with ./b2 install, then more
> packages will find it. Did you do this or not?
>
> Anyway, I just did this:
>
> git clone git://github.com/SOCI/soci.git
> cd soci
> cd src
> mkdir build
> cd build
> cmake ..
>
> And it worked for me. So what did you do exactly?
>
> On 2013-14-03, at 18:52:08 , Casey Basichis wrote:
>
> Hi,
>
> I'm tryng to build SOCI on iOS. I was able to enter my boost path in my
> ~/.profile to get that running, but I'm getting stuck on finding threads.
>
> -- Could NOT find Threads (missing: Threads_FOUND)
> CMake Error at core/CMakeLists.txt:22 (message):
> No thread library found
>
> Is there a way to set a path manually to a threading library like I did
> with boost? What can I do to get this building?
>
> Thanks,
> Casey
>
> --
> Casey James Basichis
> Composer - Adventure Time - Cartoon Network
> http://www.caseyjamesbasichis.com
> caseybasichis at gmail.com
> 310.387.7540
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
>
>
--
Casey James Basichis
Composer - Adventure Time - Cartoon Network
http://www.caseyjamesbasichis.com
caseybasichis at gmail.com
310.387.7540
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130314/4229d22a/attachment-0001.htm>
More information about the CMake
mailing list