cesium-native icon indicating copy to clipboard operation
cesium-native copied to clipboard

linux_x64 failed to run

Open dickzhang opened this issue 9 months ago • 3 comments

Image

how to solve…

dickzhang avatar Apr 01 '25 11:04 dickzhang

@dickzhang Thanks for the report! Do you mind telling us the version of your compiler (run g++ --version) and the version of CMake you're using (run cmake --version)? Do you have multiple compilers or compiler versions installed? (For example, you also have clang installed, or you have GCC 13 and 14 both installed)

You can try clearing out your ezvcpkg directory and your CMake build directory and running it again. You can find your ezvcpkg directory in the output of your CMake configure command (cmake -B build -S ., for example) in the lines that look like:

-- EZVCPKG initializing
        commit:     2024.11.16
        repository: https://github.com/microsoft/vcpkg.git
        local dir:  /home/ashley/.ezvcpkg/2024.11.16

Deleting that "local dir" folder and running the configure command again will cause the packages to be redownloaded and built, which could resolve the error. However, errors like these can often be a result of differing compilers or compiler versions. If vcpkg is using a different compiler than is being used to build cesium-native, this error could result.

azrogers avatar Apr 01 '25 17:04 azrogers

I really feel your reply, My current g++ version is 9.3.0 and Cmake version is 3.16.3 without clang installed Now I have compiled a set of cesium_native libraries on linux_x64 devices, and cesium-native tags are 0.40.1 Then I use a c++ project, rely on these. A static library, call the interface inside cesium, compiler will report an error, I do not know how to solve?

dickzhang avatar Apr 02 '25 05:04 dickzhang