Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake Error Ice component not found: #6722

Closed
archie2010 opened this issue Feb 14, 2025 · 3 comments
Closed

CMake Error Ice component not found: #6722

archie2010 opened this issue Feb 14, 2025 · 3 comments
Labels

Comments

@archie2010
Copy link

The issue

CMake Error at cmake/pkg-utils.cmake:87 (message):
Ice component not found: Ice D:\CodeRTC\mumble\cmake/pkg-utils.cmake 87

I installed all zeroc-ice 、zeroc-ice-mumble lib,build project still encounter this error

vcpkg install zeroc-ice

vcpkg install zeroc-ice-mumble

Mumble version

master

Mumble component

I don't know

OS

Windows

Additional information

No response

@Krzmbrzl
Copy link
Member

vcpkg install zeroc-ice

vcpkg install zeroc-ice-mumble

Only install the latter to avoid issues. Also, check the docs which states how you have to explicitly specify the Ice path when calling cmake:
https://github.com/mumble-voip/mumble/blob/master/docs/dev/build-instructions/build_static.md

@archie2010
Copy link
Author

vcpkg install zeroc-ice

vcpkg install zeroc-ice-mumble

Only install the latter to avoid issues. Also, check the docs which states how you have to explicitly specify the Ice path when calling cmake: https://github.com/mumble-voip/mumble/blob/master/docs/dev/build-instructions/build_static.md

Thanks, -DIce_HOME explicitly specify the Ice path worked,but encountered another error.

Here is the complete command:
cmake .. -G "Visual Studio 17 2022" -A x64 -DCMAKE_TOOLCHAIN_FILE=D:\install\vcpkg\scripts\buildsystems\vcpkg.cmake -Dstatic=ON -DIce_HOME=D:\install\vcpkg\installed\x64-windows-static-md -DCMAKE_BUILD_TYPE=Debug

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIB_ODBC32
linked by target "mumble-server" in directory D:/CodeRTC/mumble157/mumble/src/murmur

@Krzmbrzl
Copy link
Member

Not sure if this is really related to the error you are seeing but you also need to set VCPKG_TARGET_TRIPLET when calling cmake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants