Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [MANTA] Compile problem on recent update


Chronological Thread 
  • From: Abe Stephens <abe@sci.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: Re: [MANTA] Compile problem on recent update
  • Date: Wed, 07 Jun 2006 21:58:35 -0700


Given the scoping rules for cmake variables, it is not possible to define a BUILD_YOUR_PROJECT variable in the trunk/scenes/ directory and then use it to conditionally include something in the "trunk/Model/Primitives" directory. As a result all of the scene specific code is always compiled when it is placed in the Primitives directory.

One way to avoid this behavior is to place all of the "application specific" code for a project in its own directory tree and then use a cmake variable to conditionally include that. This is what I have done with many of my projects. It all lives in the trunk/fox/demo_name directory. So for example an application specific renderer for the disco sampling project would be placed in: "fox/disco_demo/Engine/Renderers".

This organization results in a much less monolithic set of core manta libraries.

Abe

Christiaan Paul Gribble wrote:

Hi,

I just updated to rev. 1101, and I get the following compilation error (on PPC Mac):

Building CXX object Model/CMakeFiles/Manta_Model.dir/Primitives/ IsosurfaceOctreeVolume.o
/Users/cgribble/Manta/src/Model/Primitives/IsosurfaceOctreeVolume.cc: In member function 'virtual void Manta::IsosurfaceOctreeVolume::intersect(const Manta::RenderContext&, Manta::RayPacket&) const':
/Users/cgribble/Manta/src/Model/Primitives/IsosurfaceOctreeVolume.cc: 117: error: 'packet_intersect_implicit_bvh' was not declared in this scope
make[2]: *** [Model/CMakeFiles/Manta_Model.dir/Primitives/ IsosurfaceOctreeVolume.o] Error 1

I haven't enabled any of Aaron's octree volume stuff, and I'm not sure why this stuff is being compiled. First, have I done something wrong that turned this on, and second, is anyone else seeing this issue on other platforms?

C







Archive powered by MHonArc 2.6.16.

Top of page