简体   繁体   English

在Visual Studio 2015中构建FLAC

[英]Building FLAC in Visual Studio 2015

I'm trying to build FLAC in VS2015 because I need it in order to build SFML for VS2015. 我正在尝试在VS2015中构建FLAC,因为我需要它才能为VS2015构建SFML。

First , I got the FLAC source and installed nasm as it said I had to. 首先 ,我得到了FLAC源码,并按其要求安装了nasm。 Then , I got the OGG lib source and built the static Win32 version, and had no errors. 然后 ,我获得了OGG lib源文件并构建了静态Win32版本,并且没有错误。 After that , I copied the ogg's include folder in flac's include folder, and copied the static lib to where it said I had to. 之后 ,我将ogg的include文件夹复制到flac的include文件夹中,并将静态库复制到它说必须的位置。 I also added the nasm exe to the executable path's in vs. Finally, when I try to build it this is what I got: 我还将nasm exe添加到vs中的可执行路径中。最后,当我尝试构建它时,这就是我得到的:

Error  LNK1181  cannot open input file 'D:\Programación\C++\SFML\dependencies\flac-1.3.1\objs\Release\lib\libFLAC_static.lib'   example_c_decode_file   D:\Programación\C++\SFML\dependencies\flac-1.3.1\examples\c\decode\file\LINK    1

I'm not exactly sure what you picked to be built, but from the error I conclude that you're trying to build the FLAC example project while not yet having built the FLAC library itself. 我不确定您选择要构建的内容,但是由于错误,我得出的结论是,您在尝试构建FLAC示例项目时尚未构建FLAC库本身。

When I built the SFML dependencies for my VS 2015RC build - which I've been told is compatible with the release version of VS 2015 - I just built the C++ library while ignoring all the other projects. 当我为VS 2015RC构建构建 SFML依赖关系时-有人告诉我它与VS 2015的发行版兼容-我只是构建了C ++库,而忽略了所有其他项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM