ubuntu 7.0 下如何安装SDL图形库
-
- 帖子: 95
- 注册时间: 2006-02-05 18:11
ubuntu 7.0 下如何安装SDL图形库
ubuntu 7.0 下如何安装SDL图形库
如题。想装SDL图形库,结果都是搜了一下wiki没有关于SDL的内容!!!!!
如题。想装SDL图形库,结果都是搜了一下wiki没有关于SDL的内容!!!!!
- luojie-dune
- 帖子: 22033
- 注册时间: 2007-07-30 18:28
- 系统: Linux
- 来自: 空气中
-
- 帖子: 95
- 注册时间: 2006-02-05 18:11
- jarlyyn
- 帖子: 4671
- 注册时间: 2006-04-12 18:54
- 联系:
- luojie-dune
- 帖子: 22033
- 注册时间: 2007-07-30 18:28
- 系统: Linux
- 来自: 空气中
-
- 帖子: 2841
- 注册时间: 2006-09-11 22:47
Re: ubuntu 7.0 下如何安装SDL图形库
sudo apt-get install libsdl-dev 即可。zhaozhy 写了:ubuntu 7.0 下如何安装SDL图形库
如题。想装SDL图形库,结果都是搜了一下wiki没有关于SDL的内容!!!!!
其实我推荐另外一个更简单的办法。随便想象你知道的一个使用sdl的软件,例如我知道有 chromium 使用它,然后
sudo apt-get build-dep chromium 就可以了。
又例如你要搞kde的开发,怎么把kde相关的库装进去呢?随便想象一个功能很全的kde程序。。。哦konqueror可以,kate也行。然后 sudo apt-get build-dep kate
-
- 帖子: 2841
- 注册时间: 2006-09-11 22:47
-
- 帖子: 95
- 注册时间: 2006-02-05 18:11
谢谢楼上各位,我才知道有个新力的
1) For Ubuntu users, it's recommended that you use the built in package manager. You can access the package manager going to system -> administration -> Synaptic Package Manager. Once you're in, search for "libsdl1.2-dev" (without quotes), which is the SDL development package. Once you find it, click and install it.
2) For those of you who have Advanced Packaging Tool available you can enter the command:
apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev
You need to have root priviledges, so use the "su" command or "sudo" command.
3) For the Yellow dog Updater, Modified you can enter the command:
yum install SDL-devel SDL_mixer-devel SDL_image-devel SDL_ttf-devel
As with apt-get, you'll need root priviledges.
4) For RPM based distros, you'll need the SDL development RPM.
You will find them on the SDL website, specifically on this page.
Scroll Down to the Development Libraries section and download the Linux development library:
Now run the RPM and let it do it's thing.
Now that you've installed the development libraries, it's time to start up your IDE/compiler.
http://lazyfoo.net/SDL_tutorials/lesson ... /index.php
有完整的安装步骤!!!
2) For those of you who have Advanced Packaging Tool available you can enter the command:
apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev
You need to have root priviledges, so use the "su" command or "sudo" command.
3) For the Yellow dog Updater, Modified you can enter the command:
yum install SDL-devel SDL_mixer-devel SDL_image-devel SDL_ttf-devel
As with apt-get, you'll need root priviledges.
4) For RPM based distros, you'll need the SDL development RPM.
You will find them on the SDL website, specifically on this page.
Scroll Down to the Development Libraries section and download the Linux development library:
Now run the RPM and let it do it's thing.
Now that you've installed the development libraries, it's time to start up your IDE/compiler.
http://lazyfoo.net/SDL_tutorials/lesson ... /index.php
有完整的安装步骤!!!
- jarlyyn
- 帖子: 4671
- 注册时间: 2006-04-12 18:54
- 联系:
- jarlyyn
- 帖子: 4671
- 注册时间: 2006-04-12 18:54
- 联系:
- luojie-dune
- 帖子: 22033
- 注册时间: 2007-07-30 18:28
- 系统: Linux
- 来自: 空气中
- jarlyyn
- 帖子: 4671
- 注册时间: 2006-04-12 18:54
- 联系:
- luojie-dune
- 帖子: 22033
- 注册时间: 2007-07-30 18:28
- 系统: Linux
- 来自: 空气中