bootstrap-vcpkg fails to build #2627
-
I am using Visual Studio 2022 on Windows 10. I download osgEarth today and ran the bootstrap-vcpkg.bat files. After several minutes of building the process failed. I could not find any osgEarth libraries or executables. The error message is shown below. there is a BitMap.cpp file in C:.ezvcpkg\2024.07.12\buildtrees\lerc\src\js_v4.0.4-d14c4168cc.clean\src\LercLib Error Message more text above this line -- Found meshoptimizer
Call Stack (most recent call first): CMake Error at C:/.ezvcpkg/2024.07.12/scripts/buildsystems/vcpkg.cmake:637 (_add_library): CMake Generate step failed. Build files cannot be regenerated correctly. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
In CMakeLists.txt line 114, it should be trying to update the submodules, did you see: also take a look in src/third_party/lerc or see if there is a lerc folder |
Beta Was this translation helpful? Give feedback.
-
Paul:
Thanks for your reply.
The line you asked about does not exist. Starting at line 111 the code is
as follows
# Update git submodules
# https://cliutils.gitlab.io/modern-cmake/chapters/projects/submodule.html
find_package(Git QUIET)
if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
message(STATUS "Submodule update")
execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --init
--recursive
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
RESULT_VARIABLE GIT_SUBMOD_RESULT)
if(NOT GIT_SUBMOD_RESULT EQUAL "0")
message(FATAL_ERROR "git submodule update --init --recursive failed
with ${GIT_SUBMOD_RESULT}, please checkout submodules")
endif()
endif()
The folder C:\osgearth\src\third_party\lerc does exist but it is empty.
I copied lerclib to C:\osgearth\src\third_party\lerc\src to see if that
helped. It mo0ved past that error but now error on
Cannot find source file:
../../third_party/lerc/src/LercLib/Lerc1Decode/BitStuffer.cpp
Bruce
…On Fri, Sep 13, 2024 at 2:40 PM Paul Levy ***@***.***> wrote:
In CMakeLists.txt line 114, it should be trying to update the submodules,
did you see:
-- Submodule update
also take a look in src/third_party/lerc or see if there is a lerc folder
—
Reply to this email directly, view it on GitHub
<#2627 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADNLDTTYCWRNNADPIBO7YP3ZWMWSHAVCNFSM6AAAAABOFS7SXKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANRUGEYTEMY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Make sure when you cloned the repository you used
|
Beta Was this translation helpful? Give feedback.
Make sure when you cloned the repository you used
--recurse-submodules
: