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;
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
add a comment |
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
add a comment |
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
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
bash cygwin configure mingw-w64 pkg-config
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
add a comment |
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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