Re: [CMake] FInd threads - iOS

2013-03-15 Thread Casey Basichis
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
-- Configuring SOCI:
-- SOCI_VERSION = 3.2.0
-- SOCI_ABI_VERSION = 3.2
CMake Error at cmake/SociConfig.cmake:50 (message):
  CMake is unable to recognize compilation toolset to build SOCI for you!
Call Stack (most recent call first):
  CMakeLists.txt:41 (include)


-- Configuring incomplete, errors occurred!

Thanks,
Casey




On Thu, Mar 14, 2013 at 11:57 PM, Sergei Nikulov
sergey.niku...@gmail.comwrote:

 2013/3/15 Casey Basichis caseybasic...@gmail.com

 Hi,

 I tried the tool chain.  This console output shows the error. I've tried
 adding the SDK path up to the include and with the iPhoneOS6.1... part
 stripped off as well.

 CASEYs-MacBook-Pro:build caseybasichis$ export
 CMAKE_IOS_SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/
 CASEYs-MacBook-Pro:build caseybasichis$ echo $CMAKE_IOS_SDK_ROOT

 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/
 CASEYs-MacBook-Pro:build caseybasichis$ cmake /Prog/Frameworks/soci/src/
 -DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake -GXcode -DWITH_BOOST=OFF
 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):
   /Applications/CMake
 2.8-10.app/Contents/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:89
 (include)
   CMakeLists.txt:15 (project)


 CMake Error: Could not find cmake module
 file:/Prog/Frameworks/soci/src/build/CMakeFiles/
 2.8.10.2/CMakeCCompiler.cmake
 CMake Error: Could not find cmake module
 file:/Prog/Frameworks/soci/src/build/CMakeFiles/
 2.8.10.2/CMakeCXXCompiler.cmake
  -- Configuring incomplete, errors occurred!

 I built Sqlite using cmake yesterday - which seemed to succeed using my
 initial method.  Currently its pointing to the system default iOS Sqlite
 binary.

 Any ideas?


 Yep.
 Do not export  CMAKE_IOS_SDK_ROOT to your environment.
 Since it called CMAKE_something you should pass it as cmake command line
 invocation.
 I quickly dig through ios.cmake and not sure that something will be taken
 from environment.

 Try this
 cmake path to soci -DCMAKE_IOS_SDK_ROOT=path to SDK root
 -DCMAKE_TOOLCHAIN_FILE=path to tool-chain file -GXcode -DWITH_BOOST=OFF


 --
 Best Regards,
 Sergei Nikulov




-- 
Casey James Basichis
Composer - Adventure Time - Cartoon Network
http://www.caseyjamesbasichis.com
caseybasic...@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

[CMake] FInd threads - iOS

2013-03-14 Thread Casey Basichis
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
caseybasic...@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

Re: [CMake] FInd threads - iOS

2013-03-14 Thread Casey Basichis
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 n...@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
 caseybasic...@gmail.com
 310.387.7540
  --

 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http

Re: [CMake] FInd threads - iOS

2013-03-14 Thread Casey Basichis
Hi,


I've looked at the toolchain but I will read the cross compiling one.  I
tried compiling SOCI with the toolchain and with those scripts I posted in
my last post.



On the SOCI mailing list they directed me to this, that suggests the
Threading may have been a problem on iOS.

http://stackoverflow.com/a/14198386/151641





On Thu, Mar 14, 2013 at 11:26 AM, Sergei Nikulov
sergey.niku...@gmail.comwrote:




 2013/3/14 Casey Basichis caseybasic...@gmail.com

 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.


 Hi Casey,

 I'm not sure that it will work in your way.
 Have you read this information
 http://www.cmake.org/Wiki/CMake_Cross_Compiling ?
 And this one http://code.google.com/p/ios-cmake/wiki/HowTo

 Unfortunately I've not tried this myself.

 --
 Best Regards,
 Sergei Nikulov




-- 
Casey James Basichis
Composer - Adventure Time - Cartoon Network
http://www.caseyjamesbasichis.com
caseybasic...@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

Re: [CMake] FInd threads - iOS

2013-03-14 Thread Casey Basichis
Sorry about that last post - in a one two punch half of the email got
selected, deleted and then sent

I've cross compiled several libraries using
-DCMAKE_OSX_ARCHITECTURES=i386;armv7 ../

I tried compiling with the toolchain and also with the SOCI scripts I
posted earlier.  The command line flags were pulled from the script.

On the SOCI mailing list they directed me to this, that suggests the
Threading may have been a problem on iOS.

http://stackoverflow.com/a/14198386/151641

