Skip to content

Instantly share code, notes, and snippets.

@srhb
Created October 31, 2018 11:51
Show Gist options
  • Save srhb/3d424c4b88652ba2f315474046c0ad5c to your computer and use it in GitHub Desktop.
Save srhb/3d424c4b88652ba2f315474046c0ad5c to your computer and use it in GitHub Desktop.
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx: In constructor 'simgear::canvas::TextLine::TextLine(size_t, const simgear::canvas::Text::TextOSG*)':
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:124:17: error: 'LineNumbers' is not a member of 'simgear::canvas::TextLine::GlyphQuads {aka osgText::Text::GlyphQuads}'
GlyphQuads::LineNumbers const& line_numbers = _quads->_lineNumbers;
^~~~~~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:125:17: error: 'osgText::Text::GlyphQuads::LineNumbers' has not been declared
GlyphQuads::LineNumbers::const_iterator begin_it =
^~~~~~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:128:9: error: 'begin_it' was not declared in this scope
if( begin_it == line_numbers.end() || *begin_it != _line )
^~~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:128:9: note: suggested alternative: '_begin'
if( begin_it == line_numbers.end() || *begin_it != _line )
^~~~~~~~
_begin
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:128:21: error: 'line_numbers' was not declared in this scope
if( begin_it == line_numbers.end() || *begin_it != _line )
^~~~~~~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:132:14: error: 'begin_it' was not declared in this scope
_begin = begin_it - line_numbers.begin();
^~~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:132:14: note: suggested alternative: '_begin'
_begin = begin_it - line_numbers.begin();
^~~~~~~~
_begin
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:132:25: error: 'line_numbers' was not declared in this scope
_begin = begin_it - line_numbers.begin();
^~~~~~~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx: In member function 'osg::Vec2 simgear::canvas::TextLine::cursorPos(size_t) const':
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:166:17: error: 'Coords2' is not a member of 'simgear::canvas::TextLine::GlyphQuads {aka osgText::Text::GlyphQuads}'
GlyphQuads::Coords2 refCoords = _quads->_coords;
^~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:167:17: error: 'osgText::Text::GlyphQuads::Coords2' has not been declared
GlyphQuads::Coords2::element_type &coords = *refCoords.get();
^~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:167:40: error: 'coords' was not declared in this scope
GlyphQuads::Coords2::element_type &coords = *refCoords.get();
^~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:167:40: note: suggested alternative: 'cross'
GlyphQuads::Coords2::element_type &coords = *refCoords.get();
^~~~~~
cross
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:167:50: error: 'refCoords' was not declared in this scope
GlyphQuads::Coords2::element_type &coords = *refCoords.get();
^~~~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:183:21: error: 'prev_r' was not declared in this scope
if( prev_l == prev_r )
^~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:183:21: note: suggested alternative: 'prev_l'
if( prev_l == prev_r )
^~~~~~
prev_l
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:186:19: error: 'cur_l' was not declared in this scope
pos.x() = cur_l;
^~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:186:19: note: suggested alternative: 'cbrtl'
pos.x() = cur_l;
^~~~~
cbrtl
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:189:35: error: 'cur_l' was not declared in this scope
pos.x() = 0.5 * (prev_r + cur_l);
^~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:189:35: note: suggested alternative: 'cbrtl'
pos.x() = 0.5 * (prev_r + cur_l);
^~~~~
cbrtl
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx: In member function 'osg::Vec2 simgear::canvas::TextLine::nearestCursor(float) const':
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:205:17: error: 'Coords2' is not a member of 'simgear::canvas::TextLine::GlyphQuads {aka osgText::Text::GlyphQuads}'
GlyphQuads::Coords2 refCoords = _quads->_coords;
^~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:206:17: error: 'osgText::Text::GlyphQuads::Coords2' has not been declared
GlyphQuads::Coords2::element_type &coords = *refCoords.get();
^~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:206:40: error: 'coords' was not declared in this scope
GlyphQuads::Coords2::element_type &coords = *refCoords.get();
^~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:206:40: note: suggested alternative: 'cross'
GlyphQuads::Coords2::element_type &coords = *refCoords.get();
^~~~~~
cross
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:206:50: error: 'refCoords' was not declared in this scope
GlyphQuads::Coords2::element_type &coords = *refCoords.get();
^~~~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx: In member function 'virtual void simgear::canvas::Text::TextOSG::computePositions(unsigned int) const':
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:646:55: error: no matching function for call to 'simgear::canvas::Text::TextOSG::computePositions(unsigned int&) const'
return osgText::Text::computePositions(contextID);
^
In file included from /nix/store/n84xfswbxip8ca0yqyssai1c106dzwc8-openscenegraph-3.6.2/include/osgText/Text:21:0,
from /build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.hxx:23,
from /build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:20:
/nix/store/n84xfswbxip8ca0yqyssai1c106dzwc8-openscenegraph-3.6.2/include/osgText/TextBase:302:10: note: candidate: void osgText::TextBase::computePositions()
void computePositions();
^~~~~~~~~~~~~~~~
/nix/store/n84xfswbxip8ca0yqyssai1c106dzwc8-openscenegraph-3.6.2/include/osgText/TextBase:302:10: note: candidate expects 0 arguments, 1 provided
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:646:55: error: return-statement with a value, in function returning 'void' [-fpermissive]
return osgText::Text::computePositions(contextID);
^
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:656:17: error: 'Coords2' is not a member of 'osgText::Text::GlyphQuads'
GlyphQuads::Coords2 refCoords = quads._coords;
^~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:657:17: error: 'osgText::Text::GlyphQuads::Coords2' has not been declared
GlyphQuads::Coords2::element_type &coords = *refCoords.get();
^~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:657:40: error: 'coords' was not declared in this scope
GlyphQuads::Coords2::element_type &coords = *refCoords.get();
^~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:657:40: note: suggested alternative: '_coords'
GlyphQuads::Coords2::element_type &coords = *refCoords.get();
^~~~~~
_coords
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:657:50: error: 'refCoords' was not declared in this scope
GlyphQuads::Coords2::element_type &coords = *refCoords.get();
^~~~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:657:50: note: suggested alternative: 'getCoords'
GlyphQuads::Coords2::element_type &coords = *refCoords.get();
^~~~~~~~~
getCoords
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:660:23: error: 'LineNumbers' in 'struct osgText::Text::GlyphQuads' does not name a type
const GlyphQuads::LineNumbers& line_numbers = quads._lineNumbers;
^~~~~~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:669:37: error: 'line_numbers' was not declared in this scope
bool first_char = cur_line != line_numbers[i];
^~~~~~~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:689:38: error: invalid operands of types 'std::ios_base&(std::ios_base&)' and 'float' to binary 'operator-'
float margin = 0.5f * (right - left - width),
~~~~~~^~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:689:47: error: 'width' was not declared in this scope
float margin = 0.5f * (right - left - width),
^~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:689:47: note: suggested alternative: 'wcwidth'
float margin = 0.5f * (right - left - width),
^~~~~
wcwidth
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:695:32: error: 'cursor_x' was not declared in this scope
if( cur_line == 0 || cursor_x < _textBB._min.x() )
^~~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:695:32: note: suggested alternative: 'error_t'
if( cur_line == 0 || cursor_x < _textBB._min.x() )
^~~~~~~~
error_t
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:701:28: error: 'cursor_x' was not declared in this scope
float cursor_w = cursor_x + glyphs[i]->getHorizontalAdvance() * wr;
^~~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:701:28: note: suggested alternative: 'cursor_w'
float cursor_w = cursor_x + glyphs[i]->getHorizontalAdvance() * wr;
^~~~~~~~
cursor_w
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:704:32: error: lvalue required as left operand of assignment
_textBB._max.x() = cursor_w;
^~~~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:689:15: warning: unused variable 'margin' [-Wunused-variable]
float margin = 0.5f * (right - left - width),
^~~~~~
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:709:53: error: no matching function for call to 'simgear::canvas::Text::TextOSG::computePositions(unsigned int&) const'
return osgText::Text::computePositions(contextID);
^
In file included from /nix/store/n84xfswbxip8ca0yqyssai1c106dzwc8-openscenegraph-3.6.2/include/osgText/Text:21:0,
from /build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.hxx:23,
from /build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:20:
/nix/store/n84xfswbxip8ca0yqyssai1c106dzwc8-openscenegraph-3.6.2/include/osgText/TextBase:302:10: note: candidate: void osgText::TextBase::computePositions()
void computePositions();
^~~~~~~~~~~~~~~~
/nix/store/n84xfswbxip8ca0yqyssai1c106dzwc8-openscenegraph-3.6.2/include/osgText/TextBase:302:10: note: candidate expects 0 arguments, 1 provided
/build/simgear-2017.3.1/simgear/canvas/elements/CanvasText.cxx:709:53: error: return-statement with a value, in function returning 'void' [-fpermissive]
return osgText::Text::computePositions(contextID);
^
[ 47%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/layout/BoxLayout.cxx.o
make[2]: *** [simgear/CMakeFiles/SimGearScene.dir/build.make:271: simgear/CMakeFiles/SimGearScene.dir/canvas/elements/CanvasText.cxx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1167: simgear/CMakeFiles/SimGearScene.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
builder for '/nix/store/8xrnsnagdlwx145ih2ynrsc99plyrc6m-simgear-2017.3.1.drv' failed with exit code 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment