Page 2 of 3

Posted: Thu Jan 14, 2010 12:21 pm
by 3D Ace
Hey i wanted to do this! :o Seems like u beat me too it. But you have come quite a bit further than me. Great work.

Posted: Thu Jan 14, 2010 1:36 pm
by gingerheadman
I've run into a bit of trouble compiling this on Linux. First, I had to edit the search directories in the Code::Blocks project to match where the files are stored on my system, then I had to rename every instance of <Irrlicht.h> to <irrlicht.h> and then I added tecan's modifications to osClock.cpp.

Now when I try to compile it I get these errors:

Code: Select all

Compiling: source/osPolylineSegmentedPath.cpp
include/osQueryPathAlike.h: In static member function ‘static void OpenSteer::PointToPathAlikeMapping<PathAlike, Mapping, BaseDataExtractionPolicy>::map(const PathAlike&, const OpenSteer::Vec3&, Mapping&) [with PathAlike = OpenSteer::PolylineSegmentedPath, Mapping = OpenSteer::PointToPathMapping, BaseDataExtractionPolicy = OpenSteer::PointToPathAlikeBaseDataExtractionPolicy<OpenSteer::PolylineSegmentedPath>]’:
include/osQueryPathAlike.h:142:   instantiated from ‘void OpenSteer::mapPointToPathAlike(const PathAlike&, const OpenSteer::Vec3&, Mapping&) [with PathAlike = OpenSteer::PolylineSegmentedPath, Mapping = OpenSteer::PointToPathMapping]’
/home/rory/Programming/irrlicht-1.6/irrOpenSteer/source/osPolylineSegmentedPath.cpp:341:   instantiated from here
include/osQueryPathAlike.h:119: error: ‘class OpenSteer::PointToPathMapping’ has no member named ‘radius’
include/osQueryPathAlike.h: In static member function ‘static void OpenSteer::PointToPathAlikeMapping<PathAlike, Mapping, BaseDataExtractionPolicy>::map(const PathAlike&, const OpenSteer::Vec3&, Mapping&) [with PathAlike = OpenSteer::PolylineSegmentedPath, Mapping = OpenSteer::PointToPathDistanceMapping, BaseDataExtractionPolicy = OpenSteer::PointToPathAlikeBaseDataExtractionPolicy<OpenSteer::PolylineSegmentedPath>]’:
include/osQueryPathAlike.h:142:   instantiated from ‘void OpenSteer::mapPointToPathAlike(const PathAlike&, const OpenSteer::Vec3&, Mapping&) [with PathAlike = OpenSteer::PolylineSegmentedPath, Mapping = OpenSteer::PointToPathDistanceMapping]’
/home/rory/Programming/irrlicht-1.6/irrOpenSteer/source/osPolylineSegmentedPath.cpp:361:   instantiated from here
include/osQueryPathAlike.h:119: error: ‘class OpenSteer::PointToPathDistanceMapping’ has no member named ‘radius’
I'm sure if I had any knowledge of OpenSteer I could fix the problem myself but unfortunately I have no idea why this problem is happening.

BTW I ran the example program on a Windows machine and it is awesome. If I can get this working on Linux I will definitely be using it in my current Irrlicht project.

Posted: Thu Jan 14, 2010 3:41 pm
by Acki
gingerheadman wrote:First, I had to edit the search directories in the Code::Blocks project to match where the files are stored on my system,
yes, unfortunately I don't know your directory structure... :lol:
gingerheadman wrote:then I had to rename every instance of <Irrlicht.h> to <irrlicht.h>
yes, Linux uses case sensitive pathes and file names (Windows doesn't)...
gingerheadman wrote:Now when I try to compile it I get these errors:
ohh, sorry, I thought I updated this for the download... :oops:
I updated the download and now it should be solved... ;)
so either download the new version, or change those radius calls into setRadius... ;)

this was one think that was very annoying with OpenSteer...
some set/get functions where defined like this:

Code: Select all

Vec3 size(); // get
Vec3 size(Vec3 s); // set
and others where defined like this

