pkg-config can't see multiple paths under PKG_CONFIG_LIBDIRWhy does my cross-compiling fail?pkg-config is looking into /usr/local/lib/pkgconfig even with PKG_CONFIG_PATH set to another locationHow to get Qt5 ./configure to find my cross-compiled OpenSSL libs?Package opencv was not found in the pkg-config search pathpkg-config: PKG_PROG_PKG_CONFIG: command not foundHow to build MinGW x64 on WindowsUndefined reference to InterlockedCompareExchange with boost.thread on mingw64 (but not on mingw32)fatal error: sys/socket.h: No such file or directory, x86_64-w64-mingw32 modePackage libusb was not found in the pkg-config search pathpkg-config cannot find gtk+-3.0how to compile ffmpeg with mingw-w64 toolchain in cygwin environment

What does "frozen" mean (e.g. for catcodes)?

Why do people prefer metropolitan areas, considering monsters and villains?

How to say "is going" in Russian in "this game is going to perish"

NOLOCK or Read Uncommitted locking / latching behaviours

How to reclaim personal item I've lent to the office without burning bridges?

How do I explain that I don't want to maintain old projects?

How do ballistic trajectories work in a ring world?

I'm feeling like my character doesn't fit the campaign

My professor has told me he will be the corresponding author. Will it hurt my future career?

Quotients of a ring of integers

Need a non-volatile memory IC with near unlimited read/write operations capability

Can a USB hub be used to access a drive from two devices?

What are the consequences for a developed nation to not accept any refugee?

Define functions in a tikzcd diagram

force:lightningQuickAction . Will implementing this open the component as modalpop up directly?

Is conquering your neighbors to fight a greater enemy a valid strategy?

What is the shape of the upper boundary of water hitting a screen?

Array or vector? Two dimensional array or matrix?

Is this car delivery via Ebay Motors on Craigslist a scam?

How to have a filled pattern

Sense of humor in your sci-fi stories

Category-theoretic treatment of diffs, patches and merging?

What does "spinning upon the shoals" mean?

What was the significance of Spider-Man: Far From Home being an MCU Phase 3 film instead of a Phase 4 film?



pkg-config can't see multiple paths under PKG_CONFIG_LIBDIR


Why does my cross-compiling fail?pkg-config is looking into /usr/local/lib/pkgconfig even with PKG_CONFIG_PATH set to another locationHow to get Qt5 ./configure to find my cross-compiled OpenSSL libs?Package opencv was not found in the pkg-config search pathpkg-config: PKG_PROG_PKG_CONFIG: command not foundHow to build MinGW x64 on WindowsUndefined reference to InterlockedCompareExchange with boost.thread on mingw64 (but not on mingw32)fatal error: sys/socket.h: No such file or directory, x86_64-w64-mingw32 modePackage libusb was not found in the pkg-config search pathpkg-config cannot find gtk+-3.0how to compile ffmpeg with mingw-w64 toolchain in cygwin environment






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm trying to use a MinGW-w64 toolchain under Cygwin to compile FFmpeg for Windows 7, but am having trouble trying to get pkg-config to see both the packages I've compiled from source (located in /usr/bin/lib/pkgconfig) and the MinGW-w64 packages installed using Cygwin's package manager (located in /usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig).



Currently, pkg-config is only finding the packages in /usr/bin/lib/pkgconfig, and trying to compile the packages located in the sys-root path results in an error like the following:




ERROR: libass not found using pkg-config




This is despite the fact I've included the paths of both package directories to PKG_CONFIG_LIBDIR (see this answer for why I'm using PKG_CONFIG_LIBDIR instead of PKG_CONFIG_PATH), and have added both to --extra-cflags and --extra-ldflags:



cd ffmpeg &&
export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig &&
./configure
--arch=x86_64
--cross-prefix=x86_64-w64-mingw32-
--target-os=mingw32
--extra-cflags="-static -I/usr/local/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include"
--extra-ldflags="-static -L/usr/local/lib -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib"
--extra-libs="-pthread -lm"
--prefix="/usr/local"
--pkg-config="pkg-config"
--pkg-config-flags="--static"
--enable-libaom
--enable-libass
--enable-libfdk-aac
--enable-libfreetype
--enable-libmp3lame
--enable-libopus
--enable-libvorbis
--enable-libvpx
--enable-libx264
--enable-libx265
--enable-gpl
--enable-nonfree
--enable-static
--disable-shared &&
make -j$(nproc) &&
make install


Does PKG_CONFIG_LIBDIR only support the one path, or is there some other caveat that I'm missing here?










