This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:tutorials:community:grey:tutorial1 [2018/02/13 20:46 (7 years ago)] – ↷ Links adapted because of a move operation iarwain | en:tutorials:community:grey:tutorial1 [2020/08/31 06:16 (5 years ago)] (current) – Outdated content. Covered elsewhere sausage | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Setting up Visual Studio (win) or Codelite (linux) ====== | ||
- | **//Setting up your Development Environment// | ||
- | [//This is ripped from the README and edited slightly for (hopefully) clarity//] | ||
- | |||
- | <WRAP center round tip 60%> | ||
- | Please note this document needs to be reviewed. | ||
- | </ | ||
- | |||
- | |||
- | Orx's core is basically platform-independent. All the platform/ | ||
- | |||
- | If you use the non-embedded versions, you'll have to specify which plugins to use. This is more flexible but also requires additional files (the plugins themselves). The embedded version will store everything in Orx's library, meaning you won't be able to choose which plugin to use at runtime, but in exchange, Orx will be more compact and will also run considerably faster. | ||
- | |||
- | From the [[https:// | ||
- | Everything compiles out-of-the-box for the hardware platforms cited above. | ||
- | |||
- | The embedded versions currently use: | ||
- | * GLFW-based plugins for display, joystick, keyboard and mouse. | ||
- | * OpenAL-based plugin for sound.\\ | ||
- | * Box2D-based plugin for physics.\\ | ||
- | * homemade plugin for 2D rendering.\\ | ||
- | |||
- | ====== Requirements ====== | ||
- | |||
- | You will require one of the orx-dev-* files, depending on your IDE/OS from the [[https:// | ||
- | |||
- | Extract the compress file. | ||
- | |||
- | //**Quick and Dirty SVN + VS2010 Users Start Here!**// | ||
- | |||
- | You will be presented with a number of folders: //bin//, //include// and //lib//. | ||
- | |||
- | For now I'm going to create the project in a specific location, feel free to substitute your own in as you see fit. | ||
- | |||
- | My project on Windows will be in " | ||
- | |||
- | **Attention Linux Users!** Please be aware the files inside the archive are built with an older version of gcc and g++, so they will be incompatible with current releases. (And you are certain to get an error when attempting to link against them in this case.) I am not sure if Iarwain was planning on updating the 1.2 release, if not, you may be required to build all the required files from the svn yourself. I plan to write up a tutorial for this later. | ||
- | |||
- | ====== Making our IDE Project ====== | ||
- | |||
- | | ||
- | |||
- | <hidden Visual Studio 2005, 2008 and 2010. (Windows)> | ||
- | {{http:// | ||
- | |||
- | Note, whatever you call your project, will have a folder created by that name (yes, even with the tick turned off!) So in my case, I now have " | ||
- | </ | ||
- | \\ | ||
- | <hidden CodeLite. (Linux)> | ||
- | |||
- | {{http:// | ||
- | {{http:// | ||
- | Apparently this pop-up will not allow us to use the tilde (~) symbol to represent our home address, so " | ||
- | |||
- | {{http:// | ||
- | {{http:// | ||
- | Again, we can't use the tilde symbol... guessing that's a feature which won't be changing. | ||
- | |||
- | </ | ||
- | \\ | ||
- | From this point on, all of our directory structures will use these places as the " | ||
- | |||
- | ====== Adding New Files ====== | ||
- | Next, add a new file to the project: | ||
- | |||
- | <hidden Visual Studio 2005, 2008 and 2010. (Windows)> | ||
- | {{http:// | ||
- | {{http:// | ||
- | </ | ||
- | \\ | ||
- | <hidden CodeLite. (Linux)> | ||
- | |||
- | **Attention: | ||
- | Those who have not skipped, we're going to -delete- the default main.cpp file and create our own, in the correct place (~/ | ||
- | |||
- | {{http:// | ||
- | {{http:// | ||
- | {{http:// | ||
- | {{http:// | ||
- | {{http:// | ||
- | {{http:// | ||
- | </ | ||
- | |||
- | ====== Setting Project Properties ====== | ||
- | Then, it's time to change the project properties: | ||
- | <hidden Visual Studio 2005, 2008 and 2010. (Windows)> | ||
- | {{http:// | ||
- | </ | ||
- | \\ | ||
- | <hidden CodeLite (Linux)> | ||
- | -- fixme moment! | ||
- | </ | ||
- | |||
- | ====== General Options ====== | ||
- | We set up the general options: | ||
- | |||
- | <hidden Visual Studio 2005, 2008. (Windows)> | ||
- | {{http:// | ||
- | Remember, our ' | ||
- | </ | ||
- | |||
- | \\ | ||
- | <hidden Visual Studio 2010. (Windows)> | ||
- | {{http:// | ||
- | |||
- | {{http:// | ||
- | |||
- | {{http:// | ||
- | Remember, our ' | ||
- | </ | ||
- | |||
- | \\ | ||
- | <hidden CodeLite (Linux)> | ||
- | {{http:// | ||
- | Our project file is stored at " | ||
- | {{http:// | ||
- | Same goes for release versions... | ||
- | </ | ||
- | |||
- | ====== Compiler Options ====== | ||
- | Next compiler options: | ||
- | |||
- | <hidden Visual Studio 2008 and 2010. (Windows)> | ||
- | {{http:// | ||
- | {{http:// | ||
- | The preprocessor only needs this addition for debug builds, no release. :) (That' | ||
- | </ | ||
- | \\ | ||
- | <hidden Visual Studio 2005 extra steps. (Windows)> | ||
- | Next activate debugging on the debug build:\\ | ||
- | {{http:// | ||
- | And deactivate debugging on the release build:\\ | ||
- | {{http:// | ||
- | Deactivate optimization on the debug build:\\ | ||
- | {{http:// | ||
- | </ | ||
- | \\ | ||
- | <hidden CodeLite (Linux)> | ||
- | {{http:// | ||
- | The default project will place a ' | ||
- | {{http:// | ||
- | Release doesn' | ||
- | </ | ||
- | |||
- | ====== Linker Options ====== | ||
- | The linker needs to be configured too: | ||
- | |||
- | <hidden Visual Studio 2005, 2008 and 2010. (Windows)> | ||
- | {{http:// | ||
- | {{http:// | ||
- | {{http:// | ||
- | {{http:// | ||
- | |||
- | </ | ||
- | \\ | ||
- | <hidden CodeLite (Linux)> | ||
- | |||
- | {{http:// | ||
- | {{http:// | ||
- | Please be careful to ensure the release version is liborx, not liborxd like the debugging version. | ||
- | </ | ||
- | |||
- | ====== See Also ====== | ||
- | This article is part of a series!\\ | ||
- | Series: [[en: | ||
- | Prev: [[en: | ||
- | Next: [[en: | ||