0

I am using marble with qt5 and I am getting this error message when executing these lines of code. Any Idea?(Can it be that I am missing any packages?) Thanks!

styleArch = new Marble::GeoDataStyle;
        styleArch->setIconStyle( *icon );
        place->setStyle( styleArch );

Image of Errors

CalvT
  • 3,123
  • 6
  • 37
  • 54
maltja
  • 79
  • 2
  • 8

1 Answers1

0

The API changed from pointers to shared pointers. This should work:

styleArch = new Marble::GeoDataStyle;
styleArch->setIconStyle( *icon );
place->setStyle( Marble::GeoDataStyle::Ptr( styleArch ) );
Earthwings
  • 396
  • 2
  • 3