Discussion:
[soci-users] Building SOCI on Windows
Deane Yang
2013-03-26 03:15:48 UTC
Permalink
What am I doing wrong?

I am trying to build SOCI using the following command line:

cmake -G "Visual Studio 10" -DWITH_BOOST=ON
-DBOOST_RELEASE_VERSION=1.49.0
-DBOOST_INCLUDE_DIR=C:/Users/Deane/git/software/boost
-DBOOST_LIBRARIES=C:/Users/Deane/git/software/boost/stage/lib/libboost_date_time-vc100-mt-1_49.lib
-DWITH_SQLITE3=ON
-DSQLITE3_INCLUDE_DIR=C:/Users/Deane/git/software/sqlite/include
-DSQLITE3_LIBRARIES=C:/Users/Deane/git/software/sqlite/dll/sqlite3.lib
-DWITH_MYSQL=OFF -DWITH_ODBC=OFF -DWITH_ORACLE=OFF
-DWITH_POSTGRESQL=OFF ../soci-3.2.0

and I get the following:

Welcome to Git (version 1.7.11-preview20120620)


Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
-- The C compiler identification is MSVC 16.0.40219.1
-- The CXX compiler identification is MSVC 16.0.40219.1
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring SOCI:
-- SOCI_VERSION = 3.2.0
-- SOCI_ABI_VERSION = 3_2
-- SOCI_PLATFORM_NAME = win32
-- SOCI_COMPILER_NAME = msvc-10.0
-- SOCI_STATIC = ON
-- SOCI_TESTS = ON
-- Looking for SOCI dependencies:
-- Boost:
-- WARNING:
-- Boost not found, some libraries or features will be disabled.
-- See the documentation for Boost or manually set these variables:
-- BOOST_RELEASE_VERSION = 1.49.0
-- BOOST_INCLUDE_DIR = C:/Users/Deane/git/software/boost
-- BOOST_LIBRARIES =
C:/Users/Deane/git/software/boost/stage/lib
-- 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:
-- WARNING:
-- SQLite3 not found, some libraries or features will be disabled.
-- See the documentation for SQLite3 or manually set these variables:
-- SQLITE3_INCLUDE_DIR =
C:/Users/Deane/git/software/sqlite/include
-- SQLITE3_LIBRARIES = SQLITE3_LIBRARY-NOTFOUND
-- 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
-- Found Threads: TRUE
-- SOCI_CORE_TARGET = soci_core
-- SOCI_CORE_TARGET_OUTPUT_NAME = soci_core_3_2
-- SOCI_CORE_DEPENDENCIES =
-- WITH_BOOST = ON
-- COMPILE_DEFINITIONS = SOCI_ABI_VERSION="3_2"
_CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_WARNING _SCL_SECURE_NO_WARNINGS
SOCI_LIB_PREFIX="soci_" SOCI_LIB_SUFFIX=".dll"
-- Configuring SOCI database backends:
-- Empty - SOCI backend skeleton for development of new backends
-- SOCI_EMPTY = ON
-- SOCI_EMPTY_TARGET = soci_empty
-- SOCI_EMPTY_TARGET_OUTPUT_NAME = soci_empty_3_2
-- SOCI_EMPTY_HEADERS = soci-empty.h
-- COMPILE_DEFINITIONS = SOCI_ABI_VERSION="3_2"
_CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_WARNING _SCL_SECURE_NO_WARNINGS
-- SOCI_EMPTY_TEST_CONNSTR = dummy
--
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Deane/git/software/soci/build
Mateusz Loskot
2013-03-26 08:47:48 UTC
Permalink
I'm not seeing any errors.
What's the actual problem?
--
Mateusz Loskot, http://mateusz.loskot.net
(Sent from mobile, apology for top-posting or broken quotes)
Post by Deane Yang
What am I doing wrong?
cmake -G "Visual Studio 10" -DWITH_BOOST=ON
-DBOOST_RELEASE_VERSION=1.49.0
-DBOOST_INCLUDE_DIR=C:/Users/Deane/git/software/boost
-DBOOST_LIBRARIES=C:/Users/Deane/git/software/boost/stage/lib/libboost_date_time-vc100-mt-1_49.lib
-DWITH_SQLITE3=ON
-DSQLITE3_INCLUDE_DIR=C:/Users/Deane/git/software/sqlite/include
-DSQLITE3_LIBRARIES=C:/Users/Deane/git/software/sqlite/dll/sqlite3.lib
-DWITH_MYSQL=OFF -DWITH_ODBC=OFF -DWITH_ORACLE=OFF
-DWITH_POSTGRESQL=OFF ../soci-3.2.0
Welcome to Git (version 1.7.11-preview20120620)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
-- The C compiler identification is MSVC 16.0.40219.1
-- The CXX compiler identification is MSVC 16.0.40219.1
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- SOCI_VERSION = 3.2.0
-- SOCI_ABI_VERSION = 3_2
-- SOCI_PLATFORM_NAME = win32
-- SOCI_COMPILER_NAME = msvc-10.0
-- SOCI_STATIC = ON
-- SOCI_TESTS = ON
-- Boost not found, some libraries or features will be disabled.
-- BOOST_RELEASE_VERSION = 1.49.0
-- BOOST_INCLUDE_DIR =
C:/Users/Deane/git/software/boost
-- BOOST_LIBRARIES =
C:/Users/Deane/git/software/boost/stage/lib
-- 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 not found, some libraries or features will be disabled.
-- SQLITE3_INCLUDE_DIR =
C:/Users/Deane/git/software/sqlite/include
-- SQLITE3_LIBRARIES = SQLITE3_LIBRARY-NOTFOUND
-- Firebird not found, some libraries or features will be disabled.
-- FIREBIRD_INCLUDE_DIR = FIREBIRD_INCLUDE_DIR-NOTFOUND
-- FIREBIRD_LIBRARIES = FIREBIRD_LIBRARIES-NOTFOUND
-- FIREBIRD_VERSION =
-- DB2 not found, some libraries or features will be disabled.
-- DB2_INCLUDE_DIR = DB2_INCLUDE_DIR-NOTFOUND
-- DB2_LIBRARIES = DB2_LIBRARY-NOTFOUND
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Found Threads: TRUE
-- SOCI_CORE_TARGET = soci_core
-- SOCI_CORE_TARGET_OUTPUT_NAME = soci_core_3_2
-- SOCI_CORE_DEPENDENCIES =
-- WITH_BOOST = ON
-- COMPILE_DEFINITIONS = SOCI_ABI_VERSION="3_2"
_CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_WARNING _SCL_SECURE_NO_WARNINGS
SOCI_LIB_PREFIX="soci_" SOCI_LIB_SUFFIX=".dll"
-- Empty - SOCI backend skeleton for development of new backends
-- SOCI_EMPTY = ON
-- SOCI_EMPTY_TARGET = soci_empty
-- SOCI_EMPTY_TARGET_OUTPUT_NAME = soci_empty_3_2
-- SOCI_EMPTY_HEADERS = soci-empty.h
-- COMPILE_DEFINITIONS = SOCI_ABI_VERSION="3_2"
_CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_WARNING _SCL_SECURE_NO_WARNINGS
-- SOCI_EMPTY_TEST_CONNSTR = dummy
--
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Deane/git/software/soci/build
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
soci-users mailing list
https://lists.sourceforge.net/lists/listinfo/soci-users
Ivan Sidarau
2013-03-26 09:50:55 UTC
Permalink
-DBOOST_LIBRARIES=C:/Users/Deane/git/software/boost/stage/lib/libboost_date_time-vc100-mt-1_49.lib

