OK, I understand your question better now. Actually, the GNUmakefile.inst were designed to point at a TOPDIR that is in the distribution (like /usr/share/OpenSceneGraph/Make or something). But the answer is a tenative "yes", as long as you define TOPDIR as a relative path from the current directory.
That is, you can't define TOPDIR as
/home/don/Software/OpenSceneGraph
it has to be
../../Software/OpenSceneGraph
Your resulting binary will end up in ./$(OSARCH).$(OPT) (e.g. Linux32.Opt), but unfortunately, it will also create a symbolic link in OSG_OP_OT-1.2/OpenSceneGraph/bin/$(OSARCH) .
For projects within the past couple of years, I've been using DWMake. This solves the issue of having a separate Make directory for each project. I've defined a generic set of makedefs and makerules which work for all projects. I've been wanting to move OSG, Producer and OpenThreads to DWMake to solve the problem of managing multiple makedefs, makerules, etc. but I keep hearing about all these other build systems that are going to be put in place. (I'm now blue from holding my breath).
With DWMake (cvs -d :pserver:openscenegraph.net:/cvs/DWMake co DWMake), you simply set the DWMAKE variable to point to the top level directory where DWMake is installed and build this GNUmakefile:
include $(DWMAKE)/makedefs
CXXFILES = main.cpp
LIBS = -losg
EXEC = myProgram
include $(DWMAKE)/makerules
CXXFILES = main.cpp
LIBS = -losg
EXEC = myProgram
include $(DWMAKE)/makerules
then type 'make'.
-don
On 9/28/06, Ed <[EMAIL PROTECTED]> wrote:
So if I understand correctly, I can pull one of the examples out from
under the OSG tree and put it my desired location, modify the
GNUmakefile.inst to point TOPDIR to OSG_OP_OT-1.2/OpenSceneGraph/Make I
should be able to compile the example?
Thanks,
Ed
Don Burns wrote:
> Hi Ed,
>
> Note in the examples subdirs that there are some GNUmakefile.inst
> files. These are much more minimalistic and were intended to go into
> the distribution for building only the examples.
>
> -don
>
> On 9/27/06, *Ed* <[EMAIL PROTECTED]
> <mailto: [EMAIL PROTECTED]>> wrote:
>
> I am putting together a collection of OSG examples, which have been
> modified to suit my needs, each of which show an individual
> technique/procedure/etc, that I plan to incorporate into an app. So
> that I still have the original example intact, I have moved the
> target
> examples out from under the OSG tree and under my project
> tree. When I
> look in GNUmakefile for an example, I see that it inlcudes
> makedefs from
> OSG_OP_OT-1.2/OpenSceneGraph/Make.
> OSG_OP_OT-1.2/OpenSceneGraph/Make.
> also includes several other files. My question is this: what is the
> minimum makefile I need to compile the examples. Do I really need
> makedefs, makedirdefs, makedirrules, makepkg, etc. etc. etc?
>
> Ed
>
> _______________________________________________
> osg-users mailing list
> [email protected] <mailto:[email protected]>
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
