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

65>LINK : fatal error LNK1104: can't open “PocoFoundationd.lib” #6726

Closed
archie2010 opened this issue Feb 17, 2025 · 28 comments
Closed

65>LINK : fatal error LNK1104: can't open “PocoFoundationd.lib” #6726

archie2010 opened this issue Feb 17, 2025 · 28 comments
Labels
external-bug Bugs caused by things outside of our control - by dependencies, "upstream" in technical jargon

Comments

@archie2010
Copy link

The issue

used Visual Studio run mumble client failed with this error:

65>LINK : fatal error LNK1104: can not open “PocoFoundationd.lib”

but local Poco lib only contains PocoFoundationmd.lib

Mumble version

master

Mumble component

Client

OS

Windows

Additional information

No response

@Krzmbrzl
Copy link
Member

Seems like your build is broken. Without context it's close to impossible to tell what exactly is going on. Have you made sure that you use the correct target triplet when installing Mumble dependencies?

@archie2010
Copy link
Author

Seems like your build is broken. Without context it's close to impossible to tell what exactly is going on. Have you made sure that you use the correct target triplet when installing Mumble dependencies?

I use the correct target triplet and installed successfully,but local Poco lib only contains PocoFoundationmd.lib

vcpkg install poco --triplet x64-windows-static-md

@archie2010
Copy link
Author

Seems like your build is broken. Without context it's close to impossible to tell what exactly is going on. Have you made sure that you use the correct target triplet when installing Mumble dependencies?

It has been learnt that PocoFoundationd.lib and PocoFoundationmdd.lib are the debug versions of the library. The "md" actually means "Multi-threaded DLL" Where "multi-threaded DLL" denotes how the library links to the runtime and the final "d" denotes that its a debug build.

i don't know why it LINK PocoFoundationd.lib other than PocoFoundationmdd.lib

@Krzmbrzl
Copy link
Member

Are you also using the same triplet to compile Mumble?

@archie2010
Copy link
Author

archie2010 commented Feb 17, 2025

Are you also using the same triplet to compile Mumble?

Of course, the entire command is:

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

@archie2010
Copy link
Author

Are you also using the same triplet to compile Mumble?

Of course, the entire command is:

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

@Krzmbrzl Please help me take a look at this problem, it's driving me crazy..

@Krzmbrzl
Copy link
Member

Why are you specifying -A? That shouldn't be necessary as the architecture is set via the vcpkg triplet.

@archie2010
Copy link
Author

Why are you specifying -A? That shouldn't be necessary as the architecture is set via the vcpkg triplet.

Deleted this parameter, but it's the same issue.

@Krzmbrzl
Copy link
Member

Have you deleted the build directory and started from scratch with a cmake invocation in a fresh (empty) build directory?

@archie2010
Copy link
Author

Have you deleted the build directory and started from scratch with a cmake invocation in a fresh (empty) build directory?

Yes,of course,many times

@Krzmbrzl
Copy link
Member

How did you install the vcpkg dependencies? Any chance you have either downloaded them from our vcpkg fork and/or used our fork along with the build script inside it? If so, you can't use Debug mode as all libraries will be built in Release mode only. Hence, you also have to use Release mode when building Mumble.

@archie2010
Copy link
Author

archie2010 commented Feb 17, 2025

How did you install the vcpkg dependencies? Any chance you have either downloaded them from our vcpkg fork and/or used our fork along with the build script inside it? If so, you can't use Debug mode as all libraries will be built in Release mode only. Hence, you also have to use Release mode when building Mumble.

I downloaded them by cloning from your vcpkg fork, that's https://github.com/mumble-voip/vcpkg,and execute bootstrap-vcpkg.bat

@Krzmbrzl
Copy link
Member

And how did you install the dependencies? Manually or via the build_mumble_dependencies script? Either way, please try to see if Release mode fixes the issue.

@archie2010
Copy link
Author

archie2010 commented Feb 17, 2025

And how did you install the dependencies? Manually or via the build_mumble_dependencies script? Either way, please try to see if Release mode fixes the issue.

Manually installed the dependencies, already try Release mode, same issue. i'm very confused why did it LINK PocoFoundationd.lib other than PocoFoundationmdd.lib,i'ts supposed to link PocoFoundationmdd.lib. right ?

