Compiling Libodb with Msys1.0+mingw gcc4.7.1 (c + + ORM)

Source: Internet
Author: User
Tags sqlite sqlite database wxwidgets

The main use of this is Libodb's support for the SQLite database.

(1) Download compiled sqlite3, the original compile go-sqlite3 when downloaded sqlite3, directly take over to use.

Start msys.batgcc-c sqlite3.c-i./inc/sqlite3/ar crvs libsqlite3.a SQLITE3.OCP libsqlite3.a/d/private/library/libcp SQLITE3.H/D/PRIVATE/LIBRARY/INC/SQLITE3CP SQLITE3EXT.H/D/PRIVATE/LIBRARY/INC/SQLITE3RM Libsqlite3.arm SQLITE3.O

(2) Download Libodb to/d/wxwidgets/wxcode/

Libodb-2.3.0.zip Libodb's Library

Libodb-sqlite-2.3.0.zip LIBODB support for SQLite database

(3) Compile the general library of Libodb.

Start Msys.batcd/d/wxwidgets/wxcode/libodb-2.3.0./configuremake

Successfully compiled.

(4) SQLite support for compiling LIBODB

Start Msys.batcd/d/wxwidgets/wxcode/libodb-sqlite-2.3.0./configure

Hint Libsqlite3 not found, because the above to Sqlite3 compilation, the enemy file and static library storage, not according to Msys Standard (or POSIX standard or UNIX-like standard) storage. Execute./configure--includedir=/d/ Private/library/inc/sqlite3 or./configure--includedir=/d/private/library/inc/sqlite3--libdir=/d/private/library/ Lib or prompted to find Sqlite3, the message is as follows:

Config.lt:creating libtoolchecking for Libsqlite3 ... noconfigure:error:libsqlite3 is not found; Consider using Cppflags/ldflags to specify it location

Execute the following command directly in Msys, and no longer pass the--includedir and--libdir parameters, then the Sqlite3 check passes smoothly.

Export Cxxflags=-i/d/private/library/inc/sqlite3export ldflags=-l/d/private/library/lib./configure

Hint that a feature of sqlite3 is not turned on, it is possible that the control macro that opened this feature at compile time is not defined. Or the current code version does not support LIBODB required features, temporarily ignored.

Checking for libsqlite3 ... yes

Configure:WARNING:libsqlite3 is built without sqlite3_unlock_notify support; Multi-threaded support would be limited

Checking for Libodb ... no

Configure:error:libodb is not found; Consider using--with-libodb=dir

You need to specify the path to Libodb

./configure--with-libodb=/d/wxwidgets/wxcode/libodb-2.3.0

After a smooth pass through configure, and make direct compilation succeeds.

Checking for libsqlite3 ... yesconfigure:WARNING:libsqlite3 is built without sqlite3_unlock_notify support; Multi-threaded support would be limitedchecking for libodb ... yeschecking whether to use rpath ... yes

Compiling Libodb with Msys1.0+mingw gcc4.7.1 (c + + ORM)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.