[bt-devel] BT 2.8.1 Build problem
Daniel Owens
dhowens at pmbx.net
Tue Nov 29 13:21:59 MST 2011
Greg,
I need to use sword svn because it supports case insensitive lexicon
keys (necessary for a couple of modules I am working on). I wanted to
see how things played with BibleTime.
Daniel
On 11/29/2011 02:04 PM, Greg Hellings wrote:
> Daniel,
>
> Somewhere SWORD was compiled with Lucene support, but does not appear
> to have recorded that support in its pkg-config or other files. What
> version of CLucene do you have on your system? If have version 2 or
> later, BibleTime does not yet support that version - or at least
> BibleTime 2.8.1 does not. Is there a reason you're trying to compile
> instead of using the packages for your distribution?
>
> --Greg
>
> On Tue, Nov 29, 2011 at 1:55 PM, Daniel Owens<dhowens at pmbx.net> wrote:
>> Thanks, Troy. I recompiled sword with that line commented out.
>>
>> My latest problem after it finds sword is this: "Sword linker check could
>> NOT be compiled. It seems that you need additional libraries for the
>> linker."
>>
>> Not sure what that means. Full output is below my name.
>>
>> Daniel
>>
>> daniel at daniel-VirtualBox ~/bibletime $ sudo sh build-debug.sh
>>
>> git: 'svn' is not a git command. See 'git --help'.
>>
>> Did you mean one of these?
>> fsck
>> show
>> -- Setting up build environment for BibleTime version 2.9.0_rc1+40b4474
>> -- Using DBUS
>> -- Found CLucene library: /usr/lib/libclucene.so
>> -- Found CLucene include dir: /usr/include
>> -- Found CLucene library dir: /usr/lib
>> -- Found CLucene: /usr/lib/libclucene.so
>> -- Found Sword library: /usr/lib64/libsword.a
>> -- Found Sword library dir: /usr/lib64
>> -- Found Sword include dir: /usr/include/sword
>> -- Checking for required Sword version 1.6.0...
>> -- Installed Sword version is ok. Check program said: Your installed Sword
>> version is: 1.6.2
>> -- Sword linker check could NOT be compiled. It seems that you need
>> additional libraries for the linker.
>> -- Here is the detailed output of the compilation and linking process:
>> CMake Error at cmake/FindSword.cmake:137 (MESSAGE):
>>
>> Change Dir: /home/daniel/bibletime/build/CMakeFiles/CMakeTmp
>>
>>
>>
>> Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
>>
>> /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
>> CMakeFiles/cmTryCompileExec.dir/build
>>
>> make[1]: Entering directory
>> `/home/daniel/bibletime/build/CMakeFiles/CMakeTmp'
>>
>> /usr/bin/cmake -E cmake_progress_report
>> /home/daniel/bibletime/build/CMakeFiles/CMakeTmp/CMakeFiles 1
>>
>> Building CXX object
>> CMakeFiles/cmTryCompileExec.dir/sword_linker_check.cpp.o
>>
>> /usr/bin/c++ -I/usr/include/sword -o
>> CMakeFiles/cmTryCompileExec.dir/sword_linker_check.cpp.o -c
>> /home/daniel/bibletime/cmake/sword_linker_check.cpp
>>
>>
>> Linking CXX executable cmTryCompileExec
>>
>> /usr/bin/cmake -E cmake_link_script
>> CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
>>
>> /usr/bin/c++ CMakeFiles/cmTryCompileExec.dir/sword_linker_check.cpp.o -o
>> cmTryCompileExec -rdynamic -lclucene -Wl,-Bstatic -lsword -Wl,-Bdynamic
>> -lcurl -licuuc -licui18n -lz
>>
>> /usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../lib/libsword.a(swmodule.o):
>> In function `sword::SWModule::search(char const*, int, int, sword::SWKey*,
>> bool*, void (*)(char, void*), void*)':
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:442: undefined reference
>> to `lucene::index::IndexReader::indexExists(char const*)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:505: undefined reference
>> to `lucene::index::IndexReader::open(char const*)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:506: undefined reference
>> to
>> `lucene::search::IndexSearcher::IndexSearcher(lucene::index::IndexReader*)'
>>
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:510: undefined reference
>> to `lucene::analysis::standard::StandardAnalyzer::StandardAnalyzer(wchar_t
>> const**)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:511: undefined reference
>> to `lucene::queryParser::QueryParser::parse(wchar_t const*, wchar_t const*,
>> lucene::analysis::Analyzer*)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:519: undefined reference
>> to `lucene::search::Hits::doc(int)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:522: undefined reference
>> to `lucene::document::Document::get(wchar_t const*) const'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:532: undefined reference
>> to `lucene::search::Hits::score(int)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:518: undefined reference
>> to `lucene::search::Hits::length() const'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:510: undefined reference
>> to `lucene::analysis::standard::StandardAnalyzer::~StandardAnalyzer()'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:545: undefined reference
>> to `lucene::index::IndexReader::close()'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:510: undefined reference
>> to `lucene::analysis::standard::StandardAnalyzer::~StandardAnalyzer()'
>>
>> /usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../lib/libsword.a(swmodule.o):
>> In function `sword::SWModule::createSearchFramework(void (*)(char, void*),
>> void*)':
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1057: undefined
>> reference to
>> `lucene::analysis::standard::StandardAnalyzer::StandardAnalyzer(wchar_t
>> const**)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1060: undefined
>> reference to `lucene::store::RAMDirectory::RAMDirectory()'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1061: undefined
>> reference to
>> `lucene::index::IndexWriter::IndexWriter(lucene::store::Directory*,
>> lucene::analysis::Analyzer*, bool, bool)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1116: undefined
>> reference to `lucene::document::Document::Document()'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1151: undefined
>> reference to `lucene::document::Field::Field(wchar_t const*, wchar_t
>> const*, int)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1151: undefined
>> reference to `lucene::document::Document::add(lucene::document::Field&)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1160: undefined
>> reference to `lucene::document::Field::Field(wchar_t const*, wchar_t
>> const*, int)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1160: undefined
>> reference to `lucene::document::Document::add(lucene::document::Field&)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1163: undefined
>> reference to `lucene::document::Field::Field(wchar_t const*, wchar_t
>> const*, int)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1163: undefined
>> reference to `lucene::document::Document::add(lucene::document::Field&)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1280: undefined
>> reference to `lucene::document::Field::Field(wchar_t const*, wchar_t
>> const*, int)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1280: undefined
>> reference to `lucene::document::Document::add(lucene::document::Field&)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1284: undefined
>> reference to `lucene::document::Field::Field(wchar_t const*, wchar_t
>> const*, int)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1284: undefined
>> reference to `lucene::document::Document::add(lucene::document::Field&)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1290: undefined
>> reference to
>> `lucene::index::IndexWriter::addDocument(lucene::document::Document*,
>> lucene::analysis::Analyzer*)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1300: undefined
>> reference to `lucene::index::IndexWriter::close()'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1305: undefined
>> reference to `lucene::index::IndexReader::indexExists(char const*)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1307: undefined
>> reference to `lucene::store::FSDirectory::getDirectory(char const*, bool)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1309: undefined
>> reference to
>> `lucene::index::IndexReader::isLocked(lucene::store::Directory*)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1310: undefined
>> reference to
>> `lucene::index::IndexReader::unlock(lucene::store::Directory*)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1312: undefined
>> reference to
>> `lucene::index::IndexWriter::IndexWriter(lucene::store::Directory*,
>> lucene::analysis::Analyzer*, bool, bool)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1316: undefined
>> reference to `lucene::store::FSDirectory::getDirectory(char const*, bool)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1318: undefined
>> reference to
>> `lucene::index::IndexWriter::IndexWriter(lucene::store::Directory*,
>> lucene::analysis::Analyzer*, bool, bool)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1326: undefined
>> reference to
>> `lucene::index::IndexWriter::addIndexes(lucene::store::Directory**)'
>>
>> /home/daniel/sword/lib/../src/modules/swmodule.cpp:1328: undefined
>> reference to `lucene::index::IndexWriter::close()'
>>
>> /usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../lib/libsword.a(swmodule.o):
>> In function `lucene::search::Searcher::search(lucene::search::Query*,
>> lucene::search::Filter*)':
>>
>> /usr/include/CLucene/search/SearchHeader.h:307: undefined reference to
>> `lucene::search::Hits::Hits(lucene::search::Searcher*,
>> lucene::search::Query*, lucene::search::Filter*, lucene::search::Sort
>> const*)'
>>
>>
>> collect2: ld returned 1 exit status
>>
>> make[1]: *** [cmTryCompileExec] Error 1
>>
>> make[1]: Leaving directory
>> `/home/daniel/bibletime/build/CMakeFiles/CMakeTmp'
>>
>> make: *** [cmTryCompileExec/fast] Error 2
>>
>> Call Stack (most recent call first):
>> CMakeLists.txt:69 (FIND_PACKAGE)
>>
>>
>> -- Configuring incomplete, errors occurred!
>>
>>
>> On 11/27/2011 10:57 PM, Troy A. Griffitts wrote:
>>> Daniel,
>>>
>>> This line is suspicious:
>>>
>>> Found Sword library: /usr/lib64/libsword.a
>>>
>>> I don't think Mint uses /usr/lib64 for it's 64 bit libs like Fedora does.
>>> If you used usrinst.sh to configure your svn checkout of sword, without
>>> modification, there is an option line in there you should probably comment
>>> out:
>>>
>>> OPTIONS="--libdir=/usr/lib64 $OPTIONS"
>>>
>>> then:
>>> make distclean
>>> ./usrinst.sh
>>> make
>>> sudo make install
>>> sudo rm /usr/lib64/libsword*
>>>
>>>
>>> Hope this helps,
>>>
>>> Troy
>>>
>>>
>>>
>>>
>>>
>>> On 11/27/2011 05:48 PM, Daniel Owens wrote:
>>>> Related to BT 2.8.4 on Linux Mint 12 with sword svn as of this morning...
>>>>
>>>> I get the same error as below. Looking in /etc/ld.so.conf, it simply has:
>>>>
>>>> include /etc/ld.so.conf.d/*.conf
>>>>
>>>> In that folder is a couple of conf files related to the kernel and
>>>> libc.conf:
>>>>
>>>> # libc default configuration
>>>> /usr/local/lib
>>>>
>>>> Anyway, here is the output of ./build-debug.sh:
>>>>
>>>> git: 'svn' is not a git command. See 'git --help'.
>>>>
>>>> Did you mean one of these?
>>>> fsck
>>>> show
>>>> -- Setting up build environment for BibleTime version 2.9.0_rc1+40b4474
>>>> -- Using DBUS
>>>> -- Found CLucene library: /usr/lib/libclucene.so
>>>> -- Found CLucene include dir: /usr/include
>>>> -- Found CLucene library dir: /usr/lib
>>>> -- Found CLucene: /usr/lib/libclucene.so
>>>> -- Found Sword library: /usr/lib64/libsword.a
>>>> -- Found Sword library dir: /usr/lib64
>>>> -- Found Sword include dir: /usr/include/sword
>>>> -- Checking for required Sword version 1.6.0...
>>>> CMake Error at cmake/FindSword.cmake:91 (MESSAGE):
>>>> Sword version check program could NOT be compiled: Change Dir:
>>>> /home/daniel/bibletime/build/CMakeFiles/CMakeTmp
>>>>
>>>>
>>>>
>>>> Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
>>>>
>>>> /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
>>>> CMakeFiles/cmTryCompileExec.dir/build
>>>>
>>>> make[1]: Entering directory
>>>> `/home/daniel/bibletime/build/CMakeFiles/CMakeTmp'
>>>>
>>>> /usr/bin/cmake -E cmake_progress_report
>>>> /home/daniel/bibletime/build/CMakeFiles/CMakeTmp/CMakeFiles 1
>>>>
>>>> Building CXX object
>>>> CMakeFiles/cmTryCompileExec.dir/sword_version_compare.cpp.o
>>>>
>>>> /usr/bin/c++ -I/usr/include/sword -o
>>>> CMakeFiles/cmTryCompileExec.dir/sword_version_compare.cpp.o -c
>>>> /home/daniel/bibletime/cmake/sword_version_compare.cpp
>>>>
>>>> Linking CXX executable cmTryCompileExec
>>>>
>>>> /usr/bin/cmake -E cmake_link_script
>>>> CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
>>>>
>>>> /usr/bin/c++ CMakeFiles/cmTryCompileExec.dir/sword_version_compare.cpp.o
>>>> -o
>>>> cmTryCompileExec -rdynamic -Wl,-Bstatic -lsword -Wl,-Bdynamic
>>>>
>>>> /usr/bin/ld: cannot find -lsword
>>>>
>>>> collect2: ld returned 1 exit status
>>>>
>>>> make[1]: Leaving directory
>>>> `/home/daniel/bibletime/build/CMakeFiles/CMakeTmp'
>>>>
>>>> make[1]: *** [cmTryCompileExec] Error 1
>>>>
>>>> make: *** [cmTryCompileExec/fast] Error 2
>>>>
>>>> Call Stack (most recent call first):
>>>> cmake/FindSword.cmake:96 (CHECK_SWORD_VERSION)
>>>> CMakeLists.txt:69 (FIND_PACKAGE)
>>>>
>>>>
>>>> -- Configuring incomplete, errors occurred!
>>>>
>>>> Any advice would be welcome.
>>>>
>>>> Daniel
>>>>
>>>> On 08/22/2011 11:24 PM, Gary Holmlund wrote:
>>>>> Troy,
>>>>>
>>>>> It is not finding the sword library. I have seen this before if
>>>>> ldconfig is not run after installing a library. Some times you have to
>>>>> add a directory to the /etc/ld.so.conf file if the directory that the
>>>>> library is in is not in the ld.so.conf file. Then run ldconfig again.
>>>>> My file name is how it is named on Fedora 15.
>>>>>
>>>>> Gary Holmlund
>>>>>
>>>>> On 08/22/2011 08:52 PM, troypulk wrote:
>>>>>> Hello,
>>>>>>
>>>>>> I'm trying a new Linux Distro called Mageia, it's a RPM based distro
>>>>>> that is a fork off of Mandriva.
>>>>>>
>>>>>> Anyway, I installed all the dependent programs and Sword 1.6.2 but I
>>>>>> get an error when building it.
>>>>>>
>>>>>> I understand what the problem is but I'm at a loss as to how to fix it.
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Here is the error message:
>>>>>>
>>>>>> # ./build-release.sh
>>>>>> -- The CXX compiler identification is GNU
>>>>>> -- The C compiler identification is GNU
>>>>>> -- Check for working CXX compiler: /usr/bin/c++
>>>>>> -- Check for working CXX compiler: /usr/bin/c++ -- works
>>>>>> -- Detecting CXX compiler ABI info
>>>>>> -- Detecting CXX compiler ABI info - done
>>>>>> -- Check for working C compiler: /usr/bin/gcc
>>>>>> -- Check for working C compiler: /usr/bin/gcc -- works
>>>>>> -- Detecting C compiler ABI info
>>>>>> -- Detecting C compiler ABI info - done
>>>>>> -- Setting up build environment for BibleTime version 2.8.1
>>>>>> -- Looking for Q_WS_X11
>>>>>> -- Looking for Q_WS_X11 - found
>>>>>> -- Looking for Q_WS_WIN
>>>>>> -- Looking for Q_WS_WIN - not found.
>>>>>> -- Looking for Q_WS_QWS
>>>>>> -- Looking for Q_WS_QWS - not found.
>>>>>> -- Looking for Q_WS_MAC
>>>>>> -- Looking for Q_WS_MAC - not found.
>>>>>> -- Found Qt-Version 4.7.3 (using /usr/bin/qmake)
>>>>>> -- Using DBUS
>>>>>> -- Found CLucene library: /usr/lib/libclucene.so
>>>>>> -- Found CLucene include dir: /usr/include
>>>>>> -- Found CLucene library dir: /usr/lib
>>>>>> -- Found CLucene: /usr/lib/libclucene.so
>>>>>> -- Found CURL: /usr/lib/libcurl.so
>>>>>> -- Found ZLIB: /usr/include (found version "1.2.5")
>>>>>> -- Found Sword library: /usr/lib64/libsword.so
>>>>>> -- Found Sword library dir: /usr/lib64
>>>>>> -- Found Sword include dir: /usr/include/sword
>>>>>> -- Checking for required Sword version 1.6.0...
>>>>>> CMake Error at cmake/FindSword.cmake:91 (MESSAGE):
>>>>>> Sword version check program could NOT be compiled: Change Dir:
>>>>>> /home/troypulk/bibletime-2.8.1/build/CMakeFiles/CMakeTmp
>>>>>>
>>>>>> Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
>>>>>>
>>>>>> /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
>>>>>> CMakeFiles/cmTryCompileExec.dir/build
>>>>>>
>>>>>> gmake[1]: Entering directory
>>>>>> `/home/troypulk/bibletime-2.8.1/build/CMakeFiles/CMakeTmp'
>>>>>>
>>>>>> /usr/bin/cmake -E cmake_progress_report
>>>>>> /home/troypulk/bibletime-2.8.1/build/CMakeFiles/CMakeTmp/CMakeFiles 1
>>>>>>
>>>>>> Building CXX object
>>>>>> CMakeFiles/cmTryCompileExec.dir/sword_version_compare.cpp.o
>>>>>>
>>>>>> /usr/bin/c++ -I/usr/include/sword -o
>>>>>> CMakeFiles/cmTryCompileExec.dir/sword_version_compare.cpp.o -c
>>>>>> /home/troypulk/bibletime-2.8.1/cmake/sword_version_compare.cpp
>>>>>>
>>>>>> Linking CXX executable cmTryCompileExec
>>>>>>
>>>>>> /usr/bin/cmake -E cmake_link_script
>>>>>> CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
>>>>>>
>>>>>> /usr/bin/c++
>>>>>> CMakeFiles/cmTryCompileExec.dir/sword_version_compare.cpp.o -o
>>>>>> cmTryCompileExec -rdynamic -lsword
>>>>>>
>>>>>> /usr/bin/ld: cannot find -lsword
>>>>>>
>>>>>> collect2: ld returned 1 exit status
>>>>>>
>>>>>> gmake[1]: Leaving directory
>>>>>> `/home/troypulk/bibletime-2.8.1/build/CMakeFiles/CMakeTmp'
>>>>>>
>>>>>> gmake[1]: *** [cmTryCompileExec] Error 1
>>>>>>
>>>>>> gmake: *** [cmTryCompileExec/fast] Error 2
>>>>>>
>>>>>> Call Stack (most recent call first):
>>>>>> cmake/FindSword.cmake:96 (CHECK_SWORD_VERSION)
>>>>>> CMakeLists.txt:69 (FIND_PACKAGE)
>>>>>>
>>>>>> -- Configuring incomplete, errors occurred!
>>>>>>
>>>>>> _______________________________________________
>>>>>> bt-devel mailing list
>>>>>> bt-devel at crosswire.org
>>>>>> http://www.crosswire.org/mailman/listinfo/bt-devel
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> bt-devel mailing list
>>>>> bt-devel at crosswire.org
>>>>> http://www.crosswire.org/mailman/listinfo/bt-devel
>>>>>
>>>> _______________________________________________
>>>> bt-devel mailing list
>>>> bt-devel at crosswire.org
>>>> http://www.crosswire.org/mailman/listinfo/bt-devel
>>>
>>>
>>> _______________________________________________
>>> bt-devel mailing list
>>> bt-devel at crosswire.org
>>> http://www.crosswire.org/mailman/listinfo/bt-devel
>>>
>> _______________________________________________
>> bt-devel mailing list
>> bt-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/bt-devel
> _______________________________________________
> bt-devel mailing list
> bt-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/bt-devel
>
More information about the bt-devel
mailing list