Hi Mateusz,

Currently I am on macosx :-)

I have an idea in mind and I would possibly use the sqlite encryption.
If I do, I would need to statically link the DB library with my program.

Also, I use Qt to make it cross-plateform.

Best regards,
Sylvain


On Fri, Dec 24, 2010 at 1:48 AM, Mateusz Loskot <[email protected]> wrote:

> Hi Sylvain,
>
> On 23/12/10 06:50, Sylvain Pointeau wrote:
> > I would like to use soci linked statically to my program.
> > does the static library includes as well sqlite (compiled with)
> > or should I link the sqlite as well?
>
> Currently, SOCI links SQLite shared library. CMake selects static
> only if shared one is not available. This is kind of default
> behaviour of FindSQLite3.cmake on Unix systems.
>
> As this is macro I've written myself, I think I will add
> SQLITE3_USE_STATIC variable that will force linking
> against static versions.
>
> Note, this is easy on Unix. On Windows, there is no way really to
> distinguish if sqlite3.lib is a static library or import library for DLL.
>
> Here is thread discussing it:
>
> http://www.cmake.org/pipermail/cmake/2008-July/thread.html#22538
>
> > I don't want to keep the sqlite as a dll but also statically linked to my
> > program. is it possible?
>
> You work on Windows I GUESS.
>
> Assuming you want to build SOCI from current Git repository, you may
> try to do this trick: call cmake trying to force these settings:
>
> -DSQLITE3_INCLUDE_DIR=C:\sqlite\include
> -DSQLITE3_LIBRARIES=C:\sqlite\sqlite3.lib
>
> Of course, point to your locations.
>
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> Charter Member of OSGeo, http://osgeo.org
> Member of ACCU, http://accu.org
>
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to