Re: [sword-devel] SWORD 1.9.0RC3 Available - Windows

2020-10-11 Thread Gary Holmlund




3. buildtest.exe build error - I comment out the building of
buildtest.exe in CMakeLists.txt

This might be a question for Troy. I wonder if these are based on the 
deprecations he has done this cycle?


--Greg


This problem is the same as in 1.8.1.

Gary


___
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] SWORD 1.9.0RC3 Available

2020-10-11 Thread Greg Hellings
On Tue, Oct 6, 2020 at 3:52 AM ZdPo Ster  wrote:

>
>
> On Sun, 4 Oct 2020 at 21:32, Greg Hellings 
> wrote:
>
>> Ah, I had heard that Microsoft understood slash characters better in
>> paths nowadays compared to their insistence on backslashes in the past.
>> That update should be easy to merge.
>>
>
> IMO this (original warning) is not a problem of Microsoft but cmake.
>

This was a bad decision Microsoft made dozens of years ago. They're finally
getting better. :)


>
>> Why do we need to call this "CMAKE_POLICY" function? What is CMP0012? You
>> seem to be on a VERY new version of CMake, whereas we support pretty old
>> versions. The CMakeLists.txt itself claims to support back to 2.6.0, which
>> allows us to still cover older versions of CentOS and Ubuntu. Is this
>> policy something specific to newer versions of CMake? I would rather not
>> bump older versions out of accessibility if I don't need to.
>>
>
> Problem is not in SWORD but cURL (7.72.0). Here is output from cmake
> output:
>

Having read more, I'm not going to put settings into CMakeLists.txt that
account for deprecations in cURL. Please report this to cURL so they can
change the text of their generated CMake files.

The default path change has been added to the head of SVN now. You can grab
that and see if it works for you, now.

--Greg
___
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] SWORD 1.9.0RC3 Available - Windows

2020-10-11 Thread Greg Hellings
Gary,

I have prepared the changes for #1 and 4 below.

For #3 try defining CLUCENE_HOME with -DCLUCENE_HOME=../../some/path/ to
where you built and installed CLucene. That *should* allow
FindCLucene.cmake to locate the files appropriately.

Now, if I could just ever remember my SVN password to make a commit to the
source tree! Shame we can't have SSH transport for commits!

--Greg

On Sun, Oct 11, 2020 at 3:01 PM Greg Hellings 
wrote:

