Re: [Passwordsafe-devel] Trouble building pwsafe 3.62.0.zip
Popular easy-to-use and secure password manager
Brought to you by:
ronys
From: Randy M. <RJ...@fi...> - 2023-05-24 17:29:11
|
Thank you for the feedback. This appears to be much more promising than the .sln file in the project folder. 1. I installed Cmake from cmake.org 2. Created _build_mfc_2022_x86 folder for VS2022 output Win32 3. Ran Configure and receive the output below. Most notably it was unable to find Kernel32.lib I don’t know what to update to fix this problem. I suspect there will be other missing .libs once I fix this unless the fix includes an additional library folder. I am new to Cmake. What should I do next? Here is the output of Configure. Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045. The CXX compiler identification is MSVC 19.36.32532.0 The C compiler identification is MSVC 19.36.32532.0 Detecting CXX compiler ABI info Detecting CXX compiler ABI info - failed Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x86/cl.exe Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x86/cl.exe - broken CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/CMakeTestCXXCompiler.cmake:60 (message): The C++ compiler "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x86/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/Projects/pwsafe-3.62.0/pwsafe-3.62.0/_build_mfc_2022_x86/CMakeFiles/CMakeScratch/TryCompile-o1uhw6 Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_62237.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=17.0 /v:n && MSBuild version 17.6.3+07e294721 for .NET Framework Build started 5/24/2023 12:47:49 PM. Project "C:\Projects\pwsafe-3.62.0\pwsafe-3.62.0\_build_mfc_2022_x86\CMakeFiles\CMakeScratch\TryCompile-o1uhw6\cmTC_62237.vcxproj" on node 1 (default targets). PrepareForBuild: Creating directory "cmTC_62237.dir\Debug\". Creating directory "C:\Projects\pwsafe-3.62.0\pwsafe-3.62.0\_build_mfc_2022_x86\CMakeFiles\CMakeScratch\TryCompile-o1uhw6\Debug\". Creating directory "cmTC_62237.dir\Debug\cmTC_62237.tlog\". InitializeBuildStatus: Creating "cmTC_62237.dir\Debug\cmTC_62237.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX64\x86\CL.exe /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /Oy- /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_62237.dir\Debug\\" /Fd"cmTC_62237.dir\Debug\vc143.pdb" /external:W1 /Gd /TP /analyze- /errorReport:queue "C:\Projects\pwsafe-3.62.0\pwsafe-3.62.0\_build_mfc_2022_x86\CMakeFiles\CMakeScratch\TryCompile-o1uhw6\testCXXCompiler.cxx" Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32532 for x86 Copyright (C) Microsoft Corporation. All rights reserved. testCXXCompiler.cxx cl /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /Oy- /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_62237.dir\Debug\\" /Fd"cmTC_62237.dir\Debug\vc143.pdb" /external:W1 /Gd /TP /analyze- /errorReport:queue "C:\Projects\pwsafe-3.62.0\pwsafe-3.62.0\_build_mfc_2022_x86\CMakeFiles\CMakeScratch\TryCompile-o1uhw6\testCXXCompiler.cxx" Link: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX64\x86\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Projects\pwsafe-3.62.0\pwsafe-3.62.0\_build_mfc_2022_x86\CMakeFiles\CMakeScratch\TryCompile-o1uhw6\Debug\cmTC_62237.exe" /INCREMENTAL /ILK:"cmTC_62237.dir\Debug\cmTC_62237.ilk" /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/Projects/pwsafe-3.62.0/pwsafe-3.62.0/_build_mfc_2022_x86/CMakeFiles/CMakeScratch/TryCompile-o1uhw6/Debug/cmTC_62237.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Projects/pwsafe-3.62.0/pwsafe-3.62.0/_build_mfc_2022_x86/CMakeFiles/CMakeScratch/TryCompile-o1uhw6/Debug/cmTC_62237.lib" /MACHINE:X86 /SAFESEH /machine:X86 cmTC_62237.dir\Debug\testCXXCompiler.obj LINK : fatal error LNK1104: cannot open file 'kernel32.lib' [C:\Projects\pwsafe-3.62.0\pwsafe-3.62.0\_build_mfc_2022_x86\CMakeFiles\CMakeScratch\TryCompile-o1uhw6\cmTC_62237.vcxproj] Done Building Project "C:\Projects\pwsafe-3.62.0\pwsafe-3.62.0\_build_mfc_2022_x86\CMakeFiles\CMakeScratch\TryCompile-o1uhw6\cmTC_62237.vcxproj" (default targets) -- FAILED. Build FAILED. "C:\Projects\pwsafe-3.62.0\pwsafe-3.62.0\_build_mfc_2022_x86\CMakeFiles\CMakeScratch\TryCompile-o1uhw6\cmTC_62237.vcxproj" (default target) (1) -> (Link target) -> LINK : fatal error LNK1104: cannot open file 'kernel32.lib' [C:\Projects\pwsafe-3.62.0\pwsafe-3.62.0\_build_mfc_2022_x86\CMakeFiles\CMakeScratch\TryCompile-o1uhw6\cmTC_62237.vcxproj] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.67 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:3 (project) Configuring incomplete, errors occurred! * Randy Martin - |