No earth file laoded #2913
-
|
I have built the current version of osgEarth in release and release with debug. No dll conflicts are shown but I cannot get any included application to run other than the version app.. The all say No Earth file loaded. Examples of the the issue is shown below. I add the plugin path to my path as mentioned in other posts but still not help.. J:\SupportLibraries\OsgEarth\bin\relWithDebug>set path=J:\SupportLibraries\OsgEarth\bin\relWithDebug\osgPlugins-3.6.5;%PATH% J:\SupportLibraries\OsgEarth\bin\relWithDebug>osgearth_annotation.exe kml.earth --screen 1 J:\SupportLibraries\OsgEarth\bin\relWithDebug>osgearth_annotation.exe boston_projected.earth --screen 1 Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
|
I can step into ReadFile.cpp but cannot step into osgDb::readRefNodeFile to see why it returns NULL. It blocks looking for xstring. |
Beta Was this translation helpful? Give feedback.
-
|
It is highly likely this is a path problem, or that you have multiple DLLs from different build configs (release, relwithdebinfo) in your path. Try using the Dependencies tool to figure out what is missing. |
Beta Was this translation helpful? Give feedback.
-
|
Glenn:
Thanks for your reply.
The issue seems to be related to earth files. I switched my testing to
osgEarth_map and things work ok. I copied the same dlls I just
used in osgEarth_map to osgEarth_Annotations and have the same problem
originally mentioned.
I did run depends as you suggested but it did not show any errors
I added
_putenv("OSGEARTH_GL_DEBUG=DEBUG");
_putenv("OSGEARTH_NOTIFY_LEVEL=NOTICE");
to osgEarth_annotations and still got a limited error output. Nothing
mentions what is wrong with the earth file
[osgearth info] Hello, world.
Fontconfig error: Cannot load default config file: No such file: (null)
Fontconfig error: Cannot load default config file: No such file: (null)
[osgearth info] [Capabilities] osgEarth Version: 3.7.3 build 180
[osgearth info] [Capabilities] GDAL Version: 3.12.1
[osgearth info] [Capabilities] OSG Version: 3.6.5
[osgearth info] [Capabilities] OSG GL3 Features: yes
[osgearth info] [Capabilities] OSG FFP Available: no
[osgearth info] [Capabilities] CPU Cores: 8
[osgearth info] [Capabilities] GL_VENDOR: NVIDIA Corporation
[osgearth info] [Capabilities] GL_RENDERER: NVIDIA GeForce GTX
1070/PCIe/SSE2
[osgearth info] [Capabilities] GL_VERSION: 3.3.0 NVIDIA 560.94
[osgearth info] [Capabilities] GL CORE Profile: yes
Error reading file
C:\SupportLibraries\osgearth_build\repo\tests\simple.earth: file not handled
[osgearth warning] [MapNodeHelper] No earth file loaded
[osgearth warning] Usage:
C:\SupportLibraries\osgearth_build\Build\src\applications\osgearth_annotation\Debug\osgearth_annotationd.exe
<earthfile>
[osgearth info] Goodbye.
…On Tue, Feb 10, 2026 at 9:29 AM Glenn Waldron ***@***.***> wrote:
It is highly likely this is a path problem, or that you have multiple DLLs
from different build configs (release, relwithdebinfo) in your path.
Try using the Dependencies <https://github.com/lucasg/Dependencies> tool
to figure out what is missing.
—
Reply to this email directly, view it on GitHub
<#2913 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADNLDTQQ3IAYYDUYRP7VRG34LHTOLAVCNFSM6AAAAACURJPQ4SVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNZVG43TMNA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
The earth file loader is in a plugin DLL called osgdb_earth.dll that usually lives in a osgPlugins-3.6.5 subfolder under your main bin folder. Copying DLLs around manually is asking for trouble. You will inevitably end up getting mixed versions, mixed configurations, and errors exactly like the one you are seeing. Avoid the suffering. Use the INSTALL target in your CMake projects to install binaries to a known location, and then add that location to your PATH. |
Beta Was this translation helpful? Give feedback.
-
|
Glenn:
Thanks for the info. That dll was missing from the plugin folder. When
added things work better.
When I run build INSTALL from visual studio it only copies a few of the
total dlls to the install folder. I still have to add the rest but that
file did not make it into the initial plugin folder to get copied.
That leaves two issues, the first of which I remember seeing before but do
not remember the fix. During startup I get an Entry Point Not Found error
from osgdb_zipd.dll but the app continues to load and display correctly.
The other error is not likely related to this one and that but it is not a
show stopper either. During startup I get Fontconfig error: Cannot load
default config file: No such file. That one has been around for a while as
well.
Thanks again
…On Thu, Feb 12, 2026 at 8:36 AM Glenn Waldron ***@***.***> wrote:
The earth file loader is in a plugin DLL called osgdb_earth.dll that
usually lives in a osgPlugins-3.6.5 subfolder under your main bin folder.
Copying DLLs around manually is asking for trouble. You will inevitably
end up getting mixed versions, mixed configurations, and errors exactly
like the one you are seeing.
Avoid the suffering. Use the INSTALL target in your CMake projects to
install binaries to a known location, and then add that location to your
PATH.
—
Reply to this email directly, view it on GitHub
<#2913 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADNLDTWTEOTYSBZGLJ3RJ234LR6V7AVCNFSM6AAAAACURJPQ4SVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNZYGM2TENI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Which DLLs is the INSTALL target not installing? |
Beta Was this translation helpful? Give feedback.
-
|
That's right, the osgEarth INSTALL target only installs osgEarth components. You need to add any dependencies to your PATH, or if you are distributing a standalone app, you can create a CMake target to package everything you need. This is outside the scope of osgEarth SDK of course. You can disable building the ZIP plugin with the CMAKE option You can safely ignore the FontConfig message, which comes from OpenSceneGraph. |
Beta Was this translation helpful? Give feedback.
That's right, the osgEarth INSTALL target only installs osgEarth components.
You need to add any dependencies to your PATH, or if you are distributing a standalone app, you can create a CMake target to package everything you need. This is outside the scope of osgEarth SDK of course.
You can disable building the ZIP plugin with the CMAKE option
OSGEARTH_BUILD_ZIP_PLUGIN.You can safely ignore the FontConfig message, which comes from OpenSceneGraph.