Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1427063
  • 博文数量: 430
  • 博客积分: 9995
  • 博客等级: 中将
  • 技术积分: 4388
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-24 18:04
文章存档

2013年(1)

2008年(2)

2007年(14)

2006年(413)

分类: LINUX

2006-05-26 13:20:04

Setting up SDL in Anjuta

Last Updated 2/20/06

First thing you need to do is download SDL headers and binaries.
You will find them on the SDL website, specifically on .

Scroll Down to the Development Libraries section and download the Linux development library:

Now run the RPM and let it do it's thing.

After the RPM installs itself, start up Anjuta and start a new project.

This will start up the application wizard. Set your new project to be a generic/terminal project.


Hit next and make sure it's a C++ project:

Everything else with the application wizard should be self explanatory.

Once the application wizard is done creating your project go to the compiler and linker settings:

Under the libraries tab, type in:

SDL


Then hit add:


The close the window and hit yes on the prompt that pops up:

Paste the following code into the source file Anjuta provided for you:

#include "SDL/SDL.h" int main( int argc, char* args[] ) { //Start SDL SDL_Init( SDL_INIT_EVERYTHING ); //Quit SDL SDL_Quit(); return 0; }

Now save the source file and build your project.
If there's no errors, you're finished.

The RPM also installed the SDL documentation on your computer. It should be at usr/doc/SDL-devel-1.2.9/index.html.

Bookmark it and keep it handy for reference.
阅读(1134) | 评论(0) | 转发(0) |
0

上一篇:SDL in Dev C++

下一篇:SDL in KDevelop

给主人留下些什么吧!~~