添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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

Building sources from ZIP file downloaded from link (Code | Download ZIP):
https://github.com/open62541/open62541/archive/refs/heads/master.zip

Platform: Windows

cmake command that creates open62541.sln file fails with options:
cmake .. -G "Visual Studio 16 2019" -A x64 -DUA_ENABLE_ENCRYPTION:STRING="OPENSSL" -DUA_ENABLE_PUBSUB=ON -DUA_ENABLE_PUBSUB_MQTT=ON

Success with options:
cmake .. -G "Visual Studio 16 2019" -A x64 -DUA_ENABLE_ENCRYPTION:STRING="OPENSSL" -DUA_ENABLE_PUBSUB=ON

Success with options:
cmake .. -G "Visual Studio 16 2019" -A x64 -DUA_ENABLE_ENCRYPTION:STRING="OPENSSL"

Success if open62541 folder was created by command:
git clone https://github.com/open62541/open62541.git

Output:

Microsoft Windows [Version 10.0.19045.2965]
(c) Microsoft Corporation. All rights reserved.

c:\ua\open62541\build>vc_env.bat
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Setting VC Environment

c:\ua\open62541\build>call C:"Program Files (x86)""Microsoft Visual Studio"\2019\Community\VC\Auxiliary\Build\vcvarsall.bat x64

** Visual Studio 2019 Developer Command Prompt v16.11.23

[vcvarsall.bat] Environment initialized for: 'x64'

c:\ua\open62541\build>cmake .. -G "Visual Studio 16 2019" -A x64 -DUA_ENABLE_ENCRYPTION:STRING="OPENSSL" -DUA_ENABLE_PUBSUB=ON -DUA_ENABLE_PUBSUB_MQTT=ON
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.29.30147.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Python3: C:/Python/Python310/python.exe (found version "3.10.8") found components: Interpreter
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.38.1.windows.1")
fatal: not a git repository (or any of the parent directories): .git
CMake Warning at tools/cmake/SetGitBasedVersion.cmake:23 (message):
Failed to determine the version from git information. Using defaults.
Call Stack (most recent call first):
CMakeLists.txt:55 (set_open62541_version)

-- open62541 Version: v1.3.5-undefined
-- CMAKE_BUILD_TYPE not given; setting to 'Debug'
-- The selected architecture is: win32
-- Submodule update
fatal: not a git repository (or any of the parent directories): .git
CMake Error at CMakeLists.txt:483 (message):
git submodule update --init --recursive failed with 128

-- Configuring incomplete, errors occurred!
See also "C:/ua/open62541/build/CMakeFiles/CMakeOutput.log".

c:\ua\open62541\build>

Description

Background Information / Reproduction Steps

Used CMake options:

cmake .. -G "Visual Studio 16 2019" -A x64 -DUA_ENABLE_ENCRYPTION:STRING="OPENSSL" -DUA_ENABLE_PUBSUB=ON -DUA_ENABLE_PUBSUB_MQTT=ON

Checklist

Please provide the following information:

  • [x ] open62541 Version (release number or git tag): Master, Downloaded ZIP
  • Other OPC UA SDKs used (client or server):
  • Operating system:
  • Logs (with UA_LOGLEVEL set as low as necessary) attached
  • Wireshark network dump attached
  • Self-contained code example attached
  • Critical issue
  • CMakeOutput.log

    The system is: Windows - 10.0.19045 - AMD64
    Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
    Compiler:
    Build flags:
    Id flags:

    The output was:
    Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework

    Build started 08.06.2023 15:11:07.
    Project "C:\ua\open62541\build\CMakeFiles\3.20.21032501-MSVC_2\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
    PrepareForBuild:
    Creating directory "Debug".
    Creating directory "Debug\CompilerIdC.tlog".
    InitializeBuildStatus:
    Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
    ClCompile:
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\" /Fd"Debug\vc142.pdb" /external:W0 /Gd /TC /FC /errorReport:queue CMakeCCompilerId.c
    CMakeCCompilerId.c
    Link:
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X64 Debug\CMakeCCompilerId.obj
    CompilerIdC.vcxproj -> C:\ua\open62541\build\CMakeFiles\3.20.21032501-MSVC_2\CompilerIdC\CompilerIdC.exe
    PostBuildEvent:
    for %%i in (cl.exe) do @echo CMAKE_C_COMPILER=%%~$PATH:i
    :VCEnd
    CMAKE_C_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe
    FinalizeBuildStatus:
    Deleting file "Debug\CompilerIdC.tlog\unsuccessfulbuild".
    Touching "Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate".
    Done Building Project "C:\ua\open62541\build\CMakeFiles\3.20.21032501-MSVC_2\CompilerIdC\CompilerIdC.vcxproj" (default targets).

    Build succeeded.
    0 Warning(s)
    0 Error(s)

    Time Elapsed 00:00:00.98

    Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"

    Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.vcxproj"

    The C compiler identification is MSVC, found in "C:/ua/open62541/build/CMakeFiles/3.20.21032501-MSVC_2/CompilerIdC/CompilerIdC.exe"

    Detecting C compiler ABI info compiled with the following output:
    Change Dir: C:/ua/open62541/build/CMakeFiles/CMakeTmp

    Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_7e7b7.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework

    Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64

    CMakeCCompilerABI.c

    cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_7e7b7.dir\Debug\" /Fd"cmTC_7e7b7.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\share\cmake-3.20\Modules\CMakeCCompilerABI.c"

    cmTC_7e7b7.vcxproj -> C:\ua\open62541\build\CMakeFiles\CMakeTmp\Debug\cmTC_7e7b7.exe