Closed boxerab closed 4 years ago
So, now we have a pkg-config file at least for Autotools builds.
So, now we have a pkg-config file at least for Autotools builds.
:raised_hands:
So, now we have a pkg-config file at least for Autotools builds.
raised_hands
Great, thanks! If we change the windows static library name to faac
rather than libfaac
then that pkg-config file could work for windows as well.
So, in order to link with libfaac
on Windows one has to type -llibfaac
instead of -lfaac
?
So, in order to link with
libfaac
on Windows one has to type-llibfaac
instead of-lfaac
?
On windows (using MSVC compiler), the lib
prefix is not automatically added to the library name. So, the name appearing after -l
must exactly match the name of the windows library.
The current MSVC project uses unix-style library name, so it won't work with pkg-config file. For MINGW builds, the .pc file will work. But, I would recommend supporting MSVC instead.
@fabiangreffrath what do you think about changing the windows static library name to faac
rather than libfaac
?
What changes are required for this?
Thanks, I've created PR https://github.com/knik0/faac/pull/39 to address this one.
WIth #39 merged, we could close this PR
pkg-config file can be used by other projects such as gstreamer to link to faac on windows