在 Windows 7 x64 上使用 Visual Studio 2008 SP1 (msvc9) 进行 stlport 编译不起作用

发布于 2024-10-03 00:06:55 字数 357 浏览 0 评论 0原文

我从 https://stlport.svn.sourceforge.net/svnroot/stlport 下载了 stlport /trunk/STLport 并尝试在 Windows 7 x64 上使用 Visual Studio 2008 SP1 进行编译。 自述文件说要使用:configure -c msvc9 但 -c 是一个未知的编译器选项,所以我使用:configure msvc9 根据输出,这似乎有效,但事实并非如此。 build/lib 目录保持为空。

您有什么建议吗?

I downloaded stlport from https://stlport.svn.sourceforge.net/svnroot/stlport/trunk/STLport and tried to compile it with Visual Studio 2008 SP1 on Windows 7 x64.
The readme says to use: configure -c msvc9 but -c is an unknown compiler option so I used: configure msvc9
This seems to work according to the output, but it doesn't. The build/lib dir stays empty.

Do you have any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

寄人书 2024-10-10 00:06:55

配置脚本不是像大多数 Unix 类型软件一样创建配置吗?诚然,自从我使用 STLport 以来已经有一段时间了,但我认为您可能必须先运行 configure,然后可能需要运行涉及 nmake/make 的第二个构建步骤来启动实际构建。

Doesn't the configure script just create the configuration like it does for most Unix-type software? Admittedly it's been a while since I used STLport but I think that you might have to run configure first and the probably a second build step involving nmake/make to kick off the actual build.

尛丟丟 2024-10-10 00:06:55

对于 DC++,编译说明此处建议对于 MSVC9 (SP1),您不需要 STLPort因为 tr1 容器已经在 SP1 中。你尝试过经历这个吗?

编译器

微软 Visual C++ 9.0 (2008)
至少 Service Pack 1:

获取
https://connect.microsoft.com/VisualStudio /Downloads/DownloadDetails.aspx?DownloadID=17034&wa=wsignin1.0,
修复 SP1 的修补程序。
从 www.openssl.org 下载 OpenSSL
并编译它。你应该得到
名为 libeay32.lib 的库和
ssleay32.lib;将它们复制到
openssl/lib。在调试中编译 DC++
模式,OpenSSL 库必须是
也在调试模式下编译(阅读他们的
说明文件;这是一个问题
在 do_* 文件中添加“debug”
使用)。将调试库重命名为
libeay32d.lib 和 ssleay32d.lib;放
它们位于 openssl/lib 中。

STLPort 不在依赖项列表中,除非您使用不带 TR1 容器的“其他”编译器。

For DC++ the compilation instructions here suggest that for MSVC9 (SP1) you don't need STLPort since tr1 containers are already in SP1. Have you tried running through this?

Compiler

Microsoft Visual C++ 9.0 (2008) with
at least Service Pack 1:

Get
https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=17034&wa=wsignin1.0,
a hotfixed-hotfix which fixes SP1.
Download OpenSSL from www.openssl.org
and compile it. You should get
libraries called libeay32.lib and
ssleay32.lib; copy them in
openssl/lib. To compile DC++ in debug
mode, OpenSSL libraries have to be
compiled in debug mode too (read their
instructions file; it's a matter of
adding "debug" in the do_* file you
use). Rename debug libraries to
libeay32d.lib and ssleay32d.lib; put
them in openssl/lib.

STLPort is not in the dependency list, unless you use "Other" compilers without TR1 containers.

一紙繁鸢 2024-10-10 00:06:55

我找到了解决方案:

我使用“Visual Studio 2008 命令提示符”(对于变量和路径)以及 http://strongdc.sourceforge.net/download/STLPort.7z 我将所有 svn 文件复制到这个 7z 中的文件上
然后我将 stlport\stlport\type_traits 中的每个“_value”替换为“_stlvalue”。
在文件夹“stlport\build\lib>”中我执行“configure -c msvc9”,然后执行“nmake /f msvc.mak clean install”。

我从 svn 下载的配置脚本仍然显示:

c:\stlport>配置-c msvc9
适用于 Windows 的 STLport 配置工具

未知编译器:-c

未知选项:msvc9

设置平台:Windows XP

完成 STLport 配置。

(我使用我下载的 7z 中的脚本)

I found the solution:

I use "Visual Studio 2008 Command Prompt" (for the vars and paths) with the configure script from http://strongdc.sourceforge.net/download/STLPort.7z and I copy all the svn files over the files in this 7z
Then I replace every "_value" with "_stlvalue" in stlport\stlport\type_traits.
In the folder "stlport\build\lib>" I execute "configure -c msvc9" and after that "nmake /f msvc.mak clean install".

The configure script that I downloaded from the svn still says:
"
c:\stlport>configure -c msvc9
STLport Configuration Tool for Windows

Unknown compiler: -c

Unknown option: msvc9

Setting platform: Windows XP

Done configuring STLport.
"

(I use the script from the 7z that I downloaded)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文