Can i just download pthread.h and point to it some how?  I am very new to
cmake.

Thanks,
Casey



On Thu, Mar 14, 2013 at 11:26 AM, Sergei Nikulov
sergey.niku...@gmail.comwrote:




 2013/3/14 Casey Basichis caseybasic...@gmail.com

 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.


 Hi Casey,

 I'm not sure that it will work in your way.
 Have you read this information
 http://www.cmake.org/Wiki/CMake_Cross_Compiling ?
 And this one http://code.google.com/p/ios-cmake/wiki/HowTo

 Unfortunately I've not tried this myself.

 --
 Best Regards,
 Sergei Nikulov




-- 
Casey James Basichis
Composer - Adventure Time - Cartoon Network
http://www.caseyjamesbasichis.com
caseybasic...@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

Re: [CMake] FInd threads - iOS

2013-03-14 Thread Casey Basichis
Hi,

I tried the tool chain.  This console output shows the error. I've tried
adding the SDK path up to the include and with the iPhoneOS6.1... part
stripped off as well.

CASEYs-MacBook-Pro:build caseybasichis$ export
CMAKE_IOS_SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/
CASEYs-MacBook-Pro:build caseybasichis$ echo $CMAKE_IOS_SDK_ROOT
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/
CASEYs-MacBook-Pro:build caseybasichis$ cmake /Prog/Frameworks/soci/src/
-DCMAKE_TOOLCHAIN_FILE=/Prog/iOS.cmake -GXcode -DWITH_BOOST=OFF
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):
  /Applications/CMake
2.8-10.app/Contents/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:89
(include)
  CMakeLists.txt:15 (project)


CMake Error: Could not find cmake module
file:/Prog/Frameworks/soci/src/build/CMakeFiles/
2.8.10.2/CMakeCCompiler.cmake
CMake Error: Could not find cmake module
file:/Prog/Frameworks/soci/src/build/CMakeFiles/
2.8.10.2/CMakeCXXCompiler.cmake
-- Configuring incomplete, errors occurred!

I built Sqlite using cmake yesterday - which seemed to succeed using my
initial method.  Currently its pointing to the system default iOS Sqlite
binary.

Any ideas?


On Thu, Mar 14, 2013 at 1:21 PM, Mateusz Loskot mate...@loskot.net wrote:

 On 14 March 2013 18:44, Casey Basichis caseybasic...@gmail.com wrote:
 
  On the SOCI mailing list they directed me to this, that suggests the
  Threading may have been a problem on iOS.
 
  http://stackoverflow.com/a/14198386/151641

 Casey,

 Thanks for posting this issue here.
 Just FYI, I'm watching this list too, so if any fixes or improvements for
 SOCI
 come up, I'd like to pick them up and apply to SOCI.

 Best regards,
 --
 Mateusz Loskot, http://mateusz.loskot.net
 --

 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
caseybasic...@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

[CMake] Hiring: simple Cmake build setup

2013-03-05 Thread Casey Basichis
Hi,

I have a project I'm looking to hire for.

My target is iOS.  I have two small simple libraries with no or minimal
dependencies and autoconf builds that I need to Cmake to cross compile on
iOS/Clang/Libc++.

I am also interested i discussing a somewhat more holistic effort towards a
nightly type test setup.

Currently I am copying folders as revision control and building in xcode.

I look forward to learning Cmake in the long run, but I need to get up and
running in the mean time.

Thanks,
Casey
-- 
Casey James Basichis
Composer - Adventure Time - Cartoon Network
http://www.caseyjamesbasichis.com
caseybasic...@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

[CMake] Cmake, Ctest, git pipeline

2013-03-04 Thread Casey Basichis
Hi,

I am just getting started with Cmake, Ctest etc. I've been reading a ton of
tutorials. I don't have any experience in setting up a dev pipeline.  My
platform is iOS, practically all the code is C++.

I'd like to set up my system to

* Do nightly builds and unit tests and valgrind

* Check out and compile the latest updates to dependencies from Github
packages, so of which have my own custom cmake files for compiling the
sources

* Commit my own changes to a local git

Anything else that I might be missing from a useful pipeline. Are there any
typical components that I'm missing?  Should I be doing this in a scripting
language, cmake itself or some sort of open source project management
software.

Currently I just have a dev folder. I build everything in xcode and copy my
own project folders as a super primitive version control.  Its ugly.

Any perspective on setting up a decent build pipeline would be greatly
appreciated.

Thanks,
Casey

-- 
Casey James Basichis
Composer - Adventure Time -Cartoon Network
http://www.caseyjamesbasichis.com
caseybasic...@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