Closed bclay1297 closed 1 week ago
Bruce,
The osgEarth::Controls code is now a "legacy" option that you have to enable in CMake.
Set the OSGEARTH_BUILD_LEGACY_CONTROLS_API
option ON to use it.
Glenn: Is there a replacement I should be using instead of that to get graticules and measurement capabilities in current and future releases?
Bruce
On Mon, Oct 14, 2024 at 3:01 PM Glenn @.***> wrote:
Bruce, The osgEarth::Controls code is now a "legacy" option that you have to enable in CMake. Set the OSGEARTH_BUILD_LEGACY_CONTROLS_API option ON to use it.
— Reply to this email directly, view it on GitHub https://github.com/gwaldron/osgearth/issues/2641#issuecomment-2412014517, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADNLDTXWF5JDI64TYHOTMBTZ3QIG7AVCNFSM6AAAAABP5SVUG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJSGAYTINJRG4 . You are receiving this because you authored the thread.Message ID: @.***>
We do not plan on removing the Controls API - we are just no longer extending or maintaining it. So you are free to continue using it without any trouble.
The Controls API really only existed to support the demos, and we are using ImGui for that now.
Graticules do not use the Controls at all. The TerrainGUI has a measuring tool integrated into it - you are free to adapt that code if you like it.
I am using osgEarth 3.7.0 build 161 with Visual Studio 2022. The software was downloaded and built using the Vcpackage bootstrap The osgEarth.lib file is included in the VC Project. I had clean build when building the examples. The errors listed below started when I tried to bring in some of my old source code. I am trying to get functions such as Sky, MeasureTool, Graticule, annotations etc. I added osgEarthImGui.lib to the project but it did not appear to change anything
I am upgrading some of my old code and have gotten past the compile syntax errors but I get numerous link errors. The list below is just a portion of the errors reported
Bruce