Menu

Gstreamer - can't build plugin

Help
2018-04-29
2019-01-30
  • Sean DeNigris

    Sean DeNigris - 2018-04-29

    From config.log:

    configure:13214: checking for GStreamer
    configure:13224: $PKG_CONFIG --exists --print-errors "gstreamer-$GST_MAJORMINOR >= 1.0
    gstreamer-base-$GST_MAJORMINOR >= 1.0
    gstreamer-plugins-base-$GST_MAJORMINOR >= 1.0"
    Package gstreamer-1.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing gstreamer-1.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gstreamer-1.0' found Package gstreamer-base-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containinggstreamer-base-1.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gstreamer-base-1.0' found
    Package gstreamer-plugins-base-1.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gstreamer-plugins-base-1.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gstreamer-plugins-base-1.0' found

    What makes this bizzare is that the offending line works perfectly from a terminal:

    pkg-config --exists --print-errors "gstreamer-1.0"

    I should also mention that I tried to use the full path to pkg-config listed earlier in config.log as a sanity check, namely:

    /usr/local/opt/pkg-config/bin/pkg-config

    Also, I did a debug run of pkg-config to see where it was finding gstreamer:

    pkg-config --debug --libs gstreamer-1.0

    I then added the appropriate directory via:

    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/

    And reinstalled pocketsphinx via:

    brew uninstall cmu-pocketsphinx
    brew uninstall cmu-sphinxbase
    brew install --HEAD watsonbox/cmu-sphinx/cmu-sphinxbase
    brew install --HEAD watsonbox/cmu-sphinx/cmu-pocketsphinx

    But the config.log still reported not finding gstreamer :/

    Notes:
    - OS X 10.13.2
    - Installed pocketsphinx 5prealpha via homebrew per https://github.com/watsonbox/homebrew-cmu-sphinx

     

    Last edit: Sean DeNigris 2018-04-29
    • Nickolay V. Shmyrev

      It is missing gstreamer-base and gstreamer-plugins-base probably, not gstreamer.

       
  • Sean DeNigris

    Sean DeNigris - 2018-04-29

    Thanks for the reply! I checked all three .pc files via --debug and they all exist :/

     

    Last edit: Sean DeNigris 2018-04-29
  • Sean DeNigris

    Sean DeNigris - 2018-04-30

    Workaround: I just made a fresh clone from GH and copied the built plugin under /usr/local

     
  • Cindy Chang

    Cindy Chang - 2019-01-30

    I'd like to ask where to find the config.log file, thanks!

     
    • Nickolay V. Shmyrev

      In pocketsphinx source folder when you build from sources with ./configure && make && make install. Configure command creates it.

       
      • Cindy Chang

        Cindy Chang - 2019-01-30

        Thank you for the fast reply! However, since I was using this tutorial(here), I don't know when nor where to execute the make install command(and related commands).

         
      • Cindy Chang

        Cindy Chang - 2019-01-30

        I am using macOS. The command I used for installing was

        brew install cmu-pocketsphinx

         

        Last edit: Cindy Chang 2019-01-30
        • Nickolay V. Shmyrev

          In top source folder. You can probably watch some howtos on building linux software from source, it is well covered.

           
          👍
          1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.