QuellaZhang created MESOS-10244: ----------------------------------- Summary: [MSVC] Mesos failed due to cannot open file 'libevent_pthreads.lib' and 'libevent_openssl.lib' Key: MESOS-10244 URL: https://issues.apache.org/jira/browse/MESOS-10244 Project: Mesos Issue Type: Bug Environment: VS2022 17.11.3 + windows Reporter: QuellaZhang
Hi All, We tried to build latest source code of Mesos on VS2022. It failed due to cannot open file 'libevent_pthreads.lib' and 'libevent_openssl.lib'. It can be reproduced on latest commit c1b42f7 on master branch. Could you please take a look at this isssue? Thanks a lot! *Reproduce steps:* # git clone https://github.com/apache/mesos F:\gitP\apache\mesos # Open a VS 2022 x64 command prompt as admin and browse to F:\gitP\apache\mesos # mkdir build_amd64 && pushd build_amd64 # set OPENSSL_ROOT_DIR=F:\Microsoft\vcpkg\installed\x64-windows # cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.22621.0 -DENABLE_LIBEVENT=1 -DENABLE_SSL=1 -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="C:\Program Files\Git\usr\bin" -T host=x64 .. # msbuild /m /p:Platform=x64 /p:Configuration=Debug Mesos.sln /t:Rebuild *Error:* "F:\gitP\apache\mesos\build_amd64\src\tests\mesos-tests.vcxproj.metaproj" (Rebuild target) (53) -> "F:\gitP\apache\mesos\build_amd64\src\tests\test-helper.vcxproj.metaproj" (Rebuild target) (54) -> "F:\gitP\apache\mesos\build_amd64\src\tests\test-helper.vcxproj" (Rebuild target) (104) -> LINK : fatal error LNK1104: cannot open file 'libevent_pthreads.lib' [F:\gitP\apache\mesos\build_amd64\src\tests\test-helper.vcxproj] LINK : fatal error LNK1104: cannot open file 'libevent_pthreads.lib' [F:\gitP\apache\mesos\build_amd64\src\tests\test-helper.vcxproj] "F:\gitP\apache\mesos\build_amd64\Mesos.sln" (Rebuild target) (1) -> "F:\gitP\apache\mesos\build_amd64\src\tests\mesos-tests.vcxproj.metaproj" (Rebuild target) (52) -> "F:\gitP\apache\mesos\build_amd64\src\tests\test-helper.vcxproj.metaproj" (Rebuild target) (53) -> "F:\gitP\apache\mesos\build_amd64\src\tests\test-helper.vcxproj" (Rebuild target) (103) -> LINK : fatal error LNK1104: cannot open file 'libevent_openssl.lib' [C:\gitP\apache\mesos\build_amd64\src\tests\test-helper.vcxproj] LINK : fatal error LNK1104: cannot open file 'libevent_openssl.lib' [C:\gitP\apache\mesos\build_amd64\src\tests\test-helper.vcxproj] -- This message was sent by Atlassian Jira (v8.20.10#820010)