>
>
> On Sun, Oct 11, 2020, 11:21 Gary Holmlund  wrote:
>
>> Troy and Greg,
>>
>> I have compiled BibleTime with Sword 1.8.903 on Windows. To do this I
>> had to make 4 changes to cmake files. The first and last one are easy
>> changes. The second and third will need more effort to decide how to
>> properly fix them.
>>
>> Thanks for your great efforts.
>>
>> Gary Holmlund
>>
>>
>> 1. Find ICU Quiet.
>>
>> 52c52
>> < FIND_PACKAGE(ICU
>> ---
>>  > FIND_PACKAGE(ICU QUIET
>>
>
> This is curious. I wonder why.
>
>
>>
>>
>> 2.I had to comment out the find of clucene.
>>
>> 55c55
>> < FIND_PACKAGE(CLucene QUIET)
>> ---
>>  > #FIND_PACKAGE(CLucene QUIET)
>>
>>  If it is not commented out, I get this error.
>>
>>CMake Error at cmake/FindCLucene.cmake:82 (FILE):
>>FILE failed to open for reading (No such file or directory):
>>
>> C:/bibletime-tmp/b5/sword-prefix/src/sword-build/./CLucene/clucene-config.h
>>
>>NOTE: I find CLucene/clucene-config.h in the include directory.
>>
>
> There should be a series of search paths it looks through. I'm not at my
> computer right now to check, but if you define the search paths this should
> be unnecessary. Tobias, I think, has a build script that demonstrates
> defining the search path for CLucene.
>
>
>>
>>
>> 3. buildtest.exe build error - I comment out the building of
>> buildtest.exe in CMakeLists.txt
>>
>> 272,277c272,277
>> < ADD_EXECUTABLE(buildtest buildtest.cpp)
>> < IF(BUILDING_STATIC)
>> <   TARGET_LINK_LIBRARIES(buildtest sword_static)
>> < ELSE(BUILDING_STATIC)
>> <   TARGET_LINK_LIBRARIES(buildtest sword)
>> < ENDIF(BUILDING_STATIC)
>> ---
>>  > #ADD_EXECUTABLE(buildtest buildtest.cpp)
>>  > #IF(BUILDING_STATIC)
>>  > # TARGET_LINK_LIBRARIES(buildtest sword_static)
>>  > #ELSE(BUILDING_STATIC)
>>  > # TARGET_LINK_LIBRARIES(buildtest sword)
>>  > #ENDIF(BUILDING_STATIC)
>>
>> Here are the errors I got without this change.
>>
>> buildtest.cpp
>> 5>C:\bibletime-tmp\sword\include\swkey.h(92,32): warning C4251:
>> 'sword::SWKey::localeCache': class 'sword::SWKey::LocaleCache' needs to
>> have dll-interface to be used by clients of class 'sword::SWKey'
>> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
>> 5>C:\bibletime-tmp\sword\include\swkey.h(79): message : see declaration
>> of 'sword::SWKey::LocaleCache'
>> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
>> 5>C:\bibletime-tmp\sword\include\swconfig.h(125,34): warning C4251:
>> 'sword::SWConfig::Sections': class
>> 'std::map,std::allocator>
>> sword::SWBuf,sword::ConfigEntMap>>>' needs to have dll-interface to be
>> used by clients of class 'sword::SWConfig'
>> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
>> 5>C:\bibletime-tmp\sword\include\swconfig.h(36): message : see
>> declaration of
>> 'std::map,std::allocator>
>> sword::SWBuf,sword::ConfigEntMap>>>'
>> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
>> 5>C:\bibletime-tmp\sword\include\swmodule.h(118,24): warning C4251:
>> 'sword::SWModule::ownConfig': class
>> 'sword::multimapwithdefault>'
>>
>> needs to have dll-interface to be used by clients of class
>> 'sword::SWModule'
>> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
>> 5>C:\bibletime-tmp\sword\include\swconfig.h(35): message : see
>> declaration of
>> 'sword::multimapwithdefault>'
>>
>> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
>> 5>C:\bibletime-tmp\sword\include\swmodule.h(120,43): warning C4251:
>> 'sword::SWModule::entryAttributes': class
>> 'std::map,std::allocator>
>> sword::SWBuf,sword::AttributeList>>>' needs to have dll-interface to be
>> used by clients of class 'sword::SWModule'
>> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
>> 5>C:\bibletime-tmp\sword\include\swmodule.h(78): message : see
>> declaration of
>> 'std::map,std::allocator>
>> sword::SWBuf,sword::AttributeList>>>'
>> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
>> 5>C:\bibletime-tmp\sword\include\swmodule.h(142,30): warning C4251:
>> 'sword::SWModule::rawdisp': class 'sword::SWModule::StdOutDisplay' needs
>> to have dll-interface to be used by clients of class 'sword::SWModule'
>> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
>> 5>C:\bibletime-tmp\sword\include\swmodule.h(107): message : see
>> declaration of 'sword::SWModule::StdOutDisplay'
>> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
>> 5> Creating library
>> 

Re: [sword-devel] SWORD 1.9.0RC3 Available - Windows

2020-10-11 Thread Greg Hellings
On Sun, Oct 11, 2020, 11:21 Gary Holmlund  wrote:

> Troy and Greg,
>
> I have compiled BibleTime with Sword 1.8.903 on Windows. To do this I
> had to make 4 changes to cmake files. The first and last one are easy
> changes. The second and third will need more effort to decide how to
> properly fix them.
>
> Thanks for your great efforts.
>
> Gary Holmlund
>
>
> 1. Find ICU Quiet.
>
> 52c52
> < FIND_PACKAGE(ICU
> ---
>  > FIND_PACKAGE(ICU QUIET
>

This is curious. I wonder why.


>
>
> 2.I had to comment out the find of clucene.
>
> 55c55
> < FIND_PACKAGE(CLucene QUIET)
> ---
>  > #FIND_PACKAGE(CLucene QUIET)
>
>  If it is not commented out, I get this error.
>
>CMake Error at cmake/FindCLucene.cmake:82 (FILE):
>FILE failed to open for reading (No such file or directory):
> C:/bibletime-tmp/b5/sword-prefix/src/sword-build/./CLucene/clucene-config.h
>
>NOTE: I find CLucene/clucene-config.h in the include directory.
>

There should be a series of search paths it looks through. I'm not at my
computer right now to check, but if you define the search paths this should
be unnecessary. Tobias, I think, has a build script that demonstrates
defining the search path for CLucene.


>
>
> 3. buildtest.exe build error - I comment out the building of
> buildtest.exe in CMakeLists.txt
>
> 272,277c272,277
> < ADD_EXECUTABLE(buildtest buildtest.cpp)
> < IF(BUILDING_STATIC)
> <   TARGET_LINK_LIBRARIES(buildtest sword_static)
> < ELSE(BUILDING_STATIC)
> <   TARGET_LINK_LIBRARIES(buildtest sword)
> < ENDIF(BUILDING_STATIC)
> ---
>  > #ADD_EXECUTABLE(buildtest buildtest.cpp)
>  > #IF(BUILDING_STATIC)
>  > # TARGET_LINK_LIBRARIES(buildtest sword_static)
>  > #ELSE(BUILDING_STATIC)
>  > # TARGET_LINK_LIBRARIES(buildtest sword)
>  > #ENDIF(BUILDING_STATIC)
>
> Here are the errors I got without this change.
>
> buildtest.cpp
> 5>C:\bibletime-tmp\sword\include\swkey.h(92,32): warning C4251:
> 'sword::SWKey::localeCache': class 'sword::SWKey::LocaleCache' needs to
> have dll-interface to be used by clients of class 'sword::SWKey'
> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
> 5>C:\bibletime-tmp\sword\include\swkey.h(79): message : see declaration
> of 'sword::SWKey::LocaleCache'
> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
> 5>C:\bibletime-tmp\sword\include\swconfig.h(125,34): warning C4251:
> 'sword::SWConfig::Sections': class
> 'std::map,std::allocator
> sword::SWBuf,sword::ConfigEntMap>>>' needs to have dll-interface to be
> used by clients of class 'sword::SWConfig'
> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
> 5>C:\bibletime-tmp\sword\include\swconfig.h(36): message : see
> declaration of
> 'std::map,std::allocator
> sword::SWBuf,sword::ConfigEntMap>>>'
> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
> 5>C:\bibletime-tmp\sword\include\swmodule.h(118,24): warning C4251:
> 'sword::SWModule::ownConfig': class
> 'sword::multimapwithdefault>'
>
> needs to have dll-interface to be used by clients of class
> 'sword::SWModule'
> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
> 5>C:\bibletime-tmp\sword\include\swconfig.h(35): message : see
> declaration of
> 'sword::multimapwithdefault>'
>
> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
> 5>C:\bibletime-tmp\sword\include\swmodule.h(120,43): warning C4251:
> 'sword::SWModule::entryAttributes': class
> 'std::map,std::allocator
> sword::SWBuf,sword::AttributeList>>>' needs to have dll-interface to be
> used by clients of class 'sword::SWModule'
> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
> 5>C:\bibletime-tmp\sword\include\swmodule.h(78): message : see
> declaration of
> 'std::map,std::allocator
> sword::SWBuf,sword::AttributeList>>>'
> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
> 5>C:\bibletime-tmp\sword\include\swmodule.h(142,30): warning C4251:
> 'sword::SWModule::rawdisp': class 'sword::SWModule::StdOutDisplay' needs
> to have dll-interface to be used by clients of class 'sword::SWModule'
> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
> 5>C:\bibletime-tmp\sword\include\swmodule.h(107): message : see
> declaration of 'sword::SWModule::StdOutDisplay'
> [C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
> 5> Creating library
> C:/bibletime-tmp/b6/sword-prefix/src/sword-build/Release/buildtest.lib
> and object
> C:/bibletime-tmp/b6/sword-prefix/src/sword-build/Release/buildtest.exp
> 5>buildtest.obj : error LNK2019: unresolved external symbol "public:
> static char * sword::SWBuf::nullStr" (?nullStr@SWBuf@sword@@2PADA)
> referenced in function "public: __thiscall std::pair const ,class sword::multimapwithdefault sword::SWBuf,struct std::less > >::pair sword::SWBuf const ,class sword::multimapwithdefault sword::SWBuf,class sword::SWBuf,struct std::less >
>  >(struct std::piecewise_construct_t,class
> 

Re: [sword-devel] SWORD 1.9.0RC3 Available - Windows

2020-10-11 Thread Gary Holmlund

Troy and Greg,

I have compiled BibleTime with Sword 1.8.903 on Windows. To do this I 
had to make 4 changes to cmake files. The first and last one are easy 
changes. The second and third will need more effort to decide how to 
properly fix them.


Thanks for your great efforts.

Gary Holmlund


1. Find ICU Quiet.

52c52
< FIND_PACKAGE(ICU
---
> FIND_PACKAGE(ICU QUIET



2.I had to comment out the find of clucene.

55c55
< FIND_PACKAGE(CLucene QUIET)
---
> #FIND_PACKAGE(CLucene QUIET)

    If it is not commented out, I get this error.

  CMake Error at cmake/FindCLucene.cmake:82 (FILE):
  FILE failed to open for reading (No such file or directory):
C:/bibletime-tmp/b5/sword-prefix/src/sword-build/./CLucene/clucene-config.h

  NOTE: I find CLucene/clucene-config.h in the include directory.



3. buildtest.exe build error - I comment out the building of 
buildtest.exe in CMakeLists.txt


272,277c272,277
< ADD_EXECUTABLE(buildtest buildtest.cpp)
< IF(BUILDING_STATIC)
<   TARGET_LINK_LIBRARIES(buildtest sword_static)
< ELSE(BUILDING_STATIC)
<   TARGET_LINK_LIBRARIES(buildtest sword)
< ENDIF(BUILDING_STATIC)
---
> #ADD_EXECUTABLE(buildtest buildtest.cpp)
> #IF(BUILDING_STATIC)
> # TARGET_LINK_LIBRARIES(buildtest sword_static)
> #ELSE(BUILDING_STATIC)
> # TARGET_LINK_LIBRARIES(buildtest sword)
> #ENDIF(BUILDING_STATIC)

Here are the errors I got without this change.

buildtest.cpp
5>C:\bibletime-tmp\sword\include\swkey.h(92,32): warning C4251: 
'sword::SWKey::localeCache': class 'sword::SWKey::LocaleCache' needs to 
have dll-interface to be used by clients of class 'sword::SWKey' 
[C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
5>C:\bibletime-tmp\sword\include\swkey.h(79): message : see declaration 
of 'sword::SWKey::LocaleCache' 
[C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
5>C:\bibletime-tmp\sword\include\swconfig.h(125,34): warning C4251: 
'sword::SWConfig::Sections': class 
'std::map,std::allocatorsword::SWBuf,sword::ConfigEntMap>>>' needs to have dll-interface to be 
used by clients of class 'sword::SWConfig' 
[C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
5>C:\bibletime-tmp\sword\include\swconfig.h(36): message : see 
declaration of 
'std::map,std::allocatorsword::SWBuf,sword::ConfigEntMap>>>' 
[C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
5>C:\bibletime-tmp\sword\include\swmodule.h(118,24): warning C4251: 
'sword::SWModule::ownConfig': class 
'sword::multimapwithdefault>' 
needs to have dll-interface to be used by clients of class 
'sword::SWModule' 
[C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
5>C:\bibletime-tmp\sword\include\swconfig.h(35): message : see 
declaration of 
'sword::multimapwithdefault>' 
[C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
5>C:\bibletime-tmp\sword\include\swmodule.h(120,43): warning C4251: 
'sword::SWModule::entryAttributes': class 
'std::map,std::allocatorsword::SWBuf,sword::AttributeList>>>' needs to have dll-interface to be 
used by clients of class 'sword::SWModule' 
[C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
5>C:\bibletime-tmp\sword\include\swmodule.h(78): message : see 
declaration of 
'std::map,std::allocatorsword::SWBuf,sword::AttributeList>>>' 
[C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
5>C:\bibletime-tmp\sword\include\swmodule.h(142,30): warning C4251: 
'sword::SWModule::rawdisp': class 'sword::SWModule::StdOutDisplay' needs 
to have dll-interface to be used by clients of class 'sword::SWModule' 
[C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
5>C:\bibletime-tmp\sword\include\swmodule.h(107): message : see 
declaration of 'sword::SWModule::StdOutDisplay' 
[C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
5> Creating library 
C:/bibletime-tmp/b6/sword-prefix/src/sword-build/Release/buildtest.lib 
and object 
C:/bibletime-tmp/b6/sword-prefix/src/sword-build/Release/buildtest.exp
5>buildtest.obj : error LNK2019: unresolved external symbol "public: 
static char * sword::SWBuf::nullStr" (?nullStr@SWBuf@sword@@2PADA) 
referenced in function "public: __thiscall std::pairconst ,class sword::multimapwithdefaultsword::SWBuf,struct std::less > >::pairsword::SWBuf const ,class sword::multimapwithdefaultsword::SWBuf,class sword::SWBuf,struct std::less > 
>(struct std::piecewise_construct_t,class 
std::tuple,class std::tuple<>)" 
(??$?0$$QAVSWBuf@sword@@$$Z$$V@?$pair@$$CBVSWBuf@sword@@V?$multimapwithdefault@VSWBuf@sword@@V12@U?$less@VSWBuf@sword@@@std@@@2@@std@@QAE@Upiecewise_construct_t@1@V?$tuple@$$QAVSWBuf@sword@@@1@V?$tuple@$$V@1@@Z) 
[C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]
5>C:\bibletime-tmp\b6\sword-prefix\src\sword-build\Release\buildtest.exe 
: fatal error LNK1120: 1 unresolved externals 
[C:\bibletime-tmp\b6\sword-prefix\src\sword-build\buildtest.vcxproj]

5>Done building project