2012年5月15日 星期二

[BDB] Building Berkeley DB for CE6 (ARMV4I)

This is a memo which copy from Oracle for building berkeley DB.


There are many possible target CPU architectures for a Windows Mobile application. This section outlines the process required to add a new target architecture to the project files supplied with Berkeley DB.
The Visual Studio 2005 project files will by default build for Pocket PC 2003 and Smartphone 2003, and Windows Mobile 6.5.3 Professional. If you want to build for other platforms such as Windows Mobile 6.0, 6.1, or 6.5, you need to follow the steps provided in this section.
Different target architectures are available in different Platform SDK or DTK downloads from Microsoft. The appropriate SDK must be installed for your mobile architecture before you can build for that platform. You can find the downloads at the Microsoft Developer Center page.

Build via Visual Studio 2008

  1. Choose File -> Open Workspace.... Navigate to the build_wince directory, select Berkeley_DB and click Open.
  2. From the Solution explorer window, right-click the Solution Berkeley_DB and select Configuration manager...
  3. In the Active solution platform: drop down box select New...
  4. From the Type or select the new platform drop-down box, select a configuration from the ones available and click OK. (Copy Setting From Pocket PC 2003 (ARMV4))
  5. Click Close from the Configuration Manager dialog box.
  6. The target platform drop-down now contains the platform just added.
  7. Build as per the instructions given at the beginning of this chapter.

build error
error LNK2019: unresolved external symbol localtime_s referenced in function localtimeOffset date.obj

trouble shooting
open date.c in db_sql project
modify #define HAVE_LOCALTIME_S 1 to #define HAVE_LOCALTIME_S 0


Reference:
http://docs.oracle.com/cd/E17076_02/html/installation/index.html

沒有留言:

張貼留言