在 Windows 中使用 NetBeans 设置 SFML
Setting SFML up with NetBeans in Windows
嗨,我在尝试让 sfml 与 netbeans 一起使用时遇到问题。这是我所做工作的简短视频。视频
听完HEKTO后,我现在下载了MSY。我删除了静态库,现在收到此错误:
The application failed with exit code -1073741515 (0xc0000135).
This could indicate that no required .dll was found in the PATH.
Please try to start the following command from the command shell (cmd.exe).
This may give some additional information.
C:UsersdavidDocumentsNetBeansProjectstesterdistDebugMinGW_1-Windowstester.exe
RUN FAILED (exit value -1,073,741,515, total time: 58ms)
添加系统路径后..这是新的img:
系统路径图像
SFML开发人员建议您的MinGW版本和SFML版本完全匹配 - 请参阅此页面,尤其是以下三行:
The compiler versions have to match 100%!
Here are links to the specific MinGW compiler versions used to build the provided packages:
TDM 5.1.0 (32-bit), MinGW Builds 7.3.0 (32-bit), MinGW Builds 7.3.0 (64-bit)
您的 MinGW 编译器是8.2.0- 它不匹配。因此,您需要使用此页面的链接下载MinGW并手动安装。
此外,您还尝试与静态库链接(后缀为_s
(。在这种情况下,您必须将其他库添加到链接器设置中 - 请参阅此处。如果使用动态库,则不需要任何其他库,但是需要将 SFML 目录及其 DLL 添加到系统路径中。
更新。您的问题已被重写多次,所以我的答案变得无关紧要 - 这不好,问题可以更新以改进它,但请不要按照评论中提供给您的其他信息完全重写它。此处也不欢迎引用视频和图片。您的问题必须是独立的,并且可能对其他人有所帮助,在类似情况下寻求帮助。
也就是说,我将为后代添加两个提示:
不要对 NetBeans 编译器和链接器设置中的
include
和lib
目录使用相对路径 - 仅使用绝对路径。SFML下载页面上引用的MinGW发行版不包含MSYS(Unix工具的小集合,其中包括
make.exe
(。您需要单独下载并安装 MSYS,例如仅使用带有msys-base
包的 MinGW 安装程序。
相关文章:
- 为不同配置设置MSVC_RUNTIME_LIBRARY的正确方法是什么
- 在C++/Linux中设置单调时钟的一些技巧
- 如何在选项卡视图Qt中设置一个新项目,并保存以前的项目
- 嵌套在类中时无法设置成员数据
- 需要帮助设置在C++中使用的Potrace
- 如何在自删除后将对象设置为nullptr
- 将指针设置为"nullptr"并不能防止双重删除?
- 如何在Ubuntu中使用cmake设置qt4
- ld:bind_at_load和-bitcode_bundle(Xcode设置ENABLE_bitcode=YES)不能
- 如何在boost beast http请求中设置http头
- 如何解决gcc编译器优化导致的centos双编译器设置中的分段错误
- 如何将这个C++哈希表转换为动态扩展和收缩,而不是使用硬设置的最大值
- 在 Windows 中使用 NetBeans 设置 SFML
- 如何为C 设置跨平台(Win7中的NetBeans和Make Linux)
- 配置Netbeans的基本设置
- 在窗口中的 NetBeans 上设置 OpenGL
- NetBeans在make文件中设置多个.o库输出
- 修改NetBeans中项目的默认设置
- 在Ubuntu上使用GLFW设置OpenGL NetBeans项目
- 设置netbeans中c++静态库的名称