I think this var should point to
C:/Users/Deane/git/software/boost/stage/lib/
Post by Mateusz Loskot
I'm not seeing any errors.
What's the actual problem?
--
Mateusz Loskot, http://mateusz.loskot.net
(Sent from mobile, apology for top-posting or broken quotes)
Post by Deane Yang
What am I doing wrong?
cmake -G "Visual Studio 10" -DWITH_BOOST=ON
-DBOOST_RELEASE_VERSION=1.49.0
-DBOOST_INCLUDE_DIR=C:/Users/Deane/git/software/boost
-DBOOST_LIBRARIES=C:/Users/Deane/git/software/boost/stage/lib/libboost_date_time-vc100-mt-1_49.lib
-DWITH_SQLITE3=ON
-DSQLITE3_INCLUDE_DIR=C:/Users/Deane/git/software/sqlite/include
-DSQLITE3_LIBRARIES=C:/Users/Deane/git/software/sqlite/dll/sqlite3.lib
-DWITH_MYSQL=OFF -DWITH_ODBC=OFF -DWITH_ORACLE=OFF
-DWITH_POSTGRESQL=OFF ../soci-3.2.0
Welcome to Git (version 1.7.11-preview20120620)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
-- The C compiler identification is MSVC 16.0.40219.1
-- The CXX compiler identification is MSVC 16.0.40219.1
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- SOCI_VERSION = 3.2.0
-- SOCI_ABI_VERSION = 3_2
-- SOCI_PLATFORM_NAME = win32
-- SOCI_COMPILER_NAME = msvc-10.0
-- SOCI_STATIC = ON
-- SOCI_TESTS = ON
-- Boost not found, some libraries or features will be disabled.
-- BOOST_RELEASE_VERSION = 1.49.0
-- BOOST_INCLUDE_DIR =
C:/Users/Deane/git/software/boost
-- BOOST_LIBRARIES =
C:/Users/Deane/git/software/boost/stage/lib
-- 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 not found, some libraries or features will be disabled.
-- SQLITE3_INCLUDE_DIR =
C:/Users/Deane/git/software/sqlite/include
-- SQLITE3_LIBRARIES = SQLITE3_LIBRARY-NOTFOUND
-- Firebird not found, some libraries or features will be disabled.
-- FIREBIRD_INCLUDE_DIR =
FIREBIRD_INCLUDE_DIR-NOTFOUND
-- FIREBIRD_LIBRARIES = FIREBIRD_LIBRARIES-NOTFOUND
-- FIREBIRD_VERSION =
-- DB2 not found, some libraries or features will be disabled.
-- DB2_INCLUDE_DIR = DB2_INCLUDE_DIR-NOTFOUND
-- DB2_LIBRARIES = DB2_LIBRARY-NOTFOUND
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Found Threads: TRUE
-- SOCI_CORE_TARGET = soci_core
-- SOCI_CORE_TARGET_OUTPUT_NAME = soci_core_3_2
-- SOCI_CORE_DEPENDENCIES =
-- WITH_BOOST = ON
-- COMPILE_DEFINITIONS = SOCI_ABI_VERSION="3_2"
_CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_WARNING _SCL_SECURE_NO_WARNINGS
SOCI_LIB_PREFIX="soci_" SOCI_LIB_SUFFIX=".dll"
-- Empty - SOCI backend skeleton for development of new backends
-- SOCI_EMPTY = ON
-- SOCI_EMPTY_TARGET = soci_empty
-- SOCI_EMPTY_TARGET_OUTPUT_NAME = soci_empty_3_2
-- SOCI_EMPTY_HEADERS = soci-empty.h
-- COMPILE_DEFINITIONS = SOCI_ABI_VERSION="3_2"
_CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_WARNING _SCL_SECURE_NO_WARNINGS
-- SOCI_EMPTY_TEST_CONNSTR = dummy
--
-- Configuring done
-- Generating done
C:/Users/Deane/git/software/soci/build
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
soci-users mailing list
https://lists.sourceforge.net/lists/listinfo/soci-users
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
soci-users mailing list
https://lists.sourceforge.net/lists/listinfo/soci-users
--
Thanks,
Ivan.
Mateusz Loskot
2013-03-26 10:08:39 UTC
Permalink
Post by Deane Yang
-DBOOST_LIBRARIES=C:/Users/Deane/git/software/boost/stage/lib/libboost_date_time-vc100-mt-1_49.lib
I think this var should point to
C:/Users/Deane/git/software/boost/stage/lib/
All CMake variables like <name>_LIBRARY and <name>_LIBRARIES,
not only in SOCI but general, specify full path to library file(s),
not a directory.
Those variables are either set automatically by CMake find_package
called from CMakeLists.txt or they are explicitly specified by user.
Both cases are then handled by FindPackageHandleStandardArgs machinery.

