<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2013/3/14 Casey Basichis <span dir="ltr"><<a href="mailto:caseybasichis@gmail.com" target="_blank">caseybasichis@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Sorry about that last post - in a one two punch half of the email got selected, deleted and then sent<div><br></div><div>I've cross compiled several libraries using -DCMAKE_OSX_ARCHITECTURES="i386;armv7" ../</div>
<div><br></div><div>I tried compiling with the toolchain and also with the SOCI scripts I posted earlier. The command line flags were pulled from the script.</div><div><br></div><div><div class="im"><div style="font-family:arial,sans-serif;font-size:13.3333px">
On the SOCI mailing list they directed me to this, that suggests the Threading may have been a problem on iOS.</div><div style="font-family:arial,sans-serif;font-size:13.3333px"><br></div><div style="font-family:arial,sans-serif;font-size:13.3333px">
<a href="http://stackoverflow.com/a/14198386/151641" rel="nofollow" link="external" style="color:rgb(85,26,139);font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif" target="_blank">http://stackoverflow.com/a/14198386/151641</a></div>
<div style="font-family:arial,sans-serif;font-size:13.3333px"><br></div></div><div style="font-family:arial,sans-serif;font-size:13.3333px">Can i just download pthread.h and point to it some how? I am very new to cmake.</div>
<div style="font-family:arial,sans-serif;font-size:13.3333px"><br></div></div></div></blockquote><div> </div><div>No. This will not work either.<br></div><div>As I understand from SO answer you've just pointed, ios tool-chain should have workaround for your problem, by disabling TRY_COMPILE<br>
</div><div>Just download it from <a href="http://code.google.com/p/ios-cmake/">http://code.google.com/p/ios-cmake/</a><br></div><div>and run<br><br></div><div><code>cmake <path to soci source> -<span class="">DCMAKE_TOOLCHAIN_FILE</span><span class="">=<path to ios.cmake> -GXcode -DWITH_BOOST=OFF<br>
<br></span></code></div><div><code><span class="">But I'm not sure that build system will find any database libraries for ios. Perhaps sqlite?<br clear="all"></span></code></div></div><br>-- <br>Best Regards,<br>Sergei Nikulov
</div></div>