Meshbuilder build fails

Asked by Marie Rognes on 2012-02-17

Just branched from lp:meshbuilder, running make gives the error:

[ 36%] Building CXX object src/CMakeFiles/meshbuilder.dir/osgQt/TrackballManipulator.cpp.o
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp: In member function ‘TrackballManipulator::State TrackballManipulator::getTrackballState() const’:
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp:26:18: error: ‘_modelScale’ was not declared in this scope
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp:27:24: error: ‘_minimumZoomScale’ was not declared in this scope
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp: In member function ‘void TrackballManipulator::setTrackballState(TrackballManipulator::State)’:
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp:40:3: error: ‘_modelScale’ was not declared in this scope
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp:41:3: error: ‘_minimumZoomScale’ was not declared in this scope
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp: In member function ‘void TrackballManipulator::setCenter(osg::Vec3)’:
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp:52:34: error: ‘computePosition’ was not declared in this scope
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp: In member function ‘void TrackballManipulator::makeLookAt(osg::Vec3, osg::Vec3, osg::Vec3)’:
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp:59:34: error: ‘computePosition’ was not declared in this scope
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp: In member function ‘virtual void TrackballManipulator::setNode(osg::Node*)’:
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp:68:6: error: ‘_modelScale’ was not declared in this scope
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp: In member function ‘void TrackballManipulator::debugPrint() const’:
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp:79:32: error: ‘_modelScale’ was not declared in this scope
/home/meg/local/fenics/src/meshbuilder/src/osgQt/TrackballManipulator.cpp:80:38: error: ‘_minimumZoomScale’ was not declared in this scope
make[2]: *** [src/CMakeFiles/meshbuilder.dir/osgQt/TrackballManipulator.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/meshbuilder.dir/all] Error 2
make: *** [all] Error 2

Any ideas to what is wrong?

Question information

Language:
English Edit question
Status:
Answered
For:
meshbuilder Edit question
Assignee:
No assignee Edit question
Last query:
2012-02-17
Last reply:
2012-05-04
Anders E. Johansen (andersej) said : #1

I have the exact same problem. I know it has worked since the last revision (reverting to older revisions doesn't help either), so maybe a problem with some of the dependencies? Anyone knows?

Anders

Johannes Ring (johannr) said : #2

OpenSceneGraph was upgraded from 2.8 to 3.0 in Ubuntu 11.10. I guess that might be the problem.

Benjamin Kehlet (benjamik) said : #3

That is exactly the problem. It seems to be related to the class TrackballManipulator on OSG. I have no idea how much work it would require to update Meshbuilder to the new version of Open Scene Graph.

Anders Logg (logg) said : #4

On Thu, Mar 01, 2012 at 12:20:47PM -0000, Benjamin Kehlet wrote:
> Question #188022 on meshbuilder changed:
> https://answers.launchpad.net/meshbuilder/+question/188022
>
> Benjamin Kehlet posted a new comment:
> That is exactly the problem. It seems to be related to the class
> TrackballManipulator on OSG. I have no idea how much work it would
> require to update Meshbuilder to the new version of Open Scene Graph.

Better to rewrite it from scratch without Open Scene Graph. Benjamin
has a simple prototype to start from.

--
Anders

Benjamin Kehlet (benjamik) said : #5

I'll take a look during the weekend to see if it is poosible to come with a solution not based on OSG.

Øyvind Evju (oyvevju) said : #6

Any solution to this problem yet?

-Øyvind

Anders Logg (logg) said : #7

On Fri, May 04, 2012 at 03:20:45PM -0000, Øyvind Evju wrote:
> Question #188022 on meshbuilder changed:
> https://answers.launchpad.net/meshbuilder/+question/188022
>
> Øyvind Evju posted a new comment:
> Any solution to this problem yet?

Ask your room mate. ;-)

--
Anders

Can you help with this problem?

Provide an answer of your own, or ask Marie Rognes for more information if necessary.

To post a message you must log in.