Skip to main content
GameDev.net gamedev.net
🔒 Locked

OpenSteer + xCode (mac)

Started by combatdave Mar 9, 2008 at 6:55 AM 2 replies 3.7k views
Original Post
combatdave
combatdave
I'm trying to build opensteer in xcode on mac. The opensteer download comes with an xcode project file, which I load, but when I try to build a load of errors come up such as: Line Location SteerLibrary.h:247: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) Line Location SteerLibrary.h:247: error: there are no arguments to 'position' that depend on a template parameter, so a declaration of 'position' must be available Line Location SteerLibrary.h:247: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) Line Location SteerLibrary.h:247: error: there are no arguments to 'position' that depend on a template parameter, so a declaration of 'position' must be available Line Location SteerLibrary.h:248: error: there are no arguments to 'forward' that depend on a template parameter, so a declaration of 'forward' must be available Line Location SteerLibrary.h:248: error: there are no arguments to 'forward' that depend on a template parameter, so a declaration of 'forward' must be available Line Location SteerLibrary.h:252: error: there are no arguments to 'position' that depend on a template parameter, so a declaration of 'position' must be available Line Location SteerLibrary.h:252: error: there are no arguments to 'position' that depend on a template parameter, so a declaration of 'position' must be available Line Location SteerLibrary.h:253: error: there are no arguments to 'forward' that depend on a template parameter, so a declaration of 'forward' must be available Line Location SteerLibrary.h:253: error: there are no arguments to 'forward' that depend on a template parameter, so a declaration of 'forward' must be available Line Location SteerLibrary.h:258: error: there are no arguments to 'position' that depend on a template parameter, so a declaration of 'position' must be available Line Location SteerLibrary.h:258: error: there are no arguments to 'position' that depend on a template parameter, so a declaration of 'position' must be available Line Location SteerLibrary.h:259: error: there are no arguments to 'forward' that depend on a template parameter, so a declaration of 'forward' must be available Line Location SteerLibrary.h:259: error: there are no arguments to 'forward' that depend on a template parameter, so a declaration of 'forward' must be available Line Location SteerLibrary.h:330: error: there are no arguments to 'side' that depend on a template parameter, so a declaration of 'side' must be available Line Location SteerLibrary.h:330: error: there are no arguments to 'up' that depend on a template parameter, so a declaration of 'up' must be available Line Location SteerLibrary.h:330: error: there are no arguments to 'up' that depend on a template parameter, so a declaration of 'up' must be available Line Location SteerLibrary.h:330: error: there are no arguments to 'side' that depend on a template parameter, so a declaration of 'side' must be available Line Location SteerLibrary.h:343: error: there are no arguments to 'position' that depend on a template parameter, so a declaration of 'position' must be available Line Location SteerLibrary.h:343: error: there are no arguments to 'position' that depend on a template parameter, so a declaration of 'position' must be available Line Location SteerLibrary.h:344: error: there are no arguments to 'velocity' that depend on a template parameter, so a declaration of 'velocity' must be available Line Location SteerLibrary.h:344: error: there are no arguments to 'velocity' that depend on a template parameter, so a declaration of 'velocity' must be available Line Location SteerLibrary.h:357: error: 'position' was not declared in this scope Line Location SteerLibrary.h:357: error: 'position' was not declared in this scope I'm not a programming noob, but when it comes to setting up projects I'm not so good at it. Add to that the fact that I am definately a mac/xcode noob, and... yeah. I just cant figure this out. I've found this link which suggests changing from gcc 4 to gcc 3.3 would solve the problem: http://sourceforge.net/forum/forum.php?thread_id=1481921&forum_id=264792 But then I've found this link which suggests gcc 3.x isnt intel compatible - and as my macbook pro is an intel, I'm unsure if 3.3 would be of any use: http://www.maccompanion.com/macc/archives/November2007/Columns/AccordingtoHoyle27.htm Any ideas, anyone? I'm thinking installing windows might be my only hope... Cheers
rogma
rogma
Hi, I had the same problem on linux and submitted the bug to opensteer. Considering the development rate of that project and the fact that it has been pointed out one year ago, I doubt it will be corrected soon. The problem seems to come from the very architecture : subtle template design allowing to integrate through inheritance.

So I have chosen to restart from scratch on OpenSteer by integrating it in my project. Actual interesting code is quite short (SteerLibrary.h contains almost all the code for behaviors). I have only some glue code (a Vehicle class) and a SteeringBehaviour one that contains the methods taken from SteerLibrary.h.

Regards



jcmjunior
jcmjunior
Try to put an () after position, velocity, and forward.

I had the same trouble in linux and made that. I just couldn't understand why it worked. LOL.



Bye,
Joaquim
rmokhtar
rmokhtar
guys,

if you're still having the same prob, don't download the zip. Get the latest code from the repository as per
http://sourceforge.net/forum/message.php?msg_id=4113990

I had the same prob, found the post, got the code and now it works like a charm.

TC and happy coding,
Reem

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.