Perl-Ogre ========= This is a Perl binding for OGRE, Object-Oriented Graphics Rendering Engine, a C++ library found at http://www.ogre3d.org/ . The wrapping is currently incomplete, but there are several interesting examples working now (see examples/README.txt). See TODO.txt for the things I'd like to do. Suggest more things (preferably submitted with patches) if you like. DEPENDENCIES Only version 1.4.3 (the current latest release as of late August) of OGRE is currently supported (it's the version I have installed), so you need to install that either by building from source or by installing a package. If you use Ubuntu, I have some notes below that might help. Later 1.4.x versions will probably work also, just I haven't tried them. Makefile.PL uses pkg-config to get information about the libraries and header files needed to build against OGRE, so you should be able to do this: pkg-config --libs OGRE pkg-config --cflags OGRE pkg-config --modversion OGRE The last one should say at least 1.4.3. The C++ compiler used by default is `g++`, but you can specify a different C++ compiler by setting the CXX environmental variable. Anything more, and you'll have to hack at Makefile.PL. I have the impression that OGRE doesn't install pkg-config on Windows (though nobody ever answers when I ask...), so this package will probably not currently work on Windows. I'd like it to, but I don't use Windows. Please let me know how if you get it working. OPTIONAL If you have Gtk2 installed, which in practice means that this is true: pkg-config --atleast-version=2.0.0 gtk+-2.0 then a static method, Ogre->getWindowHandleString, will be built. The string returned can be passed to the `params' argument of Ogre::Root::createRenderWindow in order to use a window (widget) already created by gtk2-perl or wxPerl, thereby letting you embed an Ogre widget in a GUI application. This feature is currently EXPERIMENTAL, meaning its usage might change in the future or be dropped altogether if it doesn't work. Some scripts under examples/ require these Perl modules: - OIS - Readonly I recommend installing both of them, but you don't have to. Note for OIS: there's apparently an incompatibility between versions 0.99_rc1 (which I have installed) and 1.0.0 of libois; in particular in OIS/xs/InputManager.xs you might get two methods failing to work: s/numJoysticks/numJoySticks/ and s/numKeyBoards/numKeyboards/. I'll try to get that worked around soon. It would be a good idea to make sure you also have installed CEGUI, OIS, libdevil, and nVidia Cg, if those aren't already installed. This Perl module currently only provides support for OGRE and OIS, however; I might wrap CEGUI some day, the goal being to run OGRE's samples and tutorials from Perl. (The tutorials and documentation for OGRE are excellent. I highly recommend going through them before trying this Perl wrapper.) The reason I recommend installing those libraries, is mainly just so you can run the (C++) tutorials. INSTALLATION To install this module, do the usual: perl Makefile.PL make make test make install You might have to edit Makefile.PL to get it to work for your system. If so, please let me know. INSTALLING OGRE UNDER UBUNTU As of Feisty Fawn, there is a package for OGRE 1.4.3, so that can be easily installed. # apt-get update # apt-get install libogre-dev libogre14 # apt-get install nvidia-cg-toolkit (you'll want these too, if they're not already installed) # apt-get install libcegui-mk2-doc libcegui-mk2-dev libcegui-mk2-1 # apt-get install libois1 libois-dev # apt-get install libdevil-dev libdevil1c2 Note: these package names are as of when I installed them. The names might change. You can also create your own package by building from source. Check out: http://www.ogre3d.org/wiki/index.php/FromSourceUbuntu Seems like it should be pretty easy using `make checkinstall`. Good luck with that. COPYRIGHT AND LICENCE Please report any bugs/suggestions to . Copyright 2007, Scott Lanning. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Beware that OGRE itself is under an LGPL license. See http://www.ogre3d.org/ for more (and probably more accurate) information.