share|improve this question






























    0















    I'm trying to use a MinGW-w64 toolchain under Cygwin to compile FFmpeg for Windows 7, but am having trouble trying to get pkg-config to see both the packages I've compiled from source (located in /usr/bin/lib/pkgconfig) and the MinGW-w64 packages installed using Cygwin's package manager (located in /usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig).



    Currently, pkg-config is only finding the packages in /usr/bin/lib/pkgconfig, and trying to compile the packages located in the sys-root path results in an error like the following:




    ERROR: libass not found using pkg-config




    This is despite the fact I've included the paths of both package directories to PKG_CONFIG_LIBDIR (see this answer for why I'm using PKG_CONFIG_LIBDIR instead of PKG_CONFIG_PATH), and have added both to --extra-cflags and --extra-ldflags:



    cd ffmpeg &&
    export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig &&
    ./configure
    --arch=x86_64
    --cross-prefix=x86_64-w64-mingw32-
    --target-os=mingw32
    --extra-cflags="-static -I/usr/local/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include"
    --extra-ldflags="-static -L/usr/local/lib -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib"
    --extra-libs="-pthread -lm"
    --prefix="/usr/local"
    --pkg-config="pkg-config"
    --pkg-config-flags="--static"
    --enable-libaom
    --enable-libass
    --enable-libfdk-aac
    --enable-libfreetype
    --enable-libmp3lame
    --enable-libopus
    --enable-libvorbis
    --enable-libvpx
    --enable-libx264
    --enable-libx265
    --enable-gpl
    --enable-nonfree
    --enable-static
    --disable-shared &&
    make -j$(nproc) &&
    make install


    Does PKG_CONFIG_LIBDIR only support the one path, or is there some other caveat that I'm missing here?










    share|improve this question


























      0












      0








      0








      I'm trying to use a MinGW-w64 toolchain under Cygwin to compile FFmpeg for Windows 7, but am having trouble trying to get pkg-config to see both the packages I've compiled from source (located in /usr/bin/lib/pkgconfig) and the MinGW-w64 packages installed using Cygwin's package manager (located in /usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig).



      Currently, pkg-config is only finding the packages in /usr/bin/lib/pkgconfig, and trying to compile the packages located in the sys-root path results in an error like the following:




      ERROR: libass not found using pkg-config




      This is despite the fact I've included the paths of both package directories to PKG_CONFIG_LIBDIR (see this answer for why I'm using PKG_CONFIG_LIBDIR instead of PKG_CONFIG_PATH), and have added both to --extra-cflags and --extra-ldflags:



      cd ffmpeg &&
      export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig &&
      ./configure
      --arch=x86_64
      --cross-prefix=x86_64-w64-mingw32-
      --target-os=mingw32
      --extra-cflags="-static -I/usr/local/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include"
      --extra-ldflags="-static -L/usr/local/lib -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib"
      --extra-libs="-pthread -lm"
      --prefix="/usr/local"
      --pkg-config="pkg-config"
      --pkg-config-flags="--static"
      --enable-libaom
      --enable-libass
      --enable-libfdk-aac
      --enable-libfreetype
      --enable-libmp3lame
      --enable-libopus
      --enable-libvorbis
      --enable-libvpx
      --enable-libx264
      --enable-libx265
      --enable-gpl
      --enable-nonfree
      --enable-static
      --disable-shared &&
      make -j$(nproc) &&
      make install


      Does PKG_CONFIG_LIBDIR only support the one path, or is there some other caveat that I'm missing here?










      share|improve this question
















      I'm trying to use a MinGW-w64 toolchain under Cygwin to compile FFmpeg for Windows 7, but am having trouble trying to get pkg-config to see both the packages I've compiled from source (located in /usr/bin/lib/pkgconfig) and the MinGW-w64 packages installed using Cygwin's package manager (located in /usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig).



      Currently, pkg-config is only finding the packages in /usr/bin/lib/pkgconfig, and trying to compile the packages located in the sys-root path results in an error like the following:




      ERROR: libass not found using pkg-config




      This is despite the fact I've included the paths of both package directories to PKG_CONFIG_LIBDIR (see this answer for why I'm using PKG_CONFIG_LIBDIR instead of PKG_CONFIG_PATH), and have added both to --extra-cflags and --extra-ldflags:



      cd ffmpeg &&
      export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig &&
      ./configure
      --arch=x86_64
      --cross-prefix=x86_64-w64-mingw32-
      --target-os=mingw32
      --extra-cflags="-static -I/usr/local/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include"
      --extra-ldflags="-static -L/usr/local/lib -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib"
      --extra-libs="-pthread -lm"
      --prefix="/usr/local"
      --pkg-config="pkg-config"
      --pkg-config-flags="--static"
      --enable-libaom
      --enable-libass
      --enable-libfdk-aac
      --enable-libfreetype
      --enable-libmp3lame
      --enable-libopus
      --enable-libvorbis
      --enable-libvpx
      --enable-libx264
      --enable-libx265
      --enable-gpl
      --enable-nonfree
      --enable-static
      --disable-shared &&
      make -j$(nproc) &&
      make install


      Does PKG_CONFIG_LIBDIR only support the one path, or is there some other caveat that I'm missing here?







      bash cygwin configure mingw-w64 pkg-config






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 25 at 23:30







      Hashim

















      asked Mar 25 at 21:32









      HashimHashim

      6824 gold badges12 silver badges31 bronze badges




      6824 gold badges12 silver badges31 bronze badges






















          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55346718%2fpkg-config-cant-see-multiple-paths-under-pkg-config-libdir%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55346718%2fpkg-config-cant-see-multiple-paths-under-pkg-config-libdir%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현