microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.2k stars 6.39k forks source link

[glib-static(gtkmm)] build failure #10589

Open OptimizedIAS opened 4 years ago

OptimizedIAS commented 4 years ago

Host Environment

To Reproduce `./vcpkg install gtkmm:x86-windows-static

Failure logs

Starting package 1/21: glib:x86-windows-static
Building package glib[core]:x86-windows-static...
-- Using community triplet x86-windows-static. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\Users\Optimizer\Downloads\Compressed\vcpkg-master\vcpkg-master\triplets\community\x86-windows-static.cmake
-- Note: glib only supports dynamic library linkage. Building dynamic library.
CMake Error at scripts/cmake/vcpkg_check_linkage.cmake:42 (message):
  Refusing to build unexpected dynamic library against the static CRT.  If
  this is desired, please configure your triplet to directly request this
  configuration.
Call Stack (most recent call first):
  ports/glib/portfile.cmake:6 (vcpkg_check_linkage)
  scripts/ports.cmake:90 (include)

Error: Building package glib:x86-windows-static failed with: BUILD_FAILED

Additional context

I understand that glib can't be build as a static lib on windows. I wanna know how to do this.

"Refusing to build unexpected dynamic library against the static CRT. If this is desired, please configure your triplet to directly request this configuration"

Basically, I want to build gtkmm as a static library while allowing dependencies that should be built as dynamic, to do so.

LilyWangL commented 4 years ago

Thanks for posting issue. Port gtkmm doesn't support static build for now, it will will come true in the future.