MBTiles format #35
-
I'm wondering, how can I manage MBTiles format creation with Rocky? I tried the snippet of code just like in This is the code which works great (TMS): #ifdef ROCKY_HAS_TMS
auto layer = rocky::TMSImageLayer::create();
#endif And this is the code that doesn't work (MBTiles): #ifdef ROCKY_HAS_MBTILES
auto layer = rocky::MBTilesImageLayer::create();
#endif So I can build my code with TMS support, but I can't with MBTiles support, because I'm constantly getting linker erros: main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl rocky::MBTilesImageLayer::MBTilesImageLayer(void)" (__imp_??0MBTilesImageLayer@rocky@@QEAA@XZ) referenced in function "void __cdecl std::_Construct_in_place<class rocky::MBTilesImageLayer>(class rocky::MBTilesImageLayer &)" (??$_Construct_in_place@VMBTilesImageLayer@rocky@@$$V@std@@YAXAEAVMBTilesImageLayer@rocky@@@Z) [C:\Users\ilya.mashkov\Desktop\operator-gui\build\main.vcxproj]
main.obj : error LNK2001: unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl rocky::MBTilesImageLayer::to_json(void)const " (?to_json@MBTilesImageLayer@rocky@@UEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) [C:\Users\ilya.mashkov\Desktop\operator-gui\build\main.vcxproj]
main.obj : error LNK2001: unresolved external symbol "protected: virtual class rocky::Status __cdecl rocky::MBTilesImageLayer::openImplementation(class rocky::IOOptions const &)" (?openImplementation@MBTilesImageLayer@rocky@@MEAA?AVStatus@2@AEBVIOOptions@2@@Z) [C:\Users\ilya.mashkov\Desktop\operator-gui\build\main.vcxproj]
main.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl rocky::MBTilesImageLayer::closeImplementation(void)" (?closeImplementation@MBTilesImageLayer@rocky@@MEAAXXZ) [C:\Users\ilya.mashkov\Desktop\operator-gui\build\main.vcxproj]
main.obj : error LNK2001: unresolved external symbol "protected: virtual struct rocky::Result<class rocky::GeoImage> __cdecl rocky::MBTilesImageLayer::createImageImplementation(class rocky::TileKey const &,class rocky::IOOptions const &)const " (?createImageImplementation@MBTilesImageLayer@rocky@@MEBA?AU?$Result@VGeoImage@rocky@@@2@AEBVTileKey@2@AEBVIOOptions@2@@Z) [C:\Users\ilya.mashkov\Desktop\operator-gui\build\main.vcxproj]
main.obj : error LNK2001: unresolved external symbol "protected: virtual class rocky::Status __cdecl rocky::MBTilesImageLayer::writeImageImplementation(class rocky::TileKey const &,class std::shared_ptr<class rocky::Image>,class rocky::IOOptions const &)const " (?writeImageImplementation@MBTilesImageLayer@rocky@@MEBA?AVStatus@2@AEBVTileKey@2@V?$shared_ptr@VImage@rocky@@@std@@AEBVIOOptions@2@@Z) What should I do to implement MBTiles loading? |
Beta Was this translation helpful? Give feedback.
Answered by
gwaldron
Jun 7, 2024
Replies: 1 comment
-
My fault. There was a typo that caused |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ComradeMashkov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My fault. There was a typo that caused
MBTilesImageLayer
to not be built properly.Fixed in 75f6555.
Thanks for pointing this out!