<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hmm, well I think you're missing some variables. The buildscript up on the site could use some updates, but that should be your ticket.<div><br><div><div>On 2013-14-03, at 19:10:08 , Casey Basichis wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div style="">Hi,</div><div style=""><br></div>I followed your instructions.<div><br></div><div style="">I also modified the make files a bit according to this - <a href="http://ares.lids.mit.edu/redmine/projects/forest-game/wiki/Building_soci_for_iOS">http://ares.lids.mit.edu/redmine/projects/forest-game/wiki/Building_soci_for_iOS</a> Though I'm not using their scripts.</div>
<div style=""><br></div><div style="">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.</div>
<div style=""><br></div><div style=""><div>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 ../</div>
<div><br></div><div><div>-- The C compiler identification is Clang 4.2.0</div><div>-- The CXX compiler identification is Clang 4.2.0</div><div>-- Check for working C compiler: /usr/bin/cc</div><div>-- Check for working C compiler: /usr/bin/cc -- works</div>
<div>-- Detecting C compiler ABI info</div><div>-- Detecting C compiler ABI info - failed</div><div>-- Check for working CXX compiler: /usr/bin/clang++</div><div>-- Check for working CXX compiler: /usr/bin/clang++ -- works</div>
<div>-- Detecting CXX compiler ABI info</div><div>-- Detecting CXX compiler ABI info - failed</div><div>-- Configuring SOCI: </div><div>-- SOCI_VERSION = 3.2.0 </div><div>-- SOCI_ABI_VERSION = 3.2 </div>
<div>-- SOCI_PLATFORM_NAME = x86 </div><div>-- SOCI_COMPILER_NAME = gcc-4.2.1 </div><div>-- SOCI_STATIC = ON </div><div>-- SOCI_TESTS = OFF </div>
<div>-- Looking for SOCI dependencies: </div><div>-- Boost: </div><div>-- Boost_RELEASE_VERSION = 1.52.0 </div><div>-- Boost_INCLUDE_DIR = /Prog/Frameworks/boost_1_52_0 </div><div>
-- Boost_LIBRARIES = </div><div>-- MySQL: </div><div>-- Performing Test HAVE_MYSQL_OPT_EMBEDDED_CONNECTION</div><div>-- Performing Test HAVE_MYSQL_OPT_EMBEDDED_CONNECTION - Failed</div><div>-- MySQL not found.</div>
<div>-- MySQL Embedded not found.</div><div>-- WARNING: </div><div>-- MySQL not found, some libraries or features will be disabled. </div><div>-- See the documentation for MySQL or manually set these variables: </div><div>
-- MYSQL_INCLUDE_DIR = MYSQL_INCLUDE_DIR-NOTFOUND </div><div>-- MYSQL_LIBRARIES = MYSQL_LIBRARIES-NOTFOUND </div><div>-- ODBC: </div><div>-- ODBC_INCLUDE_DIR = /usr/include </div>
<div>-- ODBC_LIBRARIES = /usr/lib/libiodbc.dylib </div><div>-- Oracle: </div><div>-- WARNING: </div><div>-- Oracle not found, some libraries or features will be disabled. </div><div>-- See the documentation for Oracle or manually set these variables: </div>
<div>-- ORACLE_INCLUDE_DIR = </div><div>-- ORACLE_LIBRARIES = </div><div>-- PostgreSQL: </div><div>-- POSTGRESQL_INCLUDE_DIR = /usr/include </div><div>-- POSTGRESQL_LIBRARIES = /usr/lib/libpq.dylib </div>
<div>-- POSTGRESQL_VERSION = 9.1.4 </div><div>-- SQLite3: </div><div>-- SQLITE3_INCLUDE_DIR = /usr/include </div><div>-- SQLITE3_LIBRARIES = /usr/lib/libsqlite3.dylib </div>
<div>-- Firebird: </div><div>-- WARNING: </div><div>-- Firebird not found, some libraries or features will be disabled. </div><div>-- See the documentation for Firebird or manually set these variables: </div><div>-- FIREBIRD_INCLUDE_DIR = FIREBIRD_INCLUDE_DIR-NOTFOUND </div>
<div>-- FIREBIRD_LIBRARIES = FIREBIRD_LIBRARIES-NOTFOUND </div><div>-- FIREBIRD_VERSION = </div><div>-- DB2: </div><div>-- WARNING: </div><div>-- DB2 not found, some libraries or features will be disabled. </div>
<div>-- See the documentation for DB2 or manually set these variables: </div><div>-- DB2_INCLUDE_DIR = DB2_INCLUDE_DIR-NOTFOUND </div><div>-- DB2_LIBRARIES = DB2_LIBRARY-NOTFOUND </div>
<div>-- Configuring SOCI core library: </div><div>-- Looking for include file pthread.h</div><div>-- Looking for include file pthread.h - not found</div><div>-- Could NOT find Threads (missing: Threads_FOUND) </div><div>
CMake Error at core/CMakeLists.txt:22 (message):</div><div> No thread library found</div><div><br></div><div><br></div><div>-- Configuring incomplete, errors occurred!</div></div></div><div style=""><br></div><div style=""><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 14, 2013 at 11:01 AM, Nick Overdijk <span dir="ltr"><<a href="mailto:nick@astrant.net" target="_blank">nick@astrant.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">You should install boost in /usr/local with ./b2 install, then more packages will find it. Did you do this or not?<div>
<br></div><div>Anyway, I just did this:</div><div><br></div><div>git clone <a>git://github.com/SOCI/soci.git</a></div><div>cd soci</div><div>cd src</div><div>mkdir build</div><div>cd build</div><div>cmake ..</div><div><br>
</div><div>And it worked for me. So what did you do exactly?</div><div><br></div><div><div><div><div class="h5"><div>On 2013-14-03, at 18:52:08 , Casey Basichis wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi,<div><br></div><div>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.</div><div><br></div><div><span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">-- Could NOT find Threads (missing: Threads_FOUND) </span><br style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">
<span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">CMake Error at core/CMakeLists.txt:22 (message): </span><br style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">
<span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif"> No thread library found </span><br style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">
<br style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif"><span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">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?</span></div>
<div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><br></font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif">Thanks,</font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif">Casey<br clear="all">
</font><div><br></div>-- <br><div dir="ltr">Casey James Basichis<br>Composer - Adventure Time - Cartoon Network<br><a href="http://www.caseyjamesbasichis.com/" target="_blank">http://www.caseyjamesbasichis.com</a><br><a href="mailto:caseybasichis@gmail.com" target="_blank">caseybasichis@gmail.com</a><br>
<a href="tel:310.387.7540" value="+13103877540" target="_blank">310.387.7540</a></div>
</div></div></div></div><span class="HOEnZb"><font color="#888888">
--<br><br>Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a></font></span></blockquote>
</div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Casey James Basichis<br>Composer - Adventure Time - Cartoon Network<br><a href="http://www.caseyjamesbasichis.com/" target="_blank">http://www.caseyjamesbasichis.com</a><br>
<a href="mailto:caseybasichis@gmail.com" target="_blank">caseybasichis@gmail.com</a><br>310.387.7540</div>
</div>
</blockquote></div><br></div></body></html>