[ODE] xcode

James Gjerde jgjerde at contrarymotion.com
Wed Sep 22 11:00:18 MST 2004


change the sdl include line from

#include "SDL.h"

to

#include <SDL/SDL.h>

that should do it for u. i do not know much about SDL, but since it is a
framework, the framework include should really be included that way, and
your app should work fine if u include it as such, it works for me.

i do not know why they would include it the other way in an example. if u
include it this way it should be fine and then u can also add paths to the
Header Search Paths.

jamie

----- Original Message ----- 
From: "Alexander Bussman" <buxman at telia.com>
To: "James Gjerde" <jgjerde at contrarymotion.com>
Cc: <ode at q12.org>
Sent: Wednesday, September 22, 2004 9:29 AM
Subject: Re: [ODE] xcode


> I only have the ODE include path in my Header Search Paths field, but
> when I remove that and make it empty. SDL is found again but ODE is
> not.
>
> I'm not sure how I should explain this in any other way.
> But SDL (www.libsdl.org) is found through a framework that I installed,
> and it works great until I add the ODE Header Search Path (the line is
> empty before I add ODE to it) then SDL isn't found anymore (but the
> framework is still listed in my project).
>
> Is it a bug in xcode or is it something I do wrong?
>
> By the way, thanks for telling me how to separate the search paths it
> will probably help me later :)
>
> On Sep 22, 2004, at 1:22, James Gjerde wrote:
>
> > what errors are u getting?
> >
> > if u do have multiple paths in the Header Search Paths they are simply
> > separated by a space. if u try to separate multiple paths by antyhing
> > else
> > it will not find them.
> >
> > example :
> >
> > ../Library/ODE/include ../Library/Somethingelse/include
> >
> > notice these two paths are separated by a space. other than that i
> > would
> > need more info to help u out.
> >
> > jamie
> >
> > ----- Original Message -----
> > From: "Alexander Bussman" <buxman at telia.com>
> > To: "James Gjerde" <jgjerde at contrarymotion.com>
> > Cc: <ode at q12.org>
> > Sent: Tuesday, September 21, 2004 8:54 AM
> > Subject: Re: [ODE] xcode
> >
> >
> >> This is strange, I first got it to compile.
> >> But now after a few other changes it can't find the ODE headers
> >> anymore.
> >> And if I put /Users/bux/Library/ODE/include (where the ode directory
> >> with the headers are located for me now) to the Header Search Paths in
> >> "Project Info"->Styles it can't find SDL (which I use to create the
> >> window) anymore.
> >>
> >> What am I doing wrong?
> >>
> >> One way I solved my problem was to add compiler flags (with
> >> -I/path/to/the/headers) on the files that were using ODE, and that
> >> works but is not a good way.
> >>
> >> btw, I'm using xcode 1.5.
> >>
> >> On Sep 21, 2004, at 0:33, James Gjerde wrote:
> >>
> >>> u can link to the libode.a unix-style static library that is
> >>> generated
> >>> from
> >>> the makefile for macosx .
> >>>
> >>> just add libode.a to your project as an existing file. then make sure
> >>> u have
> >>> the ode headers in your include path in the "General" settings of the
> >>> project inspector or include them directly into your project. u could
> >>> also
> >>> just specify the path to libode.a in the "Library Search Paths" in
> >>> the
> >>> project inspector.
> >>>
> >>> xcode encourages u to add files and libs to your projects as opposed
> >>> to
> >>> specifying paths but i choose to add the lib directly and then just
> >>> put the
> >>> path to the headers in "Header Search Paths".
> >>>
> >>> that is what i do and it works well.
> >>>
> >>> jamie
> >>
> >> _______________________________________________
> >> ODE mailing list
> >> ODE at q12.org
> >> http://q12.org/mailman/listinfo/ode
> >
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode



More information about the ODE mailing list