Specifically, from FindBoost.cmake:

"Boost_LIBRARIES
Link to these to use the Boost libraries that you specified: not cached"

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Deane Yang
2013-03-26 14:54:26 UTC
Permalink
Thanks for replying! And I should have explained explicitly what I
think is wrong:

1) It says that it cannot find the boost library and some features
will be disabled. (This might not be a real problem. I don't intend on
using the Boost Date-Time library, just the tuple library and maybe
other header-only libraries)

2) It appears that it is unable to find the sqlite library and
therefore has disabled it. This in fact is the database software I
want to use.
Post by Mateusz Loskot
I'm not seeing any errors.
What's the actual problem?
--
Mateusz Loskot, http://mateusz.loskot.net
(Sent from mobile, apology for top-posting or broken quotes)
Post by Deane Yang
What am I doing wrong?
cmake -G "Visual Studio 10" -DWITH_BOOST=ON
-DBOOST_RELEASE_VERSION=1.49.0
-DBOOST_INCLUDE_DIR=C:/Users/Deane/git/software/boost
-DBOOST_LIBRARIES=C:/Users/Deane/git/software/boost/stage/lib/libboost_date_time-vc100-mt-1_49.lib
-DWITH_SQLITE3=ON
-DSQLITE3_INCLUDE_DIR=C:/Users/Deane/git/software/sqlite/include
-DSQLITE3_LIBRARIES=C:/Users/Deane/git/software/sqlite/dll/sqlite3.lib
-DWITH_MYSQL=OFF -DWITH_ODBC=OFF -DWITH_ORACLE=OFF
-DWITH_POSTGRESQL=OFF ../soci-3.2.0
Welcome to Git (version 1.7.11-preview20120620)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
-- The C compiler identification is MSVC 16.0.40219.1
-- The CXX compiler identification is MSVC 16.0.40219.1
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- SOCI_VERSION = 3.2.0
-- SOCI_ABI_VERSION = 3_2
-- SOCI_PLATFORM_NAME = win32
-- SOCI_COMPILER_NAME = msvc-10.0
-- SOCI_STATIC = ON
-- SOCI_TESTS = ON
-- Boost not found, some libraries or features will be disabled.
-- BOOST_RELEASE_VERSION = 1.49.0
-- BOOST_INCLUDE_DIR =
C:/Users/Deane/git/software/boost
-- BOOST_LIBRARIES =
C:/Users/Deane/git/software/boost/stage/lib
-- 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 not found, some libraries or features will be disabled.
-- SQLITE3_INCLUDE_DIR =
C:/Users/Deane/git/software/sqlite/include
-- SQLITE3_LIBRARIES = SQLITE3_LIBRARY-NOTFOUND
-- Firebird not found, some libraries or features will be disabled.
-- FIREBIRD_INCLUDE_DIR =
FIREBIRD_INCLUDE_DIR-NOTFOUND
-- FIREBIRD_LIBRARIES = FIREBIRD_LIBRARIES-NOTFOUND
-- FIREBIRD_VERSION =
-- DB2 not found, some libraries or features will be disabled.
-- DB2_INCLUDE_DIR = DB2_INCLUDE_DIR-NOTFOUND
-- DB2_LIBRARIES = DB2_LIBRARY-NOTFOUND
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Found Threads: TRUE
-- SOCI_CORE_TARGET = soci_core
-- SOCI_CORE_TARGET_OUTPUT_NAME = soci_core_3_2
-- SOCI_CORE_DEPENDENCIES =
-- WITH_BOOST = ON
-- COMPILE_DEFINITIONS = SOCI_ABI_VERSION="3_2"
_CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_WARNING _SCL_SECURE_NO_WARNINGS
SOCI_LIB_PREFIX="soci_" SOCI_LIB_SUFFIX=".dll"
-- Empty - SOCI backend skeleton for development of new backends
-- SOCI_EMPTY = ON
-- SOCI_EMPTY_TARGET = soci_empty
-- SOCI_EMPTY_TARGET_OUTPUT_NAME = soci_empty_3_2
-- SOCI_EMPTY_HEADERS = soci-empty.h
-- COMPILE_DEFINITIONS = SOCI_ABI_VERSION="3_2"
_CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_WARNING _SCL_SECURE_NO_WARNINGS
-- SOCI_EMPTY_TEST_CONNSTR = dummy
--
-- Configuring done
-- Generating done
C:/Users/Deane/git/software/soci/build
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
soci-users mailing list
https://lists.sourceforge.net/lists/listinfo/soci-users
Mateusz Loskot
2013-03-26 16:27:58 UTC
Permalink
Post by Deane Yang
Thanks for replying! And I should have explained explicitly what I
I admit I only skimmed your post for errors on my mobile
and missed the point.
Post by Deane Yang
1) It says that it cannot find the boost library and some features
will be disabled. (This might not be a real problem. I don't intend on
using the Boost Date-Time library, just the tuple library and maybe
other header-only libraries)
According to FindBoost.cmake, Boost_LIBRARIES is only output variable,
You should only need to set Boost_ROOT and stage folder will be sampled
for libraries as the module adds this to searching paths:

