2

我正在尝试在运行 Visual Studio 2015 的 Windows 上构建 curlpp 库。我遇到了很多错误,但除了这个错误之外,我大部分都修复了。当我尝试使用命令构建解决方案时

C:\curlpp-0.7.3>msbuild curlpp.VC9.sln /t:Rebuild /p:Configuration=DynamicLibDebugDynamicRTL

我最终得到了错误:

Project : error PRJ0002: Error result -1073741701 returned from 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\cl.exe'.  

C:\curlpp-0.7.3\curlpp.VC9.sln] BSCMAKE : error BK1506: cannot open file '.\out\lib\DynamicLibDebugDynamicRTL\Easy.sbr': No such file or directory [C:\curlpp-0.7.3\curlpp.VC9.sln]

和一个弹出窗口说 CL.exe 无法启动 0xc0000007b

从错误看来,它似乎无法打开文件。这一点没有任何意义,因为该文件应该在那里构建。我认为 CL.exe 失败了,这才是真正的问题。我认为这个问题与我混合或设置错误的路径有关。

我正在使用的路径如下

X:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64;
X:\Program Files (x86)\Microsoft Visual Studio 14.0\SDK;

但是ofc的问题可能出在其他地方,此时我一无所知。当我从 vs9/amd64 文件夹手动运行 cl.exe 时,它​​会打开并完美运行。谢谢你的帮助

这是我正在关注的自述文件:

Open a command prompt and change folder to the root of curlpp tree.

set LIBCURL_PATH=/where/curl/is/installed
set OPENSSL_PATH=/where/openssl/is/installed (only if you have libcurl with ssl support and ssl installed)
msbuild curlpp.sln /t:Rebuild /p:Configuration=<Configuration>
    where <Configuration> is one of
    - DynamicLibDebugDynamicRTL
    - DynamicLibDebugStaticRTL
    - DynamicLibReleaseDynamicRTL
    - DynamicLibReleaseStaticRTL
    - StaticLibDebugDynamicRTL
    - StaticLibDebugStaticRTL
    - StaticLibReleaseDynamicRTL
    - StaticLibReleaseStaticRTL

Output files will be placed in a directory set in CURLPP_LIB_PATH.

Any of DynamicLib* configurations will build a .dll library file and a .lib library import file.
Any of StaticLib* configurations will build the .lib static (inline) library.
Any of *Debug* configurations will in addition build a .pdb Program Database file.
4

0 回答 0