@Krzmbrzl
Copy link
Member

'ts supposed to link PocoFoundationmdd.lib. right ?

when using the x64-windows-static-md triplet and Debug mode, yes.

@archie2010
Copy link
Author

'ts supposed to link PocoFoundationmdd.lib. right ?

when using the x64-windows-static-md triplet and Debug mode, yes.

So is there anything I can do to fix this issue?

The directory of Poco dependencies is as follows:

D:\vcpkg\installed\x64-windows-static-md\debug\lib
PocoFoundationmdd.lib
...

D:\vcpkg\installed\x64-windows\debug\lib
PocoFoundationd.lib
...

@Krzmbrzl
Copy link
Member

D:\vcpkg\installed\x64-windows\debug\libPocoFoundationd.lib

Why do you have this one? in your vcpkg install tree? That seems to have been installed via a different triplet. If this has automatically been installed when trying to install the x64-windows-static-md version, then try explicitly setting --host-triplet to x64-windows-static-md when installing the dependencies. However, I think I would first clear all previously installed vcpkg dependencies as something seems to be broken.

@archie2010
Copy link
Author

archie2010 commented Feb 18, 2025

D:\vcpkg\installed\x64-windows\debug\libPocoFoundationd.lib

Why do you have this one? in your vcpkg install tree? That seems to have been installed via a different triplet. If this has automatically been installed when trying to install the x64-windows-static-md version, then try explicitly setting --host-triplet to x64-windows-static-md when installing the dependencies. However, I think I would first clear all previously installed vcpkg dependencies as something seems to be broken.

I clear vcpkg dependencies and installed dependencies by script. Qt dependencies version is Qt6,but our code find Qt5

installed qt5 failed:
vcpkg install qt5-base --triplet x64-windows-static-md

error: building qt5-base:x64-windows-static-md failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle qt5-base:x64-windows-static-md: 24 s
Please ensure you're using the latest port files with git pull and vcpkg update.

other all failed:
vcpkg install qt5-svg --triplet x64-windows-static-md
vcpkg install qt5-tools --triplet x64-windows-static-md
vcpkg install qt5-translations --triplet x64-windows-static-md

@Krzmbrzl
Copy link
Member

If code is still looking for Qt5, then you are likely not on Mumble's master branch. Also, don't mix using the script and not using the script (unless you understand what the script is doing and are doing the same).

@archie2010
Copy link
Author

archie2010 commented Feb 19, 2025

If code is still looking for Qt5, then you are likely not on Mumble's master branch. Also, don't mix using the script and not using the script (unless you understand what the script is doing and are doing the same).

Yes,you are right,in this case,i'm not on Mumble's master branch.

then i start all over again,cleared vcpkg dependencies, installed dependencies by script and on Mumble's master branch.

after cmake command:
cmake .. -Dstatic=ON -DVCPKG_TARGET_TRIPLET=x64-windows-static-md -DCMAKE_TOOLCHAIN_FILE=D:\vcpkg\scripts\buildsystems\vcpkg.cmake -DIce_HOME=D:\vcpkg\installed\x64-windows-static-md -DCMAKE_BUILD_TYPE=Release

run client (mumble) by Visual Studio failed with error:

LINK : fatal error LNK1104:can't open “PocoFoundation.lib”

but mumble-server by Visual Studio can run properly

@archie2010
Copy link
Author

archie2010 commented Feb 19, 2025

If code is still looking for Qt5, then you are likely not on Mumble's master branch. Also, don't mix using the script and not using the script (unless you understand what the script is doing and are doing the same).

Yes,you are right,in this case,i'm not on Mumble's master branch.

then i start all over again,cleared vcpkg dependencies, installed dependencies by script and on Mumble's master branch.

after cmake command: cmake .. -Dstatic=ON -DVCPKG_TARGET_TRIPLET=x64-windows-static-md -DCMAKE_TOOLCHAIN_FILE=D:\vcpkg\scripts\buildsystems\vcpkg.cmake -DIce_HOME=D:\vcpkg\installed\x64-windows-static-md -DCMAKE_BUILD_TYPE=Release

run client (mumble) by Visual Studio failed with error:

LINK : fatal error LNK1104:can't open “PocoFoundation.lib”

