[音频]MinGW+msys2 编译 libogg 库

C/C++第三方开源库的介绍和相关讨论
回复
头像
paktc
出类拔萃
出类拔萃
帖子: 65
注册时间: 2016年07月21日 20:34
联系:

[音频]MinGW+msys2 编译 libogg 库

帖子 paktc »

官方链接:https://www.xiph.org/downloads/

子目录win32中包含VS2008、VS2010等版本的项目文件,可以直接打开VisualStudio-生成相应的库文件。

下面讨论用MSYS2.0 配合 MinGW编译:
打开 MSYS2 Shell
执行 ./configure ,出现错误信息
This script, last modified 2012-12-29, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD and http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD If the version you run (./config.guess) is already up to date, please send the following data and any information you think might be pertinent to <config-patches@gnu.org> in order to provide the needed information to handle your system. config.guess timestamp = 2012-12-29 uname -m = x86_64 uname -r = 2.1.2(0.287/5/3) uname -s = MSYS_NT-6.1 uname -v = 2015-05-05 18:25 /usr/bin/uname -p = unknown /bin/uname -X = hostinfo = /bin/universe = /usr/bin/arch -k = /bin/arch = x86_64 /usr/bin/oslevel = /usr/convex/getsysinfo = UNAME_MACHINE = x86_64 UNAME_RELEASE = 2.1.2(0.287/5/3) UNAME_SYSTEM = MSYS_NT-6.1 UNAME_VERSION = 2015-05-05 18:25 configure: error: cannot guess build type; you must specify one
尝试:
./configure --build=mingw
checking build system type... Invalid configuration `mingw': machine `mingw' not recognized configure: error: /bin/sh ./config.sub mingw failed
打开config.guess, 发现应该加上32或者64
./configure --build=mingw32
无误

执行make,无误

相应的库文件在 libogg-1.3.2\src\.libs 中
回复

在线用户

正浏览此版面之用户: 没有注册用户 和 0 访客