[osgearth] Fix osgearth vcpkg build failures and linking/compilation failures from installed bits#20449
Conversation
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.
Error: Local changes detected for osgearth but no changes to version or port version.
-- Version: 3.2
-- Old SHA: a77075c3ff1a0372588cb78af6f4f08352b82896
-- New SHA: aaefd0bbf40f5733536e78da4398f51963c81271
-- Did you remember to update the version or port version?
-- Pass `--overwrite-version` to bypass this check.
***No files were updated.***
Details
If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)
In the ports that use the new function, you have to add the corresponding dependencies:
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}The following files are affected:
ports/osgearth/portfile.cmake
There was a problem hiding this comment.
Oh. Encoding particular dependencies (e.g. of gdal) in all depending ports (e.g. osgearth) is hard to maintain, even more with "features".
Instead of extending the list of transitive dependencies, please use targets and <pkg>_LIBRARIES from CMake's find modules and from exported config.
There was a problem hiding this comment.
I tried replacing all this with find_library(GDAL) and then adding GDAL::GDAL target but unfortunately osgearth CMakeList is a stone-age cmake script that didnt quite work with it
Got the following error
ninja: error: 'optimized;/home/ankurv/vcpkg/installed/x64-linux/lib/libgdal.a;debug;/home/ankurv/vcpkg/installed/x64-linux/debug/lib/libgdal.a', needed by 'bin/osgearth_viewer', missing and no known rule to make it
Seems like an issue somehow related to variable indirection that osgearth cmakelists love doing.
I did not look into this further since reverting this blob of change seems to work on my box for now.
I'm reverting the changes here
|
@ankurverma85, have you considered @dg0yt's comments and suggestions? |
|
Don't think I fully understand the suggestion but it seems it'll require a major refactoring of the osgearth cmake (and maybe even gdal's) I'm simply following an established pattern. The list I'm extending already contains the a lot of gdal dependencies. I'm extending that list to include a few more to resolve linker errors |
Port gdal in vcpkg already already does take care of finding gdal's dependencies (hdf5 szip and more) when a consuming project uses
The point is that port gdal becomes unmaintainable by the "established pattern" of consuming ports listing explicitly what they believe to be the dependencies of gdal. The poor maintainer of gdal will have to update all those ports for any improvement of gdal. She/he should focus on the export wrapper, config or pc file instead. With regard to improving gdal, there is a demand for
And of course gdal depends on a huge set of incoming dependencies, equally affected by the "established pattern". |
|
@ankurverma85 ,Is there any progress on this pr? |
|
Sorry I haven't had any cycles to try out the changes yet. |
bae3bd5 to
d85036b
Compare
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.
Error: Local changes detected for osgearth but no changes to version or port version.
-- Version: 3.2#1
-- Old SHA: f3ac1cffb36f0b0b2b531af29145de695cee2291
-- New SHA: ca020ccf653426842774744bef6ba93035ace4db
-- Did you remember to update the version or port version?
-- Pass `--overwrite-version` to bypass this check.
***No files were updated.***
Details
If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)
In the ports that use the new function, you have to add the corresponding dependencies:
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}The following files are affected:
ports/osgearth/portfile.cmake
|
Please run the command "./vcpkg x-add-version osgearth --overwrite-version" then commit again |
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.
Error: Local changes detected for osgearth but no changes to version or port version.
-- Version: 3.2#1
-- Old SHA: f3ac1cffb36f0b0b2b531af29145de695cee2291
-- New SHA: ca020ccf653426842774744bef6ba93035ace4db
-- Did you remember to update the version or port version?
-- Pass `--overwrite-version` to bypass this check.
***No files were updated.***
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 66c39e113a348a6ae80419fae5a629b951b00f1a -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/o-/osgearth.json b/versions/o-/osgearth.json
index ab746ee..60da91a 100644
--- a/versions/o-/osgearth.json
+++ b/versions/o-/osgearth.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "ca020ccf653426842774744bef6ba93035ace4db",
+ "git-tree": "f3ac1cffb36f0b0b2b531af29145de695cee2291",
"version": "3.2",
"port-version": 1
},You have modified or added at least one portfile where deprecated functions are used.
Details
If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)
In the ports that use the new function, you have to add the corresponding dependencies:
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}The following files are affected:
ports/osgearth/portfile.cmake
e421d83 to
17bb1ce
Compare
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.
Error: Local changes detected for osgearth but no changes to version or port version.
-- Version: 3.2#1
-- Old SHA: f3ac1cffb36f0b0b2b531af29145de695cee2291
-- New SHA: f61181e88002ae8b121241af327e1eac9cf9fa92
-- Did you remember to update the version or port version?
-- Pass `--overwrite-version` to bypass this check.
***No files were updated.***
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 1b664707c109f5d48b0b142e96117a53deb653be -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/o-/osgearth.json b/versions/o-/osgearth.json
index ab746ee..60da91a 100644
--- a/versions/o-/osgearth.json
+++ b/versions/o-/osgearth.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "ca020ccf653426842774744bef6ba93035ace4db",
+ "git-tree": "f3ac1cffb36f0b0b2b531af29145de695cee2291",
"version": "3.2",
"port-version": 1
},You have modified or added at least one portfile where deprecated functions are used.
Details
If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)
In the ports that use the new function, you have to add the corresponding dependencies:
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}The following files are affected:
ports/osgearth/portfile.cmake
17bb1ce to
9169d6c
Compare
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.
Error: Local changes detected for osgearth but no changes to version or port version.
-- Version: 3.2#1
-- Old SHA: f3ac1cffb36f0b0b2b531af29145de695cee2291
-- New SHA: f61181e88002ae8b121241af327e1eac9cf9fa92
-- Did you remember to update the version or port version?
-- Pass `--overwrite-version` to bypass this check.
***No files were updated.***
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 1b664707c109f5d48b0b142e96117a53deb653be -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/o-/osgearth.json b/versions/o-/osgearth.json
index e319f77..60da91a 100644
--- a/versions/o-/osgearth.json
+++ b/versions/o-/osgearth.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "f61181e88002ae8b121241af327e1eac9cf9fa92",
+ "git-tree": "f3ac1cffb36f0b0b2b531af29145de695cee2291",
"version": "3.2",
"port-version": 1
},You have modified or added at least one portfile where deprecated functions are used.
Details
If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)
In the ports that use the new function, you have to add the corresponding dependencies:
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}The following files are affected:
ports/osgearth/portfile.cmake
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
PRs must add only one version and must not modify any published versions
When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.
Error: Local changes detected for osgearth but no changes to version or port version.
-- Version: 3.2#1
-- Old SHA: f3ac1cffb36f0b0b2b531af29145de695cee2291
-- New SHA: f61181e88002ae8b121241af327e1eac9cf9fa92
-- Did you remember to update the version or port version?
-- Pass `--overwrite-version` to bypass this check.
***No files were updated.***
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 1b664707c109f5d48b0b142e96117a53deb653be -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/o-/osgearth.json b/versions/o-/osgearth.json
index e319f77..60da91a 100644
--- a/versions/o-/osgearth.json
+++ b/versions/o-/osgearth.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "f61181e88002ae8b121241af327e1eac9cf9fa92",
+ "git-tree": "f3ac1cffb36f0b0b2b531af29145de695cee2291",
"version": "3.2",
"port-version": 1
},You have modified or added at least one portfile where deprecated functions are used.
Details
If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)
In the ports that use the new function, you have to add the corresponding dependencies:
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}The following files are affected:
ports/osgearth/portfile.cmake
JonLiu1993
left a comment
There was a problem hiding this comment.
@ankurverma85 ,Thanks for your pr, we should add "port-version" to 2 when we fix this bug
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 1b664707c109f5d48b0b142e96117a53deb653be -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/baseline.json b/versions/baseline.json
index eff7361..c1978ab 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -5082,7 +5082,7 @@
},
"osgearth": {
"baseline": "3.2",
- "port-version": 1
+ "port-version": 2
},
"osi": {
"baseline": "0.108.6",
diff --git a/versions/o-/osgearth.json b/versions/o-/osgearth.json
index e319f77..0945a3a 100644
--- a/versions/o-/osgearth.json
+++ b/versions/o-/osgearth.json
@@ -1,7 +1,12 @@
{
"versions": [
{
- "git-tree": "f61181e88002ae8b121241af327e1eac9cf9fa92",
+ "git-tree": "ae76d1586f76b2bd9834af964908977008ca5e6b",
+ "version": "3.2",
+ "port-version": 2
+ },
+ {
+ "git-tree": "f3ac1cffb36f0b0b2b531af29145de695cee2291",
"version": "3.2",
"port-version": 1
},You have modified or added at least one portfile where deprecated functions are used.
Details
If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)
In the ports that use the new function, you have to add the corresponding dependencies:
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}The following files are affected:
ports/osgearth/portfile.cmake
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 1b664707c109f5d48b0b142e96117a53deb653be -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/baseline.json b/versions/baseline.json
index eff7361..c1978ab 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -5082,7 +5082,7 @@
},
"osgearth": {
"baseline": "3.2",
- "port-version": 1
+ "port-version": 2
},
"osi": {
"baseline": "0.108.6",
diff --git a/versions/o-/osgearth.json b/versions/o-/osgearth.json
index e319f77..e8eb1af 100644
--- a/versions/o-/osgearth.json
+++ b/versions/o-/osgearth.json
@@ -1,7 +1,12 @@
{
"versions": [
{
- "git-tree": "f61181e88002ae8b121241af327e1eac9cf9fa92",
+ "git-tree": "5579cf3fbd8b4db5df61df261d3d2650082ae0af",
+ "version": "3.2",
+ "port-version": 2
+ },
+ {
+ "git-tree": "f3ac1cffb36f0b0b2b531af29145de695cee2291",
"version": "3.2",
"port-version": 1
},You have modified or added at least one portfile where deprecated functions are used.
Details
If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)
In the ports that use the new function, you have to add the corresponding dependencies:
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}The following files are affected:
ports/osgearth/portfile.cmake
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 1b664707c109f5d48b0b142e96117a53deb653be -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/o-/osgearth.json b/versions/o-/osgearth.json
index e94f7c0..e8eb1af 100644
--- a/versions/o-/osgearth.json
+++ b/versions/o-/osgearth.json
@@ -6,7 +6,7 @@
"port-version": 2
},
{
- "git-tree": "f61181e88002ae8b121241af327e1eac9cf9fa92",
+ "git-tree": "f3ac1cffb36f0b0b2b531af29145de695cee2291",
"version": "3.2",
"port-version": 1
},You have modified or added at least one portfile where deprecated functions are used.
Details
If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)
In the ports that use the new function, you have to add the corresponding dependencies:
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}The following files are affected:
ports/osgearth/portfile.cmake
There was a problem hiding this comment.
You have modified or added at least one portfile where deprecated functions are used.
Details
If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)
In the ports that use the new function, you have to add the corresponding dependencies:
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}The following files are affected:
ports/osgearth/portfile.cmake
|
@JonLiu1993 , Can you help me figure out why osgearth:x64-windows-static-md is getting skipped in the pipeline test runs It says "cascade" but not quite sure it cascades The port compiles successfully on my box and i would like to add it as a baseline |
There was a problem hiding this comment.
You have modified or added at least one portfile where deprecated functions are used.
Details
If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)
In the ports that use the new function, you have to add the corresponding dependencies:
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}The following files are affected:
ports/osgearth/portfile.cmake
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 1b664707c109f5d48b0b142e96117a53deb653be -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/o-/osgearth.json b/versions/o-/osgearth.json
index e8eb1af..5f39ae9 100644
--- a/versions/o-/osgearth.json
+++ b/versions/o-/osgearth.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "5579cf3fbd8b4db5df61df261d3d2650082ae0af",
+ "git-tree": "106a6da206a787832252687e41ad5ba3b102d062",
"version": "3.2",
"port-version": 2
},You have modified or added at least one portfile where deprecated functions are used.
Details
If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)
In the ports that use the new function, you have to add the corresponding dependencies:
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}The following files are affected:
ports/osgearth/portfile.cmake
There was a problem hiding this comment.
You have modified or added at least one portfile where deprecated functions are used.
Details
If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)
In the ports that use the new function, you have to add the corresponding dependencies:
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}The following files are affected:
ports/osgearth/portfile.cmake
a1769bc to
1f07ee4
Compare
There was a problem hiding this comment.
You have modified or added at least one portfile where deprecated functions are used.
Details
If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)
In the ports that use the new function, you have to add the corresponding dependencies:
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}The following files are affected:
ports/osgearth/portfile.cmake
|
Thanks for the fix :) |
|
In CI we are seeing: which seems likely to be caused by this change. Do you have any ideas @ankurverma85 ? |
|
Seems due to this. I'm not seeing this locally, probab because cmake auto turns it off for me if I don't have blend2d in my vcpkg installed libs Perhaps a good fix is to turn off the BLEND2D support by explicitly passing it off to cmake during configure |
Would you be willing to prepare a PR that does that? This project's optional dependencies are the source of so much pain :( |
I took care of it, except I made the blend2d dependency actually work. Knowing that blXxx was supposed to be blend2d was the hint I needed: #21977 |
Describe the pull request
What does your PR fix?
Fixes [osgearth] build failure x64-linux #20440
Which triplets are supported/not supported? Have you updated the CI baseline?
No
Does your PR follow the maintainer guide?
Your answerIf you have added/updated a port: Have you run
./vcpkg x-add-version --alland committed the result?<Yes / I am still working on this PR>
If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/