<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Sorry for taking a while to reply!<div class=""><br class=""></div><div class="">I bumped into this issue with iOS a few months ago and then ran out of time to fix it. “Recently” (months ago?) Chris added some more dependencies on ICU into SWORD and iOS chokes on that. When I look for:</div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(255, 70, 71);" class="">&lt;unicode/ucnv.h&gt;</div><div style="margin: 0px;" class="">it can’t find it. The available headers under iOS are:</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">~ 🍉&nbsp;&nbsp;ls /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/usr/include/unicode&nbsp;<br class="">localpointer.h putil.h&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;umachine.h&nbsp;&nbsp; &nbsp;&nbsp;utext.h&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;utf_old.h<br class="">parseerr.h&nbsp;&nbsp; &nbsp;&nbsp;uchar.h&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;uregex.h&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;utf.h&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;utypes.h<br class="">platform.h&nbsp;&nbsp; &nbsp;&nbsp;uconfig.h&nbsp; &nbsp; &nbsp;&nbsp;urename.h&nbsp; &nbsp; &nbsp;&nbsp;utf16.h&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;uvernum.h<br class="">ptypes.h&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;uiter.h&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;ustring.h&nbsp; &nbsp; &nbsp;&nbsp;utf8.h&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;uversion.h<br class=""><br class=""></div><div style="margin: 0px;" class="">(This is for iOS 7.1, which was the current version at that point, and the version of ICU included is reported as "51.1")</div><div style="margin: 0px;" class="">If I have time, I’m going to #ifdef out the stuff Chris added that breaks the build under iOS so that I can continue to use the built-in ICU rather than having to roll my own for iOS. But due to a lack of time right now, PS is sitting there needing about 1 hour of work, plus a fix for the above error, before the next version is released. However, me #def-ing out new code that Chris added is a band-aid fix, as he’ll probably add more funky features that I then won’t be able to use :( Then again, perhaps I’ll have handed PS over to someone new by then &amp; that can be their problem to fix? :) :)</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">I don’t have the OS X components required to check how similar this is for OS X (installed on this machine, that is), but this is the current situation with iOS. Perhaps that helps you, perhaps not? :) :) :)</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">Thanks, ybic</div><div style="margin: 0px;" class=""><span style="white-space:pre" class="Apple-tab-span">        </span>nic… &nbsp;:)</div><div apple-content-edited="true" class="">
<br class="Apple-interchange-newline">----<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; " class="">Nic Carter</div><div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; " class="">PocketSword Developer - an iOS Bible Study app</div><div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; " class="">Twitter:&nbsp;<a href="http://twitter.com/pocketsword" class="">http://twitter.com/pocketsword</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; " class="">iTunes:&nbsp;<a href="http://itunes.apple.com/app/Pocketsword/id341046078" class="">http://itunes.apple.com/app/Pocketsword/id341046078</a></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 21 Aug 2014, at 6:16 am, Greg Hellings &lt;<a href="mailto:greg.hellings@gmail.com" class="">greg.hellings@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">ICU is largely (exclusively?) used for transliteration within Sword. Qt offers the same functionality (it has both its own built-in functionality for that or it can be built on top of ICU). Since Qt already comes with the functionality built in, BibleTime distributes its OS X binary without the extra size of ICU.<div class="">
<br class=""></div><div class="">As for wanting to build without MacPorts, you'd have to either find or install the development headers for both of those libraries if you want that support (In the distant past ICU was available on Mac but not development headers for it, so MacPorts just installed headers for the system library back then. Not sure what the story is now). If you have the headers and the link library, you'll need to specify the proper search path. For ICU, you can add the standard search directories to your CMake invocation using the standard mechanism for appending library and header search paths. For CLucene you can use that method, or specify CLUCENE_HOME in your environment variables before invocation.</div>
<div class=""><br class=""></div><div class="">Another option entirely is to run CMake until it fails to find them, then edit your CMakeCache.txt file to manually specify the path for the appropriate CLUCENE and ICU variables, then rerun CMake to generate the build files with the modified options.</div>
<div class=""><br class=""></div><div class="">There are lots of paths to get you where you're going, and I'm willing to accept patches or pull requests (<a href="http://github.com/greg-hellings/sword.git" class="">http://github.com/greg-hellings/sword.git</a>) to improve detection on OS X. The relevant files are cmake/Find{ICU,CLucene}.cmake in the Sword source tree.</div>
<div class=""><br class=""></div><div class="">--Greg</div></div><div class="gmail_extra"><br class=""><br class=""><div class="gmail_quote">On Wed, Aug 20, 2014 at 2:57 PM, Manfred Bergmann <span dir="ltr" class="">&lt;<a href="mailto:manfred.bergmann@me.com" target="_blank" class="">manfred.bergmann@me.com</a>&gt;</span> wrote:<br class="">
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" class="gmail_quote">If possible I don't want to install libraries (Homebrew, MacPorts, etc) used for building Sword which are not part of the stock OS X.<br class="">

<br class="">
How can ICU be replaced with Qt?<br class="">
<br class="">
<br class="">
<br class="">
Manfred<br class="">
<br class="">
Am 19.08.2014 um 21:56 schrieb Greg Hellings &lt;<a href="mailto:greg.hellings@gmail.com" class="">greg.hellings@gmail.com</a>&gt;:<br class="">
<div class="HOEnZb"><div class="h5"><br class="">
&gt; On my own system I get:<br class="">
&gt;<br class="">
&gt; -- CLucene: yes /opt/local/lib/libclucene-core.dylib in /opt/local/include and /opt/local/include;/opt/local/include<br class="">
&gt;<br class="">
&gt; -- PkgConfig: yes<br class="">
&gt;<br class="">
&gt; -- ICU: yes /opt/local/lib/libicuuc.dylib and /opt/local/include<br class="">
&gt;<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; I have installed them from MacPorts. I believe, however, that BibleTime builds without them as Qt is used in place of ICU and CLucene is linked directly into BibleTime for its custom search functionality. Obviously, feel free to edit your local .sh script. Those are only given there for examples of how to build with CMake for people who are not familiar with the system much as usrinst.sh is more of a guideline. For instance, I doubt you're looking to build the Python or Perl extensions.<br class="">

&gt;<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; --Greg<br class="">
&gt;<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; On Tue, Aug 19, 2014 at 12:28 PM, Manfred Bergmann &lt;<a href="mailto:manfred.bergmann@me.com" class="">manfred.bergmann@me.com</a>&gt; wrote:<br class="">
&gt; Hmm. Don't know this doesn't work.<br class="">
&gt;<br class="">
&gt; tried cmake, called cmake/build-release.sh, got the following:<br class="">
&gt; ---<br class="">
&gt; pacsaar:sword-trunk mbergmann$ cmake/build-release.sh<br class="">
&gt; -- The CXX compiler identification is AppleClang <a href="tel:5.1.0.5030040" value="+15105030040" class="">5.1.0.5030040</a><br class="">
&gt; -- The C compiler identification is AppleClang <a href="tel:5.1.0.5030040" value="+15105030040" class="">5.1.0.5030040</a><br class="">
&gt; -- Check for working CXX compiler: /usr/bin/c++<br class="">
&gt; -- Check for working CXX compiler: /usr/bin/c++ -- works<br class="">
&gt; -- Detecting CXX compiler ABI info<br class="">
&gt; -- Detecting CXX compiler ABI info - done<br class="">
&gt; -- Check for working C compiler: /usr/bin/cc<br class="">
&gt; -- Check for working C compiler: /usr/bin/cc -- works<br class="">
&gt; -- Detecting C compiler ABI info<br class="">
&gt; -- Detecting C compiler ABI info - done<br class="">
&gt; -- Configuring your system to build libsword.<br class="">
&gt; -- SWORD Version 1007003000<br class="">
&gt; --<br class="">
&gt; -- SEARCHING FOR SYTEM PACKAGES<br class="">
&gt; -- System regex.h: Yes<br class="">
&gt; --<br class="">
&gt; -- CONFIGURING SOURCE LIST<br class="">
&gt; -- ZLib: system /usr/lib/libz.dylib<br class="">
&gt; -- bzip2: system /usr/lib/libbz2.dylib<br class="">
&gt; -- xz: system /usr/lib/liblzma.dylib<br class="">
&gt; -- cURL: system /usr/lib/libcurl.dylib and /usr/include<br class="">
&gt; -- CLucene: no<br class="">
&gt; -- PkgConfig: no<br class="">
&gt; -- ICU: no<br class="">
&gt; -- Regex.h: system /usr/include<br class="">
&gt; -- Building Shared library.<br class="">
&gt; -- Building Static library.<br class="">
&gt; -- Setting SOVERSION to 1.7.3<br class="">
&gt; -- cURL SFTP Support: No<br class="">
&gt; -- Setting link libraries to /usr/lib/libz.dylib;/usr/lib/libbz2.dylib;/usr/lib/liblzma.dylib;/usr/lib/libcurl.dylib<br class="">
&gt; --<br class="">
&gt; -- CONFIGURING INSTALLATION DESTINATIONS<br class="">
&gt; -- Destination: /opt/sword<br class="">
&gt; --<br class="">
&gt; -- CONFIGURING SWIG BINDINGS<br class="">
&gt; -- Could NOT find SWIG (missing:&nbsp; SWIG_EXECUTABLE SWIG_DIR)<br class="">
&gt; CMake Error at bindings/swig/CMakeLists.txt:15 (MESSAGE):<br class="">
&gt;&nbsp; &nbsp;Swig: no<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; -- Configuring incomplete, errors occurred!<br class="">
&gt; See also "/Users/mbergmann/Development/MySources/crosswire/sword-trunk/build/CMakeFiles/CMakeOutput.log".<br class="">
&gt; make: *** No targets specified and no makefile found.&nbsp; Stop.<br class="">
&gt; ---<br class="">
&gt;<br class="">
&gt; No ICU seems to be found on the system. Though there is libicucore in /usr/lib/.<br class="">
&gt;<br class="">
&gt; Also a standard configure, make I get the following error:<br class="">
&gt; libtool: compile:&nbsp; g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/opt/sword/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/opt/sword/lib/sword/1.6.1_icu_2.1\" -DGLOBCONFPATH=\"/opt/sword/etc/sword.conf\" -D_FTPLIB_NO_COMPAT -O3 -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -DNO_VSNPRINTF -MT utilxml.lo -MD -MP -MF .deps/utilxml.Tpo -c ../src/utilfuns/utilxml.cpp -o utilxml.o &gt;/dev/null 2&gt;&amp;1<br class="">

&gt; mv -f .deps/utilxml.Tpo .deps/utilxml.Plo<br class="">
&gt; make[1]: *** No rule to make target `../src/utilfuns/swunicod.cpp', needed by `swunicod.lo'.&nbsp; Stop.<br class="">
&gt; make: *** [all-recursive] Error 1<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; Now putting all that aside I can build the current trunk all right in Xcode when manually putting the stuff together. I'm doing that for a couple of years now in the objc binding.<br class="">
&gt; But building with _ICU_ doesn't work anymore since I've done svn update (see error below).<br class="">
&gt; I can run a version without ICU but I'm not exactly certain which other problems this might bring.<br class="">
&gt;<br class="">
&gt; What about the BibleTime guys. Did they build all right on Mac with ICU?<br class="">
&gt;<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; Manfred<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; Am 19.08.2014 um 17:17 schrieb Manfred Bergmann &lt;<a href="mailto:manfred.bergmann@me.com" class="">manfred.bergmann@me.com</a>&gt;:<br class="">
&gt;<br class="">
&gt; &gt; Building Sword from within Xcode after svn update.<br class="">
&gt; &gt;<br class="">
&gt; &gt; But I'll try the following, initiate the configure procedure and see how the build goes, which defines are set, etc. Maybe I'm missing something.<br class="">
&gt; &gt;<br class="">
&gt; &gt;<br class="">
&gt; &gt; Manfred<br class="">
&gt; &gt;<br class="">
&gt; &gt;<br class="">
&gt; &gt; Am 19.08.2014 um 17:11 schrieb Greg Hellings &lt;<a href="mailto:greg.hellings@gmail.com" class="">greg.hellings@gmail.com</a>&gt;:<br class="">
&gt; &gt;<br class="">
&gt; &gt;&gt; Is this while building Sword or BibleTime?<br class="">
&gt; &gt;&gt;<br class="">
&gt; &gt;&gt; --Greg<br class="">
&gt; &gt;&gt;<br class="">
&gt; &gt;&gt;<br class="">
&gt; &gt;&gt; On Mon, Aug 18, 2014 at 12:16 PM, Manfred Bergmann &lt;<a href="mailto:manfred.bergmann@me.com" class="">manfred.bergmann@me.com</a>&gt; wrote:<br class="">
&gt; &gt;&gt; Hmm, weird stuff.<br class="">
&gt; &gt;&gt; UnicodeString seems to be in icucore. And I've got -licucore.<br class="">
&gt; &gt;&gt; But it seems to be references not correctly:<br class="">
&gt; &gt;&gt;<br class="">
&gt; &gt;&gt; Undefined symbols for architecture x86_64:<br class="">
&gt; &gt;&gt;&nbsp; "icu::UnicodeString::UnicodeString()", referenced from:<br class="">
&gt; &gt;&gt;&nbsp; &nbsp; &nbsp; sword::UTF8NFC::processText(sword::SWBuf&amp;, sword::SWKey const*, sword::SWModule const*) in utf8nfc.o<br class="">
&gt; &gt;&gt;<br class="">
&gt; &gt;&gt; Any ideas?<br class="">
&gt; &gt;&gt;<br class="">
&gt; &gt;&gt; Manfred<br class="">
&gt; &gt;&gt;<br class="">
&gt; &gt;&gt; Am 18.08.2014 um 17:34 schrieb Manfred Bergmann &lt;<a href="mailto:manfred.bergmann@me.com" class="">manfred.bergmann@me.com</a>&gt;:<br class="">
&gt; &gt;&gt;<br class="">
&gt; &gt;&gt;&gt; Hi.<br class="">
&gt; &gt;&gt;&gt;<br class="">
&gt; &gt;&gt;&gt; Anyone successfully built the current trunk on OS X (Mavericks)?<br class="">
&gt; &gt;&gt;&gt; I get the above error. "UnicodeString" doesn't seem to be part of libicucore?<br class="">
&gt; &gt;&gt;&gt;<br class="">
&gt; &gt;&gt;&gt;<br class="">
&gt; &gt;&gt;&gt;<br class="">
&gt; &gt;&gt;&gt; Manfred<br class="">
&gt; &gt;&gt;&gt;<br class="">
&gt; &gt;&gt;&gt; _______________________________________________<br class="">
&gt; &gt;&gt;&gt; sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="">sword-devel@crosswire.org</a><br class="">
&gt; &gt;&gt;&gt; <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank" class="">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br class="">
&gt; &gt;&gt;&gt; Instructions to unsubscribe/change your settings at above page<br class="">
&gt; &gt;&gt;<br class="">
&gt; &gt;&gt;<br class="">
&gt; &gt;&gt; _______________________________________________<br class="">
&gt; &gt;&gt; sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="">sword-devel@crosswire.org</a><br class="">
&gt; &gt;&gt; <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank" class="">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br class="">
&gt; &gt;&gt; Instructions to unsubscribe/change your settings at above page<br class="">
&gt; &gt;&gt;<br class="">
&gt; &gt;&gt; _______________________________________________<br class="">
&gt; &gt;&gt; sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="">sword-devel@crosswire.org</a><br class="">
&gt; &gt;&gt; <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank" class="">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br class="">
&gt; &gt;&gt; Instructions to unsubscribe/change your settings at above page<br class="">
&gt; &gt;<br class="">
&gt; &gt;<br class="">
&gt; &gt; _______________________________________________<br class="">
&gt; &gt; sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="">sword-devel@crosswire.org</a><br class="">
&gt; &gt; <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank" class="">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br class="">
&gt; &gt; Instructions to unsubscribe/change your settings at above page<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; _______________________________________________<br class="">
&gt; sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="">sword-devel@crosswire.org</a><br class="">
&gt; <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank" class="">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br class="">
&gt; Instructions to unsubscribe/change your settings at above page<br class="">
&gt;<br class="">
&gt; _______________________________________________<br class="">
&gt; sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="">sword-devel@crosswire.org</a><br class="">
&gt; <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank" class="">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br class="">
&gt; Instructions to unsubscribe/change your settings at above page<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="">sword-devel@crosswire.org</a><br class="">
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank" class="">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br class="">
Instructions to unsubscribe/change your settings at above page<br class="">
</div></div></blockquote></div><br class=""></div>
_______________________________________________<br class="">sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="">sword-devel@crosswire.org</a><br class=""><a href="http://www.crosswire.org/mailman/listinfo/sword-devel" class="">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br class="">Instructions to unsubscribe/change your settings at above page</div></blockquote></div><br class=""></div></body></html>