Errors when running osgearth_annotation example project #2589
Unanswered
yunusyurtturk
asked this question in
Support Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
I'm trying to dive into osgEarth but facing some issues. One of them is I can't run the examples without making some modifications.
My version is osgearth-3.5 (already tried with osgearth-3.6 but facing similar issues, so trying osgearth-3.5 this time)
This is my
osgearth_version --caps
output:I built the osgEarth project successfully.
Now I want to run '
Example osgearth_annotation
' project.When I set it as 'Startup Project' and click Run on Visual Studio, I get 'osgEarth.dll not found' error. I expect it to work as is, without modifying or copying DLLs to places, which makes me think I missed something. (1)
To solve the problem, I found the osgEarth.dll and placed it inside the osgearth\build\bin\RelWithDebInfo directory. After that it stopped complaining about the .dll
However, this time I get an error saying
[osgearth warning] [MapNodeHelper] No valid earth file loaded - aborting
[osgearth warning] Usage: E:\Projeler\GIS\osgearth\osgearth\build\bin\RelWithDebInfo\osgearth_annotation.exe
To solve this issue, I set a command line argument to the osgearth_annotation project and I set full path of
"E:\Projeler\GIS\osgearth\osgearth\tests\annotation.earth"
file. Again, I think I might have solved this problem in tricky way so I expect your guide/suggestions. Since the annotation.earth file is related to osgearth_annotation project (2)With the command line argument set, I run the project. This time I get this error:
[osgearth warning] [MapNodeHelper] No valid earth file loaded - aborting
[osgearth warning] Usage: E:\Projeler\GIS\osgearth\osgearth\build\bin\RelWithDebInfo\osgearth_annotation.exe
After making some more research, I found
OSG_NOTIFY_LEVEL=DEBUG
option, and give it a try. In somewhere of the output, it says failed loading "osgPlugins-3.6.5/osgdb_earth.dll":build\vcpkg_installed\x64-windows\plugins
directory is already in my PATH btw.osgdb_earth.dll is under
\build\lib\RelWithDebInfo\osgdb_earth.dll
directory by default, so I copy&pasted this file to\build\bin\RelWithDebInfo
directory and it stopped complaining. This solved the problem but temporarly, it will be a problem next time I configure my cmake or try to build from strach.I don't know why it gives error and need some help here, to mitigate the .dll copying by manually (3)
Beta Was this translation helpful? Give feedback.
All reactions