简体   繁体   English

Windows上具有C / C ++和SDL 2的Eclipse Luna

[英]Eclipse Luna on Windows with C/C++ and SDL 2

I'm trying to work on a project that uses C++, SDL2 (libsdl2), and SDL2_mixer (libsdl2-mixer) libraries. 我正在尝试使用C ++,SDL2(libsdl2)和SDL2_mixer(libsdl2-mixer)库的项目。

I already downloaded and installed the Eclipse Luna CDT from the marketplace and successfully opened the project. 我已经从市场上下载并安装了Eclipse Luna CDT,并成功打开了该项目。 However, how do I install the other two libraries? 但是,如何安装其他两个库? I have them downloaded but am unsure on where to begin. 我已经下载了它们,但不确定从哪里开始。 Thank you! 谢谢!

I'm using a Windows 7 laptop with Eclipse Luna and the project is a cloned repository from Github. 我正在使用带有Eclipse Luna的Windows 7笔记本电脑,该项目是Github的克隆存储库。

This tutorial covers setting up an SDL 2.0 project in Eclipse on Windows. 本教程介绍在Windows上的Eclipse中设置SDL 2.0项目。 It isn't the same Eclipse release but it should be almost if not exactly the same process. 它不是相同的Eclipse版本,但如果不是完全相同的过程,则应该几乎相同。

http://zamma.co.uk/setup-sdl2-eclipse-windows/ http://zamma.co.uk/setup-sdl2-eclipse-windows/

The extra library, SDL2_mixer, should be installed in the same location as the SDL2 and linked in the same way. 额外的库SDL2_mixer应该与SDL2安装在同一位置,并以相同的方式链接。

Also, make sure to have any dll's in the runtime exe directory for both SDL2 and any additional SDL libraries. 另外,请确保SDL2和其他任何SDL库的运行时exe目录中都包含任何dll。

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

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