but mumble-server by Visual Studio can run properly

I try again and strictly executed the commands provided in the document. same error happen (LINK : fatal error LNK1104: can't open “PocoFoundation.lib”_)

command 1:
cmake -G "NMake Makefiles" "-DVCPKG_TARGET_TRIPLET=x64-windows-static-md" "-Dstatic=ON" "-DCMAKE_TOOLCHAIN_FILE=D:\vcpkg\scripts\buildsystems\vcpkg.cmake" "-DIce_HOME=D:\vcpkg\installed\x64-windows-static-md" "-DCMAKE_BUILD_TYPE=Release" ..

command 2:
cmake --build .

@archie2010
Copy link
Author

archie2010 commented Feb 19, 2025

It actually links to D:\vcpkg\installed\x64-windows-static-md\lib\PocoFoundationmd.lib, but the result shows an error for PocoFoundation.lib.

whole Link log :
LINK: command "D:\install\VisualStudio\2022\Community\VC\Tools\MSVC\14.43.34808\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\mumble.dir\objects1.rsp /out:....\mumble.exe /implib:mumble.lib /pdb:D:\mumble\buildRelease\mumble.pdb /version:0.0 /machine:x64 /INCREMENTAL:NO /subsystem:windows /INCREMENTAL:NO /LTCG D:\vcpkg\installed\x64-windows-static-md\lib\objects-Release\Widgets_resources_1.qt\rcc\qrc_qstyle_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\lib\objects-Release\Widgets_resources_2.qt\rcc\qrc_qstyle1_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\lib\objects-Release\Widgets_resources_3.qt\rcc\qrc_qstyle_fusion_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\lib\objects-Release\Widgets_resources_4.qt\rcc\qrc_qmessagebox_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\sqldrivers\objects-Release\QSQLiteDriverPlugin_init\QSQLiteDriverPlugin_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\iconengines\objects-Release\QSvgIconPlugin_init\QSvgIconPlugin_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\imageformats\objects-Release\QSvgPlugin_init\QSvgPlugin_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\lib\objects-Release\QWindowsIntegrationPlugin_resources_1.qt\rcc\qrc_openglblacklists_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\lib\objects-Release\QWindowsIntegrationPlugin_resources_2.qt\rcc\qrc_cursors_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\platforms\objects-Release\QWindowsIntegrationPlugin_init\QWindowsIntegrationPlugin_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\sqldrivers\objects-Release\QPSQLDriverPlugin_init\QPSQLDriverPlugin_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\lib\objects-Release\Gui_resources_1.qt\rcc\qrc_qpdf_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\lib\objects-Release\Gui_resources_2.qt\rcc\qrc_gui_shaders_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\styles\objects-Release\QModernWindowsStylePlugin_init\QModernWindowsStylePlugin_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\networkinformation\objects-Release\QNLMNIPlugin_init\QNLMNIPlugin_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\tls\objects-Release\QSchannelBackendPlugin_init\QSchannelBackendPlugin_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\tls\objects-Release\QTlsBackendOpenSSLPlugin_init\QTlsBackendOpenSSLPlugin_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\imageformats\objects-Release\QGifPlugin_init\QGifPlugin_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\imageformats\objects-Release\QICOPlugin_init\QICOPlugin_init.cpp.obj D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\imageformats\objects-Release\QJpegPlugin_init\QJpegPlugin_init.cpp.obj smallft.lib D:\vcpkg\installed\x64-windows-static-md\lib\PocoXMLmd.lib D:\vcpkg\installed\x64-windows-static-md\lib\libexpatMD.lib D:\vcpkg\installed\x64-windows-static-md\lib\PocoZipmd.lib D:\vcpkg\installed\x64-windows-static-md\lib\PocoFoundationmd.lib D:\vcpkg\installed\x64-windows-static-md\lib\pcre2-8.lib D:\vcpkg\installed\x64-windows-static-md\lib\utf8proc_static.lib D:\vcpkg\installed\x64-windows-static-md\lib\sndfile.lib D:\vcpkg\installed\x64-windows-static-md\lib\vorbisenc.lib D:\vcpkg\installed\x64-windows-static-md\lib\vorbis.lib D:\vcpkg\installed\x64-windows-static-md\lib\FLAC.lib D:\vcpkg\installed\x64-windows-static-md\lib\ogg.lib D:\vcpkg\installed\x64-windows-static-md\lib\mpg123.lib D:\vcpkg\installed\x64-windows-static-md\lib\libmp3lame-static.lib D:\vcpkg\installed\x64-windows-static-md\lib\libmpghip-static.lib ..\shared.lib D:\vcpkg\installed\x64-windows-static-md\lib\libprotobuf.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_internal_check_op.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_die_if_null.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_internal_conditions.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_internal_message.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_internal_nullguard.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_examine_stack.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_internal_format.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_internal_structured_proto.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_internal_proto.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_internal_log_sink_set.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_sink.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_entry.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_flags_internal.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_flags_marshalling.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_flags_reflection.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_flags_config.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_flags_program_name.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_flags_private_handle_accessor.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_flags_commandlineflag.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_flags_commandlineflag_internal.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_initialize.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_internal_globals.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_globals.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_vlog_config_internal.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_internal_fnmatch.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_raw_hash_set.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_hash.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_city.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_low_level_hash.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_hashtablez_sampler.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_random_distributions.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_random_seed_sequences.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_random_internal_pool_urbg.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_random_internal_randen.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_random_internal_randen_hwaes.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_random_internal_randen_hwaes_impl.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_random_internal_randen_slow.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_random_internal_platform.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_random_internal_seed_material.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_random_seed_gen_exception.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_statusor.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_status.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_cord.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_cordz_info.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_cord_internal.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_cordz_functions.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_exponential_biased.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_cordz_handle.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_crc_cord_state.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_crc32c.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_crc_internal.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_crc_cpu_detect.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_bad_optional_access.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_leak_check.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_strerror.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_str_format_internal.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_synchronization.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_stacktrace.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_symbolize.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_debugging_internal.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_demangle_internal.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_demangle_rust.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_decode_rust_punycode.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_utf8_for_code_point.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_graphcycles_internal.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_kernel_timeout_internal.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_malloc_internal.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_tracing_internal.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_time.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_civil_time.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_time_zone.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_bad_variant_access.lib D:\vcpkg\installed\x64-windows-static-md\lib\utf8_validity.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_strings.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_int128.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_strings_internal.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_string_view.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_base.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_spinlock_wait.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_throw_delegate.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_raw_logging_internal.lib D:\vcpkg\installed\x64-windows-static-md\lib\absl_log_severity.lib -ignore:4221 D:\vcpkg\installed\x64-windows-static-md\lib\Qt6Network.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\networkinformation\qnetworklistmanager.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\tls\qschannelbackend.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\tls\qopensslbackend.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6Network.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\networkinformation\qnetworklistmanager.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\tls\qschannelbackend.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\tls\qopensslbackend.lib D:\vcpkg\installed\x64-windows-static-md\lib\brotlidec.lib D:\vcpkg\installed\x64-windows-static-md\lib\brotlicommon.lib dnsapi.lib iphlpapi.lib winhttp.lib secur32.lib bcrypt.lib ncrypt.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6Xml.lib qwave.lib ..\tracy\TracyClient.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6Concurrent.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6Widgets.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\styles\qmodernwindowsstyle.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6Widgets.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\styles\qmodernwindowsstyle.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6Sql.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\sqldrivers\qsqlite.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\sqldrivers\qsqlpsql.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6Sql.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\sqldrivers\qsqlite.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\sqldrivers\qsqlpsql.lib D:\vcpkg\installed\x64-windows-static-md\lib\sqlite3.lib D:\vcpkg\installed\x64-windows-static-md\lib\libpq.lib D:\vcpkg\installed\x64-windows-static-md\lib\libssl.lib D:\vcpkg\installed\x64-windows-static-md\lib\libcrypto.lib crypt32.lib D:\vcpkg\installed\x64-windows-static-md\lib\libpgport.lib D:\vcpkg\installed\x64-windows-static-md\lib\libpgcommon.lib Secur32.lib Wldap32.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6Svg.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\iconengines\qsvgicon.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\imageformats\qsvg.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\platforms\qwindows.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6Gui.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\imageformats\qgif.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\imageformats\qico.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\imageformats\qjpeg.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6OpenGL.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6Svg.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\iconengines\qsvgicon.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\imageformats\qsvg.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\platforms\qwindows.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6Gui.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\imageformats\qgif.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\imageformats\qico.lib D:\vcpkg\installed\x64-windows-static-md\Qt6\plugins\imageformats\qjpeg.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6OpenGL.lib dwmapi.lib imm32.lib oleaut32.lib setupapi.lib shlwapi.lib winspool.lib wtsapi32.lib shcore.lib comdlg32.lib d3d9.lib uiautomationcore.lib d3d11.lib dxgi.lib dxguid.lib d3d12.lib uxtheme.lib gdi32.lib D:\vcpkg\installed\x64-windows-static-md\lib\harfbuzz.lib D:\vcpkg\installed\x64-windows-static-md\lib\libpng16.lib D:\vcpkg\installed\x64-windows-static-md\lib\freetype.lib D:\vcpkg\installed\x64-windows-static-md\lib\bz2.lib D:\vcpkg\installed\x64-windows-static-md\lib\libpng16.lib D:\vcpkg\installed\x64-windows-static-md\lib\zlib.lib D:\vcpkg\installed\x64-windows-static-md\lib\bz2.lib D:\vcpkg\installed\x64-windows-static-md\lib\brotlidec.lib D:\vcpkg\installed\x64-windows-static-md\lib\brotlicommon.lib d2d1.lib dwrite.lib D:\vcpkg\installed\x64-windows-static-md\lib\jpeg.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6Core.lib D:\vcpkg\installed\x64-windows-static-md\lib\zlib.lib mpr.lib userenv.lib advapi32.lib authz.lib kernel32.lib netapi32.lib ole32.lib user32.lib uuid.lib version.lib winmm.lib runtimeobject.lib ws2_32.lib D:\vcpkg\installed\x64-windows-static-md\lib\double-conversion.lib D:\vcpkg\installed\x64-windows-static-md\lib\icuin.lib D:\vcpkg\installed\x64-windows-static-md\lib\icuuc.lib D:\vcpkg\installed\x64-windows-static-md\lib\icudt.lib D:\vcpkg\installed\x64-windows-static-md\lib\pcre2-16.lib D:\vcpkg\installed\x64-windows-static-md\lib\zstd.lib D:\vcpkg\installed\x64-windows-static-md\lib\Qt6EntryPoint.lib shell32.lib xinputcheck\xinputcheck.lib Delayimp.lib D:\vcpkg\installed\x64-windows-static-md\lib\boost_thread-vc143-mt-x64-1_86.lib D:\vcpkg\installed\x64-windows-static-md\lib\boost_atomic-vc143-mt-x64-1_86.lib synchronization.lib D:\vcpkg\installed\x64-windows-static-md\lib\boost_chrono-vc143-mt-x64-1_86.lib D:\vcpkg\installed\x64-windows-static-md\lib\boost_system-vc143-mt-x64-1_86.lib D:\vcpkg\installed\x64-windows-static-md\lib\boost_date_time-vc143-mt-x64-1_86.lib D:\vcpkg\installed\x64-windows-static-md\lib\boost_container-vc143-mt-x64-1_86.lib D:\vcpkg\installed\x64-windows-static-md\lib\boost_regex-vc143-mt-x64-1_86.lib dbghelp.lib dxguid.lib hid.lib wintrust.lib D:\vcpkg\installed\x64-windows-static-md\lib\opus.lib speexdsp\speexdsp.lib renamenoise\renamenoise.lib D:\vcpkg\installed\x64-windows-static-md\lib\dnssd.lib avrt.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST:EMBED,ID=1" failed (exit code 1104) with the following output:
LINK : fatal error LNK1104: can't open “PocoFoundation.lib”

It actually links to D:\vcpkg\installed\x64-windows-static-md\lib\PocoFoundationmd.lib, but the result shows an error for PocoFoundation.lib.

@Krzmbrzl
Copy link
Member

Just to make sure: Have you tried building Mumble outside of VS? I.e. fully on the command line? Just to ensure that what we are seeing is not a VS issue.

@archie2010
Copy link
Author

Just to make sure: Have you tried building Mumble outside of VS? I.e. fully on the command line? Just to ensure that what we are seeing is not a VS issue.

I tried and strictly executed the commands provided in the document. same error happen (LINK : fatal error LNK1104: can't open “PocoFoundation.lib”_)

command 1:
cmake -G "NMake Makefiles" "-DVCPKG_TARGET_TRIPLET=x64-windows-static-md" "-Dstatic=ON" "-DCMAKE_TOOLCHAIN_FILE=D:\vcpkg\scripts\buildsystems\vcpkg.cmake" "-DIce_HOME=D:\vcpkg\installed\x64-windows-static-md" "-DCMAKE_BUILD_TYPE=Release" ..

command 2:
cmake --build .

@JackZhangOnly
Copy link

JackZhangOnly commented Feb 20, 2025

same process,installed dependencies by script and on Mumble's master branch.

after command:

cmake -G "Ninja" "-DVCPKG_TARGET_TRIPLET=x64-windows-static-md" "-Dstatic=ON" "-DCMAKE_TOOLCHAIN_FILE=D:\vcpkg\scripts\buildsystems\vcpkg.cmake" "-DIce_HOME=D:\vcpkg\installed\x64-windows-static-md" "-DCMAKE_BUILD_TYPE=Release" ..

cmake --build .

failed log
[441/442] Linking CXX executable mumble.exe
FAILED: mumble.exe
C:\Windows\system32\cmd.exe /C "cd . && D:\CMake\bin\cmake.exe -E vs_link_exe --intdir=src\mumble\CMakeFiles\mumble.dir --rc=C:\PROGRA2\WI3CF21\10\bin\1002611.0\x64\rc.exe --mt=C:\PROGRA2\WI3CF21\10\bin\1002611.0\x64\mt.exe --manifests -- D:\VisualStudio\2022\Community\VC\Tools\MSVC\14.43.34808\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\mumble.rsp /out:mumble.exe /implib:src\mumble\mumble.lib /pdb:mumble.pdb /version:0.0 /machine:x64 /INCREMENTAL:NO /subsystem:windows /INCREMENTAL:NO /LTCG && C:\Windows\system32\cmd.exe /C "cd /D D:\mumble\buildReleaseN\src\mumble && C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -executionpolicy Bypass -file D:/vcpkg/scripts/buildsystems/msbuild/applocal.ps1 -targetBinary D:/mumble/buildReleaseN/mumble.exe -installedDir D:/vcpkg/installed/x64-windows-static-md/bin -OutVariable out""
LINK: command "D:\VisualStudio\2022\Community\VC\Tools\MSVC\14.43.34808\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\mumble.rsp /out:mumble.exe /implib:src\mumble\mumble.lib /pdb:mumble.pdb /version:0.0 /machine:x64 /INCREMENTAL:NO /subsystem:windows /INCREMENTAL:NO /LTCG /MANIFEST:EMBED,ID=1" failed (exit code 1104) with the following output:
LINK : fatal error LNK1104: can't open“PocoFoundation.lib”
ninja: build stopped: subcommand failed.
@Krzmbrzl

@Krzmbrzl
Copy link
Member

I was able to reproduce the issue. After a bit more digging, I believe that this is microsoft/vcpkg#38462 and hence a vcpkg issue. I'll see if I can do something about it...

@Krzmbrzl
Copy link
Member

On my machine the issue seems to be resolved by updating poco from 1.14.0 to 1.14.1. I have a pending upstream PR that will update the port in vcpkg. Once that gets merged, I will update our fork accordingly.

In the meantime, you could simply apply the changes of that PR manually or just wait a couple of days...

I'll close this as an upstream issue

@Krzmbrzl Krzmbrzl added external-bug Bugs caused by things outside of our control - by dependencies, "upstream" in technical jargon and removed support labels Feb 21, 2025
@archie2010
Copy link
Author

On my machine the issue seems to be resolved by updating poco from 1.14.0 to 1.14.1. I have a pending upstream PR that will update the port in vcpkg. Once that gets merged, I will update our fork accordingly.

In the meantime, you could simply apply the changes of that PR manually or just wait a couple of days...

I'll close this as an upstream issue

Indeed, the problem has been resolved. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-bug Bugs caused by things outside of our control - by dependencies, "upstream" in technical jargon
Projects
None yet
Development

No branches or pull requests

3 participants