Code: Select all

Vec3 position(); // get
Vec3 setPosition(Vec 3p); // set
so I changed them all to be more constantly... ;)

Posted: Fri Jan 15, 2010 1:22 am
by gingerheadman
Thanks a lot for that :D. I'm testing it out now.

Posted: Tue Feb 02, 2010 6:31 pm
by Acki
main post updated... ;)

Posted: Tue Feb 02, 2010 10:17 pm
by Lonesome Ducky
I'm planning on creating an rts test sometime in the future, this looks like a perfect fit :) I'll be sure to download it

Posted: Sun Feb 07, 2010 4:28 am
by Acki
I just started a forum as a project page (see main post) !!! 8)

Posted: Sun Feb 07, 2010 9:19 am
by 3D Ace
I kinda dislike SVN's cause they consist of so many "loose" files. Is there some kinda tool to download this projects files all at once. I already tried several svn tools but none of really worked. Does anyone have a link to a usefull svn tool?

Posted: Sun Feb 07, 2010 9:33 am
by Halifax
I don't know what you mean by "loose" files. I use TortoiseSVN, a graphical SVN client for Windows.

Posted: Sun Feb 07, 2010 10:34 am
by hybrid
On SourceForge (or more exactly, on every SN that has ViewVC installed) you can also browse the directory you want and get a tar ball of all files. Just in case you don't want the update possibility of SVN.

Posted: Mon Feb 08, 2010 11:49 am
by 3D Ace
Hey thanks Halifax, TortoiseSVN is awesome. Dont know why i didn't see it before. Thanks. :D By the way with loose i mean that they have to be individually downloaded instead of being in one easy zip.
Hybrid not all SN's have tarball download options.

Posted: Sat Nov 20, 2010 4:44 pm
by Mani2010
Hi Acki,

i got the latest from your svn repository. I tried building my own OpenSteer lib( static and dll ) with your irrlicht optimisations but had these problems with the lines in osSimpleVehicle.h...

it seems to be to do with the typedefs but i download opensteer from the opensteer website and it works fine.

I am using VSC++ 2008 and created my own project file to build your version of OpenSteer.

\ossimplevehicle.h(44) : error C2143: syntax error : missing ';' before '<'
ossimplevehicle.h(49) : error C2955: 'OpenSteer::SteerLibraryMixin' : use of class template requires template argument list
ossteerlibrary.h(47) : see declaration of 'OpenSteer::SteerLibraryMixin'
ossimplevehicle.h(187) : fatal error C1903: unable to recover from previous error(s); stopping compilation

Code: Select all

//! namespace OpenSteer
namespace OpenSteer{
  //! SimpleVehicle_1 adds concrete LocalSpace methods to AbstractVehicle
  typedef LocalSpaceMixin<AbstractVehicle> SimpleVehicle_1;
  //! SimpleVehicle_2 adds concrete annotation methods to SimpleVehicle_1
  typedef AnnotationMixin<SimpleVehicle_1> SimpleVehicle_2;
  //! SimpleVehicle_3 adds concrete steering methods to SimpleVehicle_2
  typedef SteerLibraryMixin<SimpleVehicle_2> SimpleVehicle_3;

  // SimpleVehicle adds concrete vehicle methods to SimpleVehicle_3
  class SimpleVehicle : public SimpleVehicle_3{
    private:
      float _mass;       // mass (defaults to unity so acceleration=force)

any idea why your version with the irrlicht potimisations doesn't build?

Posted: Sat Nov 27, 2010 2:08 pm
by Mani2010
*Bump* still stuck on this, any help?

Posted: Sat Nov 27, 2010 11:33 pm
by Acki
sorry, I have no clue :shock:

it works perfectly with MinGW/GCC (Code::Blocks) and I never had this problem...

and bc I don't use MSVC++ I can't test it with this IDE, sorry... :cry:

Posted: Sun Nov 28, 2010 3:49 pm
by Mani2010
no probs, i'll start with opensteer instead