<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 19, 2013 at 7:18 PM, Ben <span dir="ltr"><<a href="mailto:cricketc@gmail.com" target="_blank">cricketc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 06/19/2013 10:00 AM, Greg Hellings wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
<br>
<br>
On Mon, Jun 17, 2013 at 6:14 AM, Ben <<a href="mailto:cricketc@gmail.com" target="_blank">cricketc@gmail.com</a><br></div><div class="im">
<mailto:<a href="mailto:cricketc@gmail.com" target="_blank">cricketc@gmail.com</a>>> wrote:<br>
<br>
On 06/16/2013 11:55 PM, Greg Hellings wrote:<br>
<br>
<br>
<br>
<br>
On Sun, Jun 16, 2013 at 9:22 PM, <<a href="mailto:cricketc@gmail.com" target="_blank">cricketc@gmail.com</a><br>
<mailto:<a href="mailto:cricketc@gmail.com" target="_blank">cricketc@gmail.com</a>><br></div><div class="im">
<mailto:<a href="mailto:cricketc@gmail.com" target="_blank">cricketc@gmail.com</a> <mailto:<a href="mailto:cricketc@gmail.com" target="_blank">cricketc@gmail.com</a>>>> wrote:<br>
<br>
Hey Greg,<br>
<br>
I'm building the python bindings with cmake 2.6.4. I'm<br>
trying to<br>
specify a user location, but it doesn't work with current svn -<br>
SWORD_PYTHON_INSTALL_DIR is always just "OFF", even if I pass a<br>
value through the cmake command. If I pass "1" as the<br>
value, then<br>
SWORD_PYTHON_INSTALL_DIR gets set, but it's obviously not<br>
what I'm<br>
looking for.<br>
<br>
If I comment out the OPTION setting in cmake/options.cmake,<br>
it seems<br>
to work properly for me.<br>
<br>
<br>
What exact command line are you invoking CMake with? And are you<br>
doing<br>
it from a clean configuration directory (e.g. new dir or "rm -rf<br>
* .*"<br>
beforehand)? CMake is very unfriendly towards attempts to<br>
reconfigure a<br>
directory.<br>
<br>
<br>
<br></div>
cmake -DCMAKE_INSTALL_PREFIX="~/__<u></u>sword-cmake-build/install"<br>
-DLIBSWORD_LIBRARY_TYPE="__<u></u>Shared" -DSWORD_BUILD_TESTS=Yes<br>
-DSWORD_BINDINGS=Python<br>
-DSWORD_PYTHON_INSTALL_DIR=~/_<u></u>_sword-cmake-build/install<div class="im"><br>
-DSWORD_BUILD_EXAMPLES=Yes /path/to/svn/sword<br>
<br>
Yes, it's a clean directory.<br>
<br>
I output the value of SWORD_PYTHON_INSTALL_DIR, and it says the<br>
value is "OFF". Again, if I remove the OPTION command in<br>
options.cmake, then it takes the value that I pass in from the<br>
command line.<br>
<br>
<br>
-Ben<br>
<br>
<br>
I was misusing the CMake OPTION command. Turns out it only works for<br>
ON/OFF values and cannot handle arbitrary strings. I have updated the<br>
handling to hopefully work as intended. Can you give it a whirl and let<br>
me know if it is now working better for you?<br>
</div></blockquote>
<br>
That part looks OK to me now, but I get a different error:<br>
<br>
-- Installing: /home/me/sword-cmake-build/<u></u>install/lib/sword/1.6.2_icu_/<u></u>translit_Latin_Ugaritic.res<br>
-- Installing: /home/me/sword-cmake-build/<u></u>install/lib/sword/1.6.2_icu_/<u></u>translit_swordindex.res<br>
running install<br>
running build<br>
running build_py<br>
running build_ext<br>
running install_lib<br>
creating /home/me/sword-cmake-build/<u></u>install/lib64<br>
creating /home/me/sword-cmake-build/<u></u>install/lib64/python<br>
copying build/lib.linux-x86_64-2.6/_<u></u>Sword.so -> /home/me/sword-cmake-build/<u></u>install/lib64/python<br>
copying build/lib.linux-x86_64-2.6/<u></u>Sword.py -> /home/me/sword-cmake-build/<u></u>install/lib64/python<br>
byte-compiling /home/me/sword-cmake-build/<u></u>install/lib64/python/Sword.py to Sword.pyc<br>
running install_egg_info<br>
Writing /home/me/sword-cmake-build/<u></u>install/lib64/python/sword-1.<u></u>6.2-py2.6.egg-info<br>
-- Installing: /usr/local/bin/addld<br>
CMake Error at utilities/cmake_install.cmake:<u></u>41 (FILE):<br>
file INSTALL cannot copy file "/home/me/sword-cmake-build/<u></u>utilities/addld"<br>
to "/usr/local/bin/addld".<br>
Call Stack (most recent call first):<br>
cmake_install.cmake:275 (INCLUDE)<br>
<br>
I think maybe ${SWORD_INSTALL_DIR} should be changed to ${PREFIX} in utilities/CMakeLists.txt?<br></blockquote><div><br></div><div>Good catch - looks like I accidentally grep'd for the wrong string when I was making sure I had gotten them all. I have added the additional option of BINDIR that captures the appropriate value. You can try again now, if you'd like.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Also, I'm not sure it's causing anything to fail, but the name of the icu directory seems to be missing something (1.6.2_icu_).<br></blockquote><div><br></div><div>Hmm, maybe. I'm very un-knowledgeable on what the ICU stuff all is supposed to be. That could explain the missing data warnings I see when I run the modules frequently. I'll look into that.</div>
<div><br></div><div>--Greg</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
-Ben<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<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/<u></u>mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</div></div></blockquote></div><br></div></div>