[go: up one dir, main page]

Menu

#6 build libjsoncpp as libDDCjsoncpp

1.0
closed
None
2019-11-07
2019-11-07
No

by ddc-v2.x convention, all utility libraries built by DDC are built & installed as libDDC*.so

Discussion

  • Alexey Sokirko

    Alexey Sokirko - 2019-11-07

    Brayn, that is not a DDC library. May be it better to create folder contrib, where all such external libraries located?
    contrib -> pcre, jsoncpp, tinyxml, rmltar
    Otherwise I have to edit the external CMakeLists.txt. I can do it, simply please confirm your ticket.

     

    Last edit: Alexey Sokirko 2019-11-07
  • Bryan Jurish

    Bryan Jurish - 2019-11-07

    it is not "a DDC library" in the sense that it originated in DDC, but it is used by DDC, and there may be other software using the same library (maybe in different versions) on the same machine. The convention is: libraries which are built and distributed with the DDC sources use the libDDC*.la conventions.

    $ grep '^lib_LTLIB' */Makefile.am
    AgramtabLib/Makefile.am:lib_LTLIBRARIES = libDDCAgramtab.la
    CommonLib/Makefile.am:lib_LTLIBRARIES = libDDCCommon.la
    ConcordDmnLib/Makefile.am:lib_LTLIBRARIES = libDDCConcordDmn.la
    ConcordLib/Makefile.am:lib_LTLIBRARIES = libDDCConcord.la
    GraphanLib/Makefile.am:lib_LTLIBRARIES = libDDCGraphan.la
    jsoncpp/Makefile.am:lib_LTLIBRARIES = libjsoncpp.la
    LemmatizerLib/Makefile.am:lib_LTLIBRARIES = libDDCLemmatizer.la
    MorphWizardLib/Makefile.am:lib_LTLIBRARIES = libDDCMorphWizard.la
    PCRE/Makefile.am:lib_LTLIBRARIES = libDDCPCRE.la
    RmlTar/Makefile.am:lib_LTLIBRARIES = libDDCRmlTar.la
    StructDictLib/Makefile.am:lib_LTLIBRARIES = libDDCStructDict.la
    tinyxml/Makefile.am:lib_LTLIBRARIES = libDDCTinyXml.la
    
     
  • Bryan Jurish

    Bryan Jurish - 2019-11-07

    ... I should probably add the *.la is a libtool suffix; the actual libraries built are *.a (static) and *.so (dynamic)

     
  • Bryan Jurish

    Bryan Jurish - 2019-11-07

    ... and I should also add that I'm not really concerned with the CMakeLists.txt: I'm going to continue building with autoconf+automake, so it's just a 1-line change in libjsoncpp/Makefile.am, and I think we've both already spent way more time on it than three bytes are worth.

     
  • Alexey Sokirko

    Alexey Sokirko - 2019-11-07
    • status: wont-fix --> closed
     

Log in to post a comment.