Debian Codegraph @

docs/installation/build_wince_faq.html

raw
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>Windows Mobile FAQ</title>
7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" />
10 <link rel="up" href="build_wince.html" title="Chapter 6.  Building Berkeley DB for Windows Mobile" />
11 <link rel="prev" href="build_wince_notes.html" title="Windows Mobile notes" />
12 <link rel="next" href="build_unix.html" title="Chapter 7.  Building Berkeley DB for UNIX/POSIX" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">Windows Mobile FAQ</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="build_wince_notes.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 6. 
26 Building Berkeley DB for Windows Mobile
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="build_unix.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="build_wince_faq"></a>Windows Mobile FAQ</h2>
38 </div>
39 </div>
40 </div>
41 <div class="orderedlist">
42 <ol type="1">
43 <li>
44 <span class="bold">
45 <strong>What if my Windows Mobile device does not support SetFilePointer and/or SetEndOfFile?</strong>
46 </span>
47 <p>You can manually disable the truncate functionality from the build.</p>
48 <p>Do that by opening the <code class="filename">db-X.X.X/build_wince/db_config.h</code> file, and change the line that reads </p>
49 <pre class="programlisting">#define HAVE_FTRUCATE 1</pre>
50 <p> to read </p>
51 <pre class="programlisting">#undef HAVE_FTRUNCATE</pre>
52 <p>Making this change disables <a href="../api_reference/C/dbcompact.html" class="olink">DB-&gt;compact()</a> for btree databases.</p>
53 </li>
54 <li>
55 <span class="bold">
56 <strong>Why doesn't automatic log archiving work?</strong>
57 </span>
58 <p>The Windows Mobile platform does not have a concept of a working directory. This means that the <a href="../api_reference/C/logarchive.html#archive_DB_ARCH_REMOVE" class="olink">DB_ARCH_REMOVE</a> and <a href="../api_reference/C/logarchive.html#archive_DB_ARCH_ABS" class="olink">DB_ARCH_ABS</a> flags do not work properly within Windows Mobile, because they rely on having a working directory.</p>
59 <p> To work around this issue, you can call log_archive with the <a href="../api_reference/C/logarchive.html#archive_DB_ARCH_LOG" class="olink">DB_ARCH_LOG</a> flag, the list of returned file handles will not contain absolute paths. Your application can take this list of files, construct absolute paths, and delete the files.</p>
60 </li>
61 <li>
62 <span class="bold">
63 <strong>Does Berkeley DB support Windows Mobile?</strong>
64 </span>
65 <p>Yes. </p>
66 <p>Berkeley DB relies on a subset of the Windows API, and some standard C library APIs. These are provided by Windows CE. Windows Mobile is built "on top" of Windows CE.</p>
67 </li>
68 <li>
69 <span class="bold">
70 <strong>Does Berkeley DB support Windows CE?</strong>
71 </span>
72 <p>Yes. </p>
73 <p>Berkeley DB relies on a subset of the Windows API, and some standard C library APIs. These are provided by Windows CE.</p>
74 </li>
75 <li>
76 <span class="bold">
77 <strong>What platforms are the supplied sample applications designed for?</strong>
78 </span>
79 <p>The supplied sample applications were developed for the Pocket PC 2003 emulator. They are known to work on real pocket PC devices and later versions of the emulator as well.</p>
80 <p>The supplied applications are not designed to work with Smartphone devices. The screen size and input mechanisms are not compatible.</p>
81 </li>
82 <li>
83 <span class="bold">
84 <strong>I see a file mapping error when opening a Berkeley DB environment or database. What is wrong?</strong>
85 </span>
86 <p>The default behavior of Berkeley DB is to use memory mapped files in the environment. Windows Mobile does not allow memory mapped files to be created on flash storage.</p>
87 <p>There are two workarounds:</p>
88 <div class="orderedlist">
89 <ol type="a">
90 <li>
91 Configure the Berkeley DB environment not to use memory mapped files. The options are discussed in detail in
92 <a href="../programmer_reference/env_region.html" class="olink">Shared memory region</a>.
93 </li>
94 <li>Create the Berkeley DB environment on non-flash storage. It is possible to store database and log files in a different location to using the <a href="../api_reference/C/envset_data_dir.html" class="olink">DB_ENV-&gt;set_data_dir()</a> and <a href="../api_reference/C/envset_lg_dir.html" class="olink">DB_ENV-&gt;set_lg_dir()</a> APIs.</li>
95 </ol>
96 </div>
97 </li>
98 </ol>
99 </div>
100 </div>
101 <div class="navfooter">
102 <hr />
103 <table width="100%" summary="Navigation footer">
104 <tr>
105 <td width="40%" align="left"><a accesskey="p" href="build_wince_notes.html">Prev</a> </td>
106 <td width="20%" align="center">
107 <a accesskey="u" href="build_wince.html">Up</a>
108 </td>
109 <td width="40%" align="right"> <a accesskey="n" href="build_unix.html">Next</a></td>
110 </tr>
111 <tr>
112 <td width="40%" align="left" valign="top">Windows Mobile notes </td>
113 <td width="20%" align="center">
114 <a accesskey="h" href="index.html">Home</a>
115 </td>
116 <td width="40%" align="right" valign="top"> Chapter 7. 
117 Building Berkeley DB for UNIX/POSIX
118 </td>
119 </tr>
120 </table>
121 </div>
122 </body>
123 </html>