Menu

failed to create shared library on cygwin

Help
Addie
2015-06-19
2015-06-19
  • Addie

    Addie - 2015-06-19

    Hello on cygwin, i tried to compile kaldi with ./configure --shared option but it failed and shows error message as,

    $ make depend
    make -C base/ depend
    make[1]: Entering directory '/cygdrive/c/kaldi/src/base'
    ../makefiles/default_rules.mk:21: Dynamic libraries not supported on this platform. Run configure with --static flag. . Stop.
    make[1]: Leaving directory '/cygdrive/c/kaldi/src/base'
    Makefile:128: recipe for target 'base/depend' failed
    make:
    [base/depend] Error 2

    i wanted it to link up with gst-kaldi-nnet2-online project n for that tried to compile it by shared flag

     
    • Daniel Povey

      Daniel Povey - 2015-06-19

      I don't recall why we didn't support shared libraries on cygwin.
      There may be a good reason for it (some limitation of the platform),
      or there may not. If you can figure out how to do it we would be
      happy to include the changes in the distribution.

      Dan

      On Fri, Jun 19, 2015 at 12:22 AM, Addie badboys4life007@users.sf.net wrote:

      Hello on cygwin, i tried to compile kaldi with ./configure --shared option
      but it failed and shows error message as,

      $ make depend
      make -C base/ depend
      make[1]: Entering directory '/cygdrive/c/kaldi/src/base'
      ../makefiles/default_rules.mk:21: Dynamic libraries not supported on this
      platform. Run configure with --static flag. . Stop.
      make[1]: Leaving directory '/cygdrive/c/kaldi/src/base'
      Makefile:128: recipe for target 'base/depend' failed
      make: [base/depend] Error 2

      i wanted it to link up with gst-kaldi-nnet2-online project n for that tried
      to compile it by shared flag


      failed to create shared library on cygwin


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/kaldi/discussion/1355348/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
      • Jan "yenda" Trmal

        BTW, Tanel, I'm looking at the
        https://github.com/alumae/gst-kaldi-nnet2-online project -- why is the
        kaldi compiled with shared libraries needed?
        y.

        On Fri, Jun 19, 2015 at 12:55 AM, Daniel Povey danielpovey@users.sf.net
        wrote:

        I don't recall why we didn't support shared libraries on cygwin.
        There may be a good reason for it (some limitation of the platform),
        or there may not. If you can figure out how to do it we would be
        happy to include the changes in the distribution.

        Dan

        On Fri, Jun 19, 2015 at 12:22 AM, Addie badboys4life007@users.sf.net
        wrote:

        Hello on cygwin, i tried to compile kaldi with ./configure --shared
        option
        but it failed and shows error message as,

        $ make depend
        make -C base/ depend
        make[1]: Entering directory '/cygdrive/c/kaldi/src/base'
        ../makefiles/default_rules.mk:21: Dynamic libraries not supported on
        this
        platform. Run configure with --static flag. . Stop.
        make[1]: Leaving directory '/cygdrive/c/kaldi/src/base'
        Makefile:128: recipe for target 'base/depend' failed
        make: [base/depend] Error 2

        i wanted it to link up with gst-kaldi-nnet2-online project n for that
        tried
        to compile it by shared flag


        failed to create shared library on cygwin


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/kaldi/discussion/1355348/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/


        failed to create shared library on cygwin


        Sent from sourceforge.net because you indicated interest in <
        https://sourceforge.net/p/kaldi/discussion/1355348/>

        To unsubscribe from further messages, please visit <
        https://sourceforge.net/auth/subscriptions/>

         
        • Tanel Alumäe

          Tanel Alumäe - 2015-06-19

          I don't remember exactly why the GStreamer plugin needs shared libraries, I already had this problem when developing the orginal GMM-based Kaldi GStreamer plugin. The honest answer is that this is how I got it to compile and link. I think it got something to do with the linker requiring libraries compiled with the the -fPIC flag. It might be possible to fix it.