${BOOST_ROOT}/stage/lib)
Post by Deane Yang
2) It appears that it is unable to find the sqlite library and
therefore has disabled it. This in fact is the database software I
want to use.
Please, replace SQLITE3_LIBRARIES with SQLITE3_LIBRARY
-DSQLITE3_LIBRARY=C:/Users/Deane/git/software/sqlite/dll/sqlite3.lib

It turns there is a subtle bug in FindSQLite3.cmake, the plural version
is only used by the module as OUT parameter, but not as IN/OUT.
It is not handled with FindPackageHandleStandardArgs as it should.
I will fix it soon. Meanwhile, please use SQLITE3_LIBRARY

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Deane Yang
2013-03-26 16:50:04 UTC
Permalink
Mateusz
Post by Mateusz Loskot
Post by Deane Yang
Thanks for replying! And I should have explained explicitly what I
I admit I only skimmed your post for errors on my mobile
and missed the point.
That's easy to do, since I didn't provide any explanation. Thanks very
much for another quick reply and the help provided below. I will try
it and let you know if I run into any more difficulties.
Post by Mateusz Loskot
Post by Deane Yang
1) It says that it cannot find the boost library and some features
will be disabled. (This might not be a real problem. I don't intend on
using the Boost Date-Time library, just the tuple library and maybe
other header-only libraries)
According to FindBoost.cmake, Boost_LIBRARIES is only output variable,
You should only need to set Boost_ROOT and stage folder will be sampled
${BOOST_ROOT}/stage/lib)
Post by Deane Yang
2) It appears that it is unable to find the sqlite library and
therefore has disabled it. This in fact is the database software I
want to use.
Please, replace SQLITE3_LIBRARIES with SQLITE3_LIBRARY
-DSQLITE3_LIBRARY=C:/Users/Deane/git/software/sqlite/dll/sqlite3.lib
It turns there is a subtle bug in FindSQLite3.cmake, the plural version
is only used by the module as OUT parameter, but not as IN/OUT.
It is not handled with FindPackageHandleStandardArgs as it should.
I will fix it soon. Meanwhile, please use SQLITE3_LIBRARY
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
asif saeed
2013-07-19 14:55:32 UTC
Permalink
Very informative thread for me.
Post by Mateusz Loskot
According to FindBoost.cmake, Boost_LIBRARIES is only output variable,
You should only need to set Boost_ROOT and stage folder will be sampled
${BOOST_ROOT}/stage/lib)
So, I should really use BOOST_ROOT

