ClanLib安装体验

我的E文够烂,只能打开词霸2005,凭感觉,成功编译了ClanLib。目前放出的稳定版本是ClanLib 0.8.0。
1)网址:http://www.clanlib.org/
2)授权:(不敢乱翻译)只知道大意是允许任何使用方式,并且可以修改。没有对成果的释放有要求。
但是要注意相关引用lib的授权。
ClanLib SDK
Copyright (c) 1997-2005 The ClanLib Team

This software is provided 'as-is', without any express or implied
warranty.  In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
   claim that you wrote the original software. If you use this software
   in a product, an acknowledgment in the product documentation would be
   appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
   misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.

Note: Some of the libraries ClanLib may link to may have additional
requirements or restrictions.
相关lib的授权:包含SDL(LGPL)、libmikmod(LGPL)、libogg(OSI)、libvorbis(BSD)、zlib(自主开放)、libjpeg、libpng。目前看都是没有版权争议的开放软件。
3)首先下载的是ClanLib-0.8.0-RC1.zip,解压缩后,我用的是vc.net,打开ClanLib-0.8.0-RC1目录下的configure.dsw,
转换后编译。这个过程中没有遇到什么问题。
4)配置,编译成功后,ClanLib-0.8.0-RC1目录下有个configure.exe,运行按提示指定输入输出路径
5)下载相关lib,
libogg、libvorbis----http://xiph.org/downloads/
SDL---------------- http://www.libsdl.org/
zlib------------------http://www.zlib.net/
libmikmod ----------http://mikmod.raphnet.net/
libpng、libjpeg -------------- http://www.clanlib.org/download/binaries-win32-vc70/
除了libpng、libjpeg是通过ClanLib网站下载的,其他的都是我找的新的。
下载后全部解压。分别拷贝到上面说的“指定输入路径”里。
我这里是最后打包的inputLib目录https://files.cnblogs.com/joxin/inputLib.rar
注意
libmikmod中的win32目录下的mikmod_build.h需要改名为mikmod.h;
jmorecfg.h中#ifndef HAVE_BOOLEAN这个段落的预定义需要注释掉。
我就是这里出了问题,察看资料后知道是为了兼容C。(好像是,一知半解的地方还请各位前辈指正)
6)打开ClanLib-0.8.0-RC1目录下的ClanLib.dsw,编译即可。
编译后的文件都放在上面说的“指定输出路径”里。
关于ClanLib的使用,我还会连续出随笔,希望感兴趣的朋友一起研究。

原文地址:https://www.cnblogs.com/joxin/p/281809.html