Troy,<div><br></div><div>I&#39;m building on a 64bit Ubuntu 9.10 laptop.</div><div><br></div><div>Adding in the extra include directory I got it to compile. Actually, I entered the full path instead of a relative path. I&#39;m guessing getting the paths problem solved in a programmatic fashion would be a great first step in cleaning things up.</div>


<div><br></div><div>At any rate, now the linker fails with the following:</div><div><div>SharedLibrary  : libsword.so</div><div>/usr/src/android-ndk-r3-crystax/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: cannot find -lstlport</div>


<div>collect2: ld returned 1 exit status</div></div><div><br></div><div>I&#39;m guessing this is because I don&#39;t have STL support properly built yet. Do you know how I should go about building it for android-ndk-r3-crystax?</div>

<div><br></div><div>Thanks,<br clear="all">-Wes<br>
<br><br><div class="gmail_quote">On Sun, Apr 18, 2010 at 11:36 PM, Troy A. Griffitts <span dir="ltr">&lt;<a href="mailto:scribe@crosswire.org" target="_blank">scribe@crosswire.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




Hey Wes,<br>
<br>
Glad you can use the prebuilt library.<br>
<br>
Can you tell me if you have this line for both sword and swordcore in<br>
your sword/bindings/java-jni/jni/Android.mk<br>
<br>
LOCAL_C_INCLUDES := ../src/sword/include ../src/sword/include/internal/regex<br>
<br>
Your directories are slightly off from what mine are.  Notice I have my<br>
ndk in my home directory, not my src directory.<br>
<br>
May I ask what platform you are building on?<br>
<font color="#888888"><br>
Troy<br>
</font><div><br>
<br>
Wes Widner wrote:<br>
&gt; Thanks Troy,<br>
&gt;<br>
&gt; I&#39;m now able to use your prebuilt libsword.so library in my android<br>
&gt; application. This will at least let me continue building the Android app<br>
&gt; I had in mind initially.<br>
&gt;<br>
&gt; However I would still like to learn how to at least build the library on<br>
&gt; my own, I&#39;d like to help as much as I can as well, but I figure getting<br>
&gt; it to build is a good first step.<br>
&gt;<br>
&gt; I moved my code to the following directories:<br>
&gt; /usr/src/bishop<br>
&gt; /usr/src/sword<br>
&gt; /usr/src/android-ndk-r3-crystax<br>
&gt;<br>
&gt; Now it compiles a bit farther, but it still throws an error:<br>
&gt; Compile thumb  : swordcore &lt;=<br>
&gt; apps/bishop/../../../bishop/jni/../../../src/utilfuns/regex.c<br>
&gt; apps/bishop/../../../bishop/jni/../../../src/utilfuns/regex.c:177:19:<br>
&gt; error: regex.h: No such file or directory<br>
&gt; apps/bishop/../../../bishop/jni/../../../src/utilfuns/regex.c:942:<br>
&gt; error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before<br>
&gt; &#39;re_syntax_options&#39;<br>
&gt;<br>
&gt; Other errors follow, but I assume they are cascading from these.<br>
&gt;<br>
&gt; -Wes<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Apr 18, 2010 at 8:01 PM, Troy A. Griffitts &lt;<a href="mailto:scribe@crosswire.org" target="_blank">scribe@crosswire.org</a><br>
</div><div><div></div><div>&gt; &lt;mailto:<a href="mailto:scribe@crosswire.org" target="_blank">scribe@crosswire.org</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Yes, unless you want to rebuild libsword.so, you don&#39;t need the ndk.<br>
&gt;     Simply place libsword.so at:<br>
&gt;<br>
&gt;     bishop/libs/armeabi/libsword.so<br>
&gt;<br>
&gt;<br>
&gt;     But again, the most useful thing at this stage would be to help me<br>
&gt;     stabilize libsword.so<br>
&gt;<br>
&gt;     But I understand if you&#39;d rather work on your frontend.  I&#39;ll keep you<br>
&gt;     posted on my progress with libsword.so for android.<br>
&gt;<br>
&gt;     The issues you&#39;ve posted below seem to have something to do with your<br>
&gt;     paths.  Maybe you could try putting things relative to the same place I<br>
&gt;     have my stuff.  It is quite possible I have a path setup somewhere which<br>
&gt;     depends on my directory structure.<br>
&gt;<br>
&gt;     /home/scribe/src/sword/<br>
&gt;     /home/scribe/src/bishop/<br>
&gt;     /home/scribe/android-ndk-r3-crystax/<br>
&gt;     /home/scribe/android-ndk-r3-crystax/apps/bishop/Application.mk<br>
&gt;<br>
&gt;     with:<br>
&gt;<br>
&gt;     APP_PROJECT_PATH := $(call my-dir)/../../../src/bishop<br>
&gt;     APP_MODULES      := sword swordcore<br>
&gt;     APP_PLATFORM     := android-3<br>
&gt;<br>
&gt;<br>
&gt;     I&#39;m sure you could change /home/scribe to your $HOME, but maybe try to<br>
&gt;     put everything else relative to your home like mine and see if it works.<br>
&gt;      Once we get your setup working maybe we can determine which component<br>
&gt;     is counting on another being at a certain location, and if we can easily<br>
&gt;     break that requirement.<br>
&gt;<br>
&gt;     Troy<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     Wes Widner wrote:<br>
&gt;     &gt; Troy,<br>
&gt;     &gt;<br>
&gt;     &gt; Thank you VERY much for pointing me in the right direction.<br>
&gt;     &gt;<br>
&gt;     &gt; I&#39;ve gotten crystax and have created a test project of my own. But<br>
&gt;     when<br>
&gt;     &gt; I attempt to run &#39;make APP=bishop&#39; (I named my test app bishop as<br>
&gt;     well)<br>
&gt;     &gt; I get the following:<br>
&gt;     &gt; Android NDK: Building for application &#39;bishop&#39;<br>
&gt;     &gt; Compile++ thumb: sword &lt;= /usr/src/bishop/jni/swordstub.cpp<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:25:21: warning: utilstr.h: No such<br>
&gt;     &gt; file or directory<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:26:23: warning: swversion.h: No such<br>
&gt;     &gt; file or directory<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:27:19: warning: swmgr.h: No such<br>
&gt;     file<br>
&gt;     &gt; or directory<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:28:19: warning: swlog.h: No such<br>
&gt;     file<br>
&gt;     &gt; or directory<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:29:21: warning: filemgr.h: No such<br>
&gt;     &gt; file or directory<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:30:22: warning: swmodule.h: No such<br>
&gt;     &gt; file or directory<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:31:22: warning: versekey.h: No such<br>
&gt;     &gt; file or directory<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:32:23: warning: localemgr.h: No such<br>
&gt;     &gt; file or directory<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:33:24: warning: treekeyidx.h: No<br>
&gt;     such<br>
&gt;     &gt; file or directory<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:34:24: warning: installmgr.h: No<br>
&gt;     such<br>
&gt;     &gt; file or directory<br>
&gt;     &gt; In file included from /usr/src/bishop/jni/swordstub.cpp:36:<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:23:22: warning: swfilter.h: No such<br>
&gt;     file<br>
&gt;     &gt; or directory<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:24:27: warning: markupfiltmgr.h: No<br>
&gt;     such<br>
&gt;     &gt; file or directory<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:25:24: warning: osiswordjs.h: No such<br>
&gt;     &gt; file or directory<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:26:24: warning: thmlwordjs.h: No such<br>
&gt;     &gt; file or directory<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:27:23: warning: gbfwordjs.h: No<br>
&gt;     such file<br>
&gt;     &gt; or directory<br>
&gt;     &gt; In file included from /usr/src/bishop/jni/swordstub.cpp:22:<br>
&gt;     &gt; build/platforms/android-3/arch-arm/usr/include/jni.h:489: note: the<br>
&gt;     &gt; mangling of &#39;va_list&#39; has changed in GCC 4.4<br>
&gt;     &gt; In file included from /usr/src/bishop/jni/swordstub.cpp:36:<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:29: error: &#39;sword&#39; is not a<br>
&gt;     namespace-name<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:29: error: expected namespace-name<br>
&gt;     before<br>
&gt;     &gt; &#39;;&#39; token<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:31: error: expected class-name<br>
&gt;     before &#39;{&#39;<br>
&gt;     &gt; token<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:32: error: ISO C++ forbids<br>
&gt;     declaration of<br>
&gt;     &gt; &#39;OSISWordJS&#39; with no type<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:32: error: expected &#39;;&#39; before &#39;*&#39;<br>
&gt;     token<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:33: error: ISO C++ forbids<br>
&gt;     declaration of<br>
&gt;     &gt; &#39;ThMLWordJS&#39; with no type<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:33: error: expected &#39;;&#39; before &#39;*&#39;<br>
&gt;     token<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:34: error: ISO C++ forbids<br>
&gt;     declaration of<br>
&gt;     &gt; &#39;GBFWordJS&#39; with no type<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:34: error: expected &#39;;&#39; before &#39;*&#39;<br>
&gt;     token<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:35: error: ISO C++ forbids<br>
&gt;     declaration of<br>
&gt;     &gt; &#39;SWModule&#39; with no type<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:35: error: expected &#39;;&#39; before &#39;*&#39;<br>
&gt;     token<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:36: error: ISO C++ forbids<br>
&gt;     declaration of<br>
&gt;     &gt; &#39;SWModule&#39; with no type<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:36: error: expected &#39;;&#39; before &#39;*&#39;<br>
&gt;     token<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:37: error: ISO C++ forbids<br>
&gt;     declaration of<br>
&gt;     &gt; &#39;SWModule&#39; with no type<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:37: error: expected &#39;;&#39; before &#39;*&#39;<br>
&gt;     token<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:38: error: ISO C++ forbids<br>
&gt;     declaration of<br>
&gt;     &gt; &#39;SWModule&#39; with no type<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:38: error: expected &#39;;&#39; before &#39;*&#39;<br>
&gt;     token<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:68: error: &#39;SWModule&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:68: error: &#39;ConfigEntMap&#39; has not been<br>
&gt;     &gt; declared<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:68: error: &#39;ConfigEntMap&#39; has not been<br>
&gt;     &gt; declared<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:68: error: expected &#39;,&#39; or &#39;...&#39; before<br>
&gt;     &gt; &#39;start&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp: In constructor &#39;WebMgr::WebMgr(const<br>
&gt;     &gt; char*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:42: error: class &#39;WebMgr&#39; does not have<br>
&gt;     &gt; any field named &#39;SWMgr&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:42: error: expected type-specifier<br>
&gt;     before<br>
&gt;     &gt; &#39;MarkupFilterMgr&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:42: error: expected &#39;)&#39; before<br>
&gt;     &gt; &#39;MarkupFilterMgr&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:43: error: &#39;defaultGreekLex&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:44: error: &#39;defaultHebLex&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:45: error: &#39;defaultGreekParse&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:46: error: &#39;defaultHebParse&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:48: error: &#39;osisWordJS&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:48: error: expected type-specifier<br>
&gt;     before<br>
&gt;     &gt; &#39;OSISWordJS&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:48: error: expected &#39;;&#39; before<br>
&gt;     &#39;OSISWordJS&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:49: error: &#39;thmlWordJS&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:49: error: expected type-specifier<br>
&gt;     before<br>
&gt;     &gt; &#39;ThMLWordJS&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:49: error: expected &#39;;&#39; before<br>
&gt;     &#39;ThMLWordJS&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:50: error: &#39;gbfWordJS&#39; was not declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:50: error: expected type-specifier<br>
&gt;     before<br>
&gt;     &gt; &#39;GBFWordJS&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:50: error: expected &#39;;&#39; before<br>
&gt;     &#39;GBFWordJS&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:51: error: &#39;Load&#39; was not declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:58: error: &#39;setGlobalOption&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp: In destructor &#39;WebMgr::~WebMgr()&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:62: error: &#39;osisWordJS&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:63: error: &#39;thmlWordJS&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:64: error: &#39;gbfWordJS&#39; was not declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp: In member function &#39;void<br>
&gt;     &gt; WebMgr::AddGlobalOptions(int*, int&amp;, int)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:71: error: request for member<br>
&gt;     &#39;Markup&#39; in<br>
&gt;     &gt; &#39;* module&#39;, which is of non-class type &#39;int&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:71: error: &#39;FMT_THML&#39; was not<br>
&gt;     declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:72: error: request for member<br>
&gt;     &gt; &#39;AddOptionFilter&#39; in &#39;* module&#39;, which is of non-class type &#39;int&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:72: error: &#39;thmlWordJS&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:75: error: request for member<br>
&gt;     &#39;Markup&#39; in<br>
&gt;     &gt; &#39;* module&#39;, which is of non-class type &#39;int&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:75: error: &#39;FMT_GBF&#39; was not<br>
&gt;     declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:76: error: request for member<br>
&gt;     &gt; &#39;AddOptionFilter&#39; in &#39;* module&#39;, which is of non-class type &#39;int&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:76: error: &#39;gbfWordJS&#39; was not declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:80: error: &#39;SWMgr&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:80: error: &#39;start&#39; was not declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:80: error: &#39;end&#39; was not declared<br>
&gt;     in this<br>
&gt;     &gt; scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:83: error: request for member<br>
&gt;     &#39;getConfig&#39;<br>
&gt;     &gt; in &#39;* module&#39;, which is of non-class type &#39;int&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:84: error: &#39;defaultGreekLex&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:86: error: request for member<br>
&gt;     &#39;getConfig&#39;<br>
&gt;     &gt; in &#39;* module&#39;, which is of non-class type &#39;int&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:87: error: &#39;defaultHebLex&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:89: error: request for member<br>
&gt;     &#39;getConfig&#39;<br>
&gt;     &gt; in &#39;* module&#39;, which is of non-class type &#39;int&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:90: error: &#39;defaultGreekParse&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:92: error: request for member<br>
&gt;     &#39;getConfig&#39;<br>
&gt;     &gt; in &#39;* module&#39;, which is of non-class type &#39;int&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:93: error: &#39;defaultHebParse&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:95: error: request for member<br>
&gt;     &#39;getConfig&#39;<br>
&gt;     &gt; in &#39;* module&#39;, which is of non-class type &#39;int&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:96: error: &#39;OptionFilterMap&#39; has<br>
&gt;     not been<br>
&gt;     &gt; declared<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:96: error: expected &#39;;&#39; before &#39;it&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:97: error: &#39;it&#39; was not declared in<br>
&gt;     this<br>
&gt;     &gt; scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:97: error: &#39;optionFilters&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:98: error: request for member<br>
&gt;     &gt; &#39;AddOptionFilter&#39; in &#39;* module&#39;, which is of non-class type &#39;int&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:102: error: request for member &#39;Markup&#39;<br>
&gt;     &gt; in &#39;* module&#39;, which is of non-class type &#39;int&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:102: error: &#39;FMT_OSIS&#39; was not declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:103: error: request for member<br>
&gt;     &gt; &#39;AddOptionFilter&#39; in &#39;* module&#39;, which is of non-class type &#39;int&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:103: error: &#39;osisWordJS&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp: In member function &#39;void<br>
&gt;     &gt; WebMgr::setJavascript(bool)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:109: error: &#39;osisWordJS&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:110: error: &#39;thmlWordJS&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/webmgr.hpp:111: error: &#39;gbfWordJS&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: At global scope:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:46: error: &#39;sword&#39; is not a<br>
&gt;     namespace-name<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:46: error: expected namespace-name<br>
&gt;     &gt; before &#39;;&#39; token<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:50: error: expected constructor,<br>
&gt;     &gt; destructor, or type conversion before &#39;*&#39; token<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:52: error: expected class-name<br>
&gt;     before<br>
&gt;     &gt; &#39;{&#39; token<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In constructor<br>
&gt;     &gt; &#39;AndroidLogger::AndroidLogger()&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:57: error: &#39;SWLog&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:58: error: &#39;SWLog&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:59: error: &#39;SWLog&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:60: error: &#39;SWLog&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:61: error: &#39;SWLog&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In member function &#39;virtual void<br>
&gt;     &gt; AndroidLogger::logMessage(const char*, int) const&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:64: error: &#39;SWBuf&#39; was not<br>
&gt;     declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:64: error: expected &#39;;&#39; before &#39;msg&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:65: error: &#39;msg&#39; was not declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:66: error: &#39;msg&#39; was not declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;void init()&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:73: error: &#39;SWLog&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:74: error: &#39;SWLog&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:74: error: &#39;SWLog&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:75: error: &#39;SWBuf&#39; was not<br>
&gt;     declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:75: error: expected &#39;;&#39; before<br>
&gt;     &#39;baseDir&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:76: error: expected &#39;;&#39; before<br>
&gt;     &#39;confPath&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:78: error: &#39;FileMgr&#39; has not<br>
&gt;     been declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:78: error: &#39;confPath&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:79: error: &#39;FileMgr&#39; has not<br>
&gt;     been declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:82: error: &#39;SWConfig&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:82: error: expected &#39;;&#39; before<br>
&gt;     &#39;config&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:83: error: &#39;config&#39; was not declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;void initInstall()&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:93: error: &#39;installMgr&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:94: error: &#39;SWBuf&#39; was not<br>
&gt;     declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:94: error: expected &#39;;&#39; before<br>
&gt;     &#39;baseDir&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:95: error: expected &#39;;&#39; before<br>
&gt;     &#39;confPath&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:97: error: &#39;FileMgr&#39; has not<br>
&gt;     been declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:97: error: &#39;confPath&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:98: error: &#39;FileMgr&#39; has not<br>
&gt;     been declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:101: error: &#39;SWConfig&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:101: error: expected &#39;;&#39; before<br>
&gt;     &#39;config&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:102: error: &#39;config&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:105: error: expected type-specifier<br>
&gt;     &gt; before &#39;InstallMgr&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:105: error: expected &#39;;&#39; before<br>
&gt;     &gt; &#39;InstallMgr&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;_jstring*<br>
&gt;     &gt; Java_org_crosswire_android_sword_SWMgr_version(JNIEnv*, _jobject*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:116: error: &#39;SWVersion&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:116: error: expected &#39;;&#39; before &#39;v&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:117: error: &#39;v&#39; was not declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;_jstring*<br>
&gt;     &gt; Java_org_crosswire_android_sword_SWMgr_getPrefixPath(JNIEnv*,<br>
&gt;     _jobject*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:139: error: &#39;class WebMgr&#39; has no<br>
&gt;     &gt; member named &#39;prefixPath&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;_jstring*<br>
&gt;     &gt; Java_org_crosswire_android_sword_SWMgr_getConfigPath(JNIEnv*,<br>
&gt;     _jobject*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:147: error: &#39;class WebMgr&#39; has no<br>
&gt;     &gt; member named &#39;configPath&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;_jobjectArray*<br>
&gt;     &gt; Java_org_crosswire_android_sword_SWMgr_getModInfoList(JNIEnv*,<br>
&gt;     _jobject*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:157: error: &#39;sword&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:157: error: expected &#39;;&#39; before &#39;it&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:157: error: &#39;it&#39; was not declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:157: error: &#39;class WebMgr&#39; has no<br>
&gt;     &gt; member named &#39;Modules&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:162: error: &#39;SWLog&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:175: error: &#39;sword&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:175: error: expected &#39;;&#39; before &#39;it&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:175: error: &#39;it&#39; was not declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:175: error: &#39;class WebMgr&#39; has no<br>
&gt;     &gt; member named &#39;Modules&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:176: error: &#39;SWModule&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:176: error: &#39;module&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:179: error: &#39;SWBuf&#39; was not declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:179: error: expected &#39;;&#39; before<br>
&gt;     &#39;type&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:180: error: expected &#39;;&#39; before<br>
&gt;     &#39;cat&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:181: error: expected &#39;;&#39; before<br>
&gt;     &#39;version&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:182: error: &#39;cat&#39; was not<br>
&gt;     declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:182: error: &#39;type&#39; was not<br>
&gt;     declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:187: error: &#39;assureValidUTF8&#39;<br>
&gt;     was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:189: error: &#39;type&#39; was not<br>
&gt;     declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:191: error: &#39;version&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;_jobject*<br>
&gt;     &gt; Java_org_crosswire_android_sword_SWMgr_getModuleByName(JNIEnv*,<br>
&gt;     &gt; _jobject*, _jstring*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:216: error: &#39;sword&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:216: error: &#39;module&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:216: error: &#39;class WebMgr&#39; has no<br>
&gt;     &gt; member named &#39;getModule&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:220: error: &#39;SWBuf&#39; was not declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:220: error: expected &#39;;&#39; before<br>
&gt;     &#39;type&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:221: error: expected &#39;;&#39; before<br>
&gt;     &#39;cat&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:222: error: &#39;cat&#39; was not<br>
&gt;     declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:222: error: &#39;type&#39; was not<br>
&gt;     declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:226: error: &#39;assureValidUTF8&#39;<br>
&gt;     was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:228: error: &#39;type&#39; was not<br>
&gt;     declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;void<br>
&gt;     &gt; Java_org_crosswire_android_sword_SWMgr_setGlobalOption(JNIEnv*,<br>
&gt;     &gt; _jobject*, _jstring*, _jstring*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:247: error: &#39;class WebMgr&#39; has no<br>
&gt;     &gt; member named &#39;setGlobalOption&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;_jstring*<br>
&gt;     &gt; Java_org_crosswire_android_sword_SWMgr_getGlobalOption(JNIEnv*,<br>
&gt;     &gt; _jobject*, _jstring*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:266: error: &#39;SWBuf&#39; was not declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:266: error: expected &#39;;&#39; before<br>
&gt;     &#39;value&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:270: error: &#39;value&#39; was not declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:270: error: &#39;assureValidUTF8&#39;<br>
&gt;     was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;_jstring*<br>
&gt;     &gt; Java_org_crosswire_android_sword_SWMgr_getGlobalOptionTip(JNIEnv*,<br>
&gt;     &gt; _jobject*, _jstring*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:286: error: &#39;SWBuf&#39; was not declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:286: error: expected &#39;;&#39; before<br>
&gt;     &#39;value&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:290: error: &#39;value&#39; was not declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:290: error: &#39;assureValidUTF8&#39;<br>
&gt;     was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;_jstring*<br>
&gt;     &gt; Java_org_crosswire_android_sword_SWMgr_filterText(JNIEnv*, _jobject*,<br>
&gt;     &gt; _jstring*, _jstring*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:307: error: &#39;SWBuf&#39; was not declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:307: error: expected &#39;;&#39; before<br>
&gt;     &#39;buf&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:309: error: &#39;class WebMgr&#39; has no<br>
&gt;     &gt; member named &#39;setGlobalOption&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:310: error: &#39;class WebMgr&#39; has no<br>
&gt;     &gt; member named &#39;filterText&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:310: error: &#39;buf&#39; was not<br>
&gt;     declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:315: error: &#39;assureValidUTF8&#39;<br>
&gt;     was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;_jobjectArray*<br>
&gt;     &gt; Java_org_crosswire_android_sword_SWMgr_getGlobalOptions(JNIEnv*,<br>
&gt;     &gt; _jobject*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:329: error: &#39;sword&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:329: error: expected &#39;;&#39; before<br>
&gt;     &#39;options&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:331: error: &#39;sword&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:331: error: expected &#39;;&#39; before &#39;it&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:331: error: &#39;it&#39; was not declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:331: error: &#39;options&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:339: error: &#39;sword&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:339: error: expected &#39;;&#39; before &#39;it&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:339: error: &#39;it&#39; was not declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:339: error: &#39;options&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:340: error: &#39;assureValidUTF8&#39;<br>
&gt;     was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;_jobjectArray*<br>
&gt;     &gt; Java_org_crosswire_android_sword_SWMgr_getGlobalOptionValues(JNIEnv*,<br>
&gt;     &gt; _jobject*, _jstring*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:359: error: &#39;sword&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:359: error: expected &#39;;&#39; before<br>
&gt;     &#39;options&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:364: error: &#39;sword&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:364: error: expected &#39;;&#39; before &#39;it&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:364: error: &#39;it&#39; was not declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:364: error: &#39;options&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:371: error: &#39;sword&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:371: error: expected &#39;;&#39; before &#39;it&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:371: error: &#39;it&#39; was not declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:371: error: &#39;options&#39; was not<br>
&gt;     declared<br>
&gt;     &gt; in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:372: error: &#39;assureValidUTF8&#39;<br>
&gt;     was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;void<br>
&gt;     &gt; Java_org_crosswire_android_sword_SWMgr_setCipherKey(JNIEnv*,<br>
&gt;     _jobject*,<br>
&gt;     &gt; _jstring*, _jstring*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:392: error: &#39;class WebMgr&#39; has no<br>
&gt;     &gt; member named &#39;setCipherKey&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;_jobjectArray*<br>
&gt;     &gt; Java_org_crosswire_android_sword_SWMgr_getAvailableLocales(JNIEnv*,<br>
&gt;     &gt; _jobject*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:423: error: &#39;sword&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:423: error: expected &#39;;&#39; before<br>
&gt;     &gt; &#39;localeNames&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:425: error: &#39;sword&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:425: error: expected &#39;;&#39; before &#39;it&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:425: error: &#39;it&#39; was not declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:425: error: &#39;localeNames&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:433: error: &#39;sword&#39; has not been<br>
&gt;     declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:433: error: expected &#39;;&#39; before &#39;it&#39;<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:433: error: &#39;it&#39; was not declared in<br>
&gt;     &gt; this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:433: error: &#39;localeNames&#39; was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:434: error: &#39;assureValidUTF8&#39;<br>
&gt;     was not<br>
&gt;     &gt; declared in this scope<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: In function &#39;void<br>
&gt;     &gt; Java_org_crosswire_android_sword_SWMgr_setDefaultLocale(JNIEnv*,<br>
&gt;     &gt; _jobject*, _jstring*)&#39;:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:452: error: &#39;LocaleMgr&#39; has not been<br>
&gt;     &gt; declared<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp: At global scope:<br>
&gt;     &gt; /usr/src/bishop/jni/swordstub.cpp:462: error: expected constructor,<br>
&gt;     &gt; destructor, or type conversion before &#39;*&#39; token<br>
&gt;     &gt; make: *** [out/apps/bishop/armeabi/objs/sword/swordstub.o] Error 1<br>
&gt;     &gt;<br>
&gt;     &gt; /usr/src/bishop/jni is symlinked to sword/bindings/java-jni/jni and my<br>
&gt;     &gt; Application.mk file in  android-ndk-r3-crystax/apps/bishop contains:<br>
&gt;     &gt; APP_PROJECT_PATH := /usr/src/bishop<br>
&gt;     &gt; APP_MODULES      := sword swordcore<br>
&gt;     &gt; APP_PLATFORM     := android-3<br>
&gt;     &gt;<br>
&gt;     &gt; Do you know what I&#39;m doing wrong?<br>
&gt;     &gt;<br>
&gt;     &gt; Also, I have gotten the libsword.so file from the bishop.apk file you<br>
&gt;     &gt; posted earlier. Is there any way I could bind to it and use it?<br>
&gt;     &gt;<br>
&gt;     &gt; -Wes<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; On Sat, Apr 17, 2010 at 2:55 AM, Troy A. Griffitts<br>
&gt;     &lt;<a href="mailto:scribe@crosswire.org" target="_blank">scribe@crosswire.org</a> &lt;mailto:<a href="mailto:scribe@crosswire.org" target="_blank">scribe@crosswire.org</a>&gt;<br>
</div></div><div><div></div><div>&gt;     &gt; &lt;mailto:<a href="mailto:scribe@crosswire.org" target="_blank">scribe@crosswire.org</a> &lt;mailto:<a href="mailto:scribe@crosswire.org" target="_blank">scribe@crosswire.org</a>&gt;&gt;&gt; wrote:<br>





&gt;     &gt;<br>
&gt;     &gt;     Dear Wes,<br>
&gt;     &gt;<br>
&gt;     &gt;     The files I threw together are still very much a prototype /<br>
&gt;     proof of<br>
&gt;     &gt;     concept.  But with that warning, everything you need to build<br>
&gt;     libsword<br>
&gt;     &gt;     for android is included in the svn repository for the SWORD<br>
&gt;     engine.  You<br>
&gt;     &gt;     can get the source here:<br>
&gt;     &gt;<br>
&gt;     &gt;     svn co <a href="https://crosswire.org/svn/sword/trunk" target="_blank">https://crosswire.org/svn/sword/trunk</a> sword/<br>
&gt;     &gt;<br>
&gt;     &gt;     The Bishop code is merely a bunch of calls to try out and help<br>
&gt;     develop<br>
&gt;     &gt;     the libsword bindings and really aren&#39;t worth checking in<br>
&gt;     anywhere, but<br>
&gt;     &gt;     if you&#39;d like me to post them for an example, I can certainly<br>
&gt;     do that.<br>
&gt;     &gt;<br>
&gt;     &gt;     Please again realize these android jni wrappers are fragile and<br>
&gt;     &gt;     incomplete.  Please feel free to improve them, but please<br>
&gt;     don&#39;t count on<br>
&gt;     &gt;     them working dependably.<br>
&gt;     &gt;<br>
&gt;     &gt;     Build instructions.<br>
&gt;     &gt;<br>
&gt;     &gt;     You&#39;ll need an NDK with STL support.  I have been trying<br>
&gt;     crystax release<br>
&gt;     &gt;     lately.  You can find it on the web.<br>
&gt;     &gt;<br>
&gt;     &gt;     After that, you&#39;ll need a basic Application.mk file to place<br>
&gt;     in your<br>
&gt;     &gt;     apps folder.  Mine for bishop is here:<br>
&gt;     &gt;<br>
&gt;     &gt;     ~/android-ndk-r3-crystax/apps/bishop/Application.mk<br>
&gt;     &gt;<br>
&gt;     &gt;     and contains:<br>
&gt;     &gt;<br>
&gt;     &gt;     APP_PROJECT_PATH := $(call my-dir)/../../../src/bishop<br>
&gt;     &gt;     APP_MODULES      := sword swordcore<br>
&gt;     &gt;     APP_PLATFORM     := android-3<br>
&gt;     &gt;<br>
&gt;     &gt;     and I have a symlink:<br>
&gt;     &gt;<br>
&gt;     &gt;     ~/src/bishop/jni -&gt; ~/src/sword/bindings/java-jni/jni/<br>
&gt;     &gt;<br>
&gt;     &gt;     ~/src/sword is simply a checkout of the current sword svn<br>
&gt;     repository.<br>
&gt;     &gt;<br>
&gt;     &gt;     Hope this helps get you started.  Let me know your progress!<br>
&gt;     &gt;<br>
&gt;     &gt;     Troy<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;     Wes Widner wrote:<br>
&gt;     &gt;     &gt; Hey everyone,<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; I&#39;m new to this list so forgive me if it&#39;s answered<br>
&gt;     elsewhere and I&#39;ve<br>
&gt;     &gt;     &gt; simply overlooked it. Where is the source code for the<br>
&gt;     android project<br>
&gt;     &gt;     &gt; that uses the sword library via jni?<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; Also, does anyone know how I should go about building the<br>
&gt;     jni library<br>
&gt;     &gt;     &gt; for sword? I can mange to build the .java interface files,<br>
&gt;     but I am<br>
&gt;     &gt;     &gt; having trouble figuring out where to build the system<br>
&gt;     library (the .so<br>
&gt;     &gt;     &gt; file).<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; Any help is much appreciated!<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; Blessings,<br>
&gt;     &gt;     &gt; -Wes<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     ------------------------------------------------------------------------<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; _______________________________________________<br>
&gt;     &gt;     &gt; sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
&gt;     &lt;mailto:<a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a>&gt;<br>
&gt;     &gt;     &lt;mailto:<a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
&gt;     &lt;mailto:<a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a>&gt;&gt;<br>
&gt;     &gt;     &gt; <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
&gt;     &gt;     &gt; Instructions to unsubscribe/change your settings at above page<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;     _______________________________________________<br>
&gt;     &gt;     sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
&gt;     &lt;mailto:<a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a>&gt;<br>
&gt;     &gt;     &lt;mailto:<a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
&gt;     &lt;mailto:<a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a>&gt;&gt;<br>
&gt;     &gt;     <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
&gt;     &gt;     Instructions to unsubscribe/change your settings at above page<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     ------------------------------------------------------------------------<br>
&gt;     &gt;<br>
&gt;     &gt; _______________________________________________<br>
&gt;     &gt; sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
&gt;     &lt;mailto:<a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a>&gt;<br>
&gt;     &gt; <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
&gt;     &gt; Instructions to unsubscribe/change your settings at above page<br>
&gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
&gt;     &lt;mailto:<a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a>&gt;<br>
&gt;     <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
&gt;     Instructions to unsubscribe/change your settings at above page<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
&gt; <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
&gt; Instructions to unsubscribe/change your settings at above page<br>
<br>
<br>
_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</div></div></blockquote></div><br></div>