and not think about BOOST_LIBRARIES. Ok.


Please, replace SQLITE3_LIBRARIES with SQLITE3_LIBRARY
Post by Mateusz Loskot
-DSQLITE3_LIBRARY=C:/Users/Deane/git/software/sqlite/dll/sqlite3.lib
It turns there is a subtle bug in FindSQLite3.cmake, the plural version
Post by Mateusz Loskot
is only used by the module as OUT parameter, but not as IN/OUT.
It is not handled with FindPackageHandleStandardArgs as it should.
I will fix it soon. Meanwhile, please use SQLITE3_LIBRARY
Has this been fixed for SOCI-3.2.1? I have also used the plural version.


Best regards,
-Asif
Mateusz Loskot
2013-07-27 21:49:06 UTC
Permalink
Post by asif saeed
Post by Mateusz Loskot
Please, replace SQLITE3_LIBRARIES with SQLITE3_LIBRARY
-DSQLITE3_LIBRARY=C:/Users/Deane/git/software/sqlite/dll/sqlite3.lib
It turns there is a subtle bug in FindSQLite3.cmake, the plural version
is only used by the module as OUT parameter, but not as IN/OUT.
It is not handled with FindPackageHandleStandardArgs as it should.
I will fix it soon. Meanwhile, please use SQLITE3_LIBRARY
Has this been fixed for SOCI-3.2.1? I have also used the plural version.
Asif,

Sorry for long delay, I will try to fix it for SOCI 3.2.2

https://github.com/SOCI/soci/issues/182


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