Firstly, I apologise for my ignorance.
It's time for me to use the SVN code. There are bug fixes there that I need.
I have a vs2005 1.2 code base and I downloaded the latest SVN trunk.
I loaded up the VS2005 project and compiled the orxLIB project inside and then copied the resulting codelibdynamicorx.* files to:
myprojectinmsvs2005
and
myprojectlibmsvs2005
Then I used:
codeinclude
to replace mine at:
myprojectinclude
My project compiled well, which says the includes are good but I got an exception / break in orx.h.
There's no real instructions in the doc folder but I suppose that most people who use c/c++ and svn a lot wouldn't need them.
Could anyone please give me a hand with what I really should be doing?
Many thanks,
Wayne
Comments
In order to fix that, you'll have to compile the external dependencies first. In /extern, you need to compile Box2D, SOIL, GLFW, libsndfile and OpenAL-soft. There should be vs2005 project files for all of them.
Then you need to go to compile orx itself (embedded dynamic debug and embedded dynamic release). After that you should be able to get orx(d).lib/orx(d).dll from code/lib/dynamic and the include files from /code/include.
When you want to export all the .h files, if you're using tortoiseSVN, it's a simple matter of drag&dropping the /include folder on your own local one with right click and then select: SVN export versioned items here.
If you still have some troubles, please let me know.
PS: Also, if you want a 1.3 release for vs2005, I might ask you to send me binaries for 2005 when I'm making the release candidate.
Decided to make a list of progress and compile both vs2008 & vs2005:
vs2005 - Box2D - Complete
vs2008 - Box2D - Complete
vs2005 - SOIL - error C2220 warning as error stb_image_aug.c line 178
- error C2220 warning as error image_DXT.c line 92
vs2008 - SOIL - Complete
vs2005 - GLFW - Complete
vs2008 - GLFW - Complete
vs2005 - libsndfile - Complete
vs2008 - libsndfile - Complete
vs2005 - OpenAL - fatal error C1083: 'dsound.h' No such file or directory. file dsound.c line 29
vs2008 - OpenAL - fatal error C1083: 'dsound.h' No such file or directory. file dsound.c line 29
I can't go any further. It appears I am missing a requirement or two.
For SOIL, I'd suggest going into the project settings and find the option so that warnings are not treated as errors.
For OpenAL, you need to install DirectX SDK. That can be found on microsoft's web site. It's free but it's a big download (~500MB I think). I'm afraid you can't compile OpenAL without it.
vs2005 - SOIL - Project Properties / C++ / General / Treat Warnings As Errors = No - Complete
I'll download DirectX SDK tomorrow and continue the build.
Thanks for your help.
vs 2005 - OpenAL32 - Project Properties / C++ / Additional Include Directories / (add eg. C:Program FilesMicrosoft DirectX SDK (June 2010)Include)
- Complete
vs 2008 - OpenAL32 - Project Properties / C++ / Additional Include Directories / (add eg. C:Program FilesMicrosoft DirectX SDK (June 2010)Include)
- Complete
Code: orx.sln solution....
vs2005 - orxLIB - Embedded Dynamic Debug - fatal error LNK1104: cannot open file 'box2dd.lib' orxLIB
vs2005 - orxLIB - Embedded Dynamic Release - fatal error LNK1181: cannot open input file 'box2d.lib' orxLIB
vs2005 - orxLIB - Dynamic Debug - Complete
vs2005 - orxLIB - Dynamic Release - Complete
vs2005 - orxLIB - Embedded Dynamic Debug - Complete
vs2005 - orxLIB - Embedded Dynamic Release - Complete
vs2005 - orxLIB - Dynamic Debug - Complete
vs2005 - orxLIB - Dynamic Release - Complete
I did find a config error in the Box2D project so that is causing an error downstream in the orxLIB project. Basically, the 2005 project (one of the build modes) is pointing to the 2008 folder.
I will start from scratch this evening and do it again properly, noting all fixes along the way.
vs2005 - Box2D - Complete
vs2005 - GLFW - Complete
vs2005 - libsndfile - Complete
vs2005 - OpenAL - OpenAL Properties / C++ / Additional Include Directories / (Add DirectX SDK Includes directory from C:Program FilesMicrosoft DirectX...) - Complete
vs2005 - SOIL - Soil Properties / C++ / Treat Warnings As Errors = No - Complete
vs2005 - orxLIB - Dynamic Debug - Complete
vs2005 - orxLIB - Dynamic Release - Complete
vs2005 - orxLIB - Dynamic Embedded Debug - Complete
vs2005 - orxLIB - Dynamic Embedded Release - Complete
Copy orxLib (pdb, exp & lib) files to /myproject/lib/msvs2005/ , (dll & ilk) files to /myproject/bin/msvs2005/
Copy /includes over /myproject/includes
Project builds and compiles fine, project runs. The only surprise is... the custom events aren't firing. I'll go and have a read around for any changelogs... maybe things have changed.
iarwain, you mentioned to compile the embedded versions of orxLIB. Isn't embedded for things like embedded devices? Shouldn't I be using the Dynamic Debug and Dynamic Release versions?
I believe I should be reading this somewhere....
As for embedded, it doesn't concern embedded devices but embedded plugins. I believe there's some details in the README file, but I may be wrong as it's been a while. Let me know if I need to update it.
I finally found the changelog in the root folder in a file titled CHANGELOG in uppercase. Now how could I miss that?
Anyway, all the details were there. I've converted my animation lists to the new format and all is working.
The bug that plagued me is gone, all actions are working beautifully and I'm totally pleased.
Thank you as ever for all your help.