You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Running vcpkg install
Detecting compiler hash for triplet x64-windows...
The following packages will be built and installed:
json-c[core]:x64-windows -> 2022-06-26#3
vcpkg-cmake[core]:x64-windows -> 2022-12-22
vcpkg-cmake-config[core]:x64-windows -> 2022-02-06#1
Additional packages (*) will be modified to complete this operation.
Restored 3 package(s) from C:\Users\mythos\AppData\Local\vcpkg\archives in 562 ms. Use --debug to see more details.
Installing 1/3 vcpkg-cmake-config:x64-windows...
Elapsed time to handle vcpkg-cmake-config:x64-windows: 20.5 ms
Installing 2/3 vcpkg-cmake:x64-windows...
Elapsed time to handle vcpkg-cmake:x64-windows: 31.2 ms
Installing 3/3 json-c:x64-windows...
Elapsed time to handle json-c:x64-windows: 94.6 ms
Total install time: 708 ms
json-c provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(json-c CONFIG REQUIRED)
target_link_libraries(main PRIVATE json-c::json-c json-c::json-c-static)
-- Running vcpkg install - done
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
-- The C compiler identification is MSVC 19.36.32532.0
-- The CXX compiler identification is MSVC 19.36.32532.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (16.3s)
-- Generating done (0.1s)
-- Build files have been written to: D:/github/openvpn-gui/out/build/x64-debug
D:\github\openvpn-gui>cmake --build --preset x64-debug
MSBuild version 17.6.3+07e294721 for .NET Framework
Checking Build System
Building Custom Rule D:/github/openvpn-gui/CMakeLists.txt
localization.c
manage.c
misc.c
openvpn.c
openvpn_config.c
options.c
proxy.c
pkcs11.c
registry.c
config_parser.c
service.c
ui_glue.c
stub.c
plap_common.c
plap_provider.c
plap_connection.c
plap_dll.c
正在生成代码...
正在创建库 D:/github/openvpn-gui/out/build/x64-debug/libopenvpn_plap.lib 和对象 D:/github/openvpn-gui/out/build/x64-debug/libo
penvpn_plap.exp
libopenvpn_plap.vcxproj -> D:\github\openvpn-gui\out\build\x64-debug\libopenvpn_plap.dll
Building Custom Rule D:/github/openvpn-gui/CMakeLists.txt
access.c
echo.c
env_set.c
localization.c
main.c
manage.c
misc.c
openvpn.c
openvpn_config.c
options.c
proxy.c
registry.c
save_pass.c
scripts.c
service.c
tray.c
viewlog.c
as.c
pkcs11.c
config_parser.c
正在生成代码...
正在创建库 D:/github/openvpn-gui/out/build/x64-debug/openvpn-gui.lib 和对象 D:/github/openvpn-gui/out/build/x64-debug/openvpn-
gui.exp
openvpn-gui.vcxproj -> D:\github\openvpn-gui\out\build\x64-debug\openvpn-gui.exe
Building Custom Rule D:/github/openvpn-gui/CMakeLists.txt
test_plap.cpp
plap_common.c
D:\github\openvpn-gui\plap\plap_common.c(40,14): warning C4996: '_wfopen': This function or variable may be unsafe. Consid
er using _wfopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\github\o
penvpn-gui\out\build\x64-debug\test_plap.vcxproj]
D:\github\openvpn-gui\plap\plap_common.c(68,30): warning C4996: 'localtime': This function or variable may be unsafe. Cons
ider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\gith
ub\openvpn-gui\out\build\x64-debug\test_plap.vcxproj]
D:\github\openvpn-gui\plap\plap_common.c(69,5): warning C4996: '_snwprintf': This function or variable may be unsafe. Cons
ider using _snwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\git
hub\openvpn-gui\out\build\x64-debug\test_plap.vcxproj]
test_plap.vcxproj -> D:\github\openvpn-gui\out\build\x64-debug\test_plap.exe
Building Custom Rule D:/github/openvpn-gui/CMakeLists.txt
D:\github\openvpn-gui>cd out\build\x64-debug
D:\github\openvpn-gui\out\build\x64-debug>gdb ./openvpn-gui.exe
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/...
"D:\github\openvpn-gui\out\build\x64-debug/./openvpn-gui.exe": not in executable format: File format not recognized
(gdb)
确认是可执行文件
D:\github\openvpn-gui\out\build\x64-debug>file openvpn-gui.exe
openvpn-gui.exe: PE32+ executable (GUI) x86-64, for MS Windows, 10 sections
D:\github\openvpn-gui>cmake -S . --preset x64-debug
Preset CMake variables:
CMAKE_BUILD_TYPE="Debug"
CMAKE_TOOLCHAIN_FILE:FILEPATH="D:/github/openvpn/openvpn-build/src/vcpkg/scripts/buildsystems/vcpkg.cmake"
-- Running vcpkg install
Detecting compiler hash for triplet x64-windows...
The following packages will be built and installed:
json-c[core]:x64-windows -> 2022-06-26#3
vcpkg-cmake[core]:x64-windows -> 2022-12-22
vcpkg-cmake-config[core]:x64-windows -> 2022-02-06#1
Additional packages (*) will be modified to complete this operation.
Restored 3 package(s) from C:\Users\mythos\AppData\Local\vcpkg\archives in 562 ms. Use --debug to see more details.
Installing 1/3 vcpkg-cmake-config:x64-windows...
Elapsed time to handle vcpkg-cmake-config:x64-windows: 20.5 ms
Installing 2/3 vcpkg-cmake:x64-windows...
Elapsed time to handle vcpkg-cmake:x64-windows: 31.2 ms
Installing 3/3 json-c:x64-windows...
Elapsed time to handle json-c:x64-windows: 94.6 ms
Total install time: 708 ms
json-c provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(json-c CONFIG REQUIRED)
target_link_libraries(main PRIVATE json-c::json-c json-c::json-c-static)
-- Running vcpkg install - done
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
-- The C compiler identification is MSVC 19.36.32532.0
-- The CXX compiler identification is MSVC 19.36.32532.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (16.3s)
-- Generating done (0.1s)
-- Build files have been written to: D:/github/openvpn-gui/out/build/x64-debug
D:\github\openvpn-gui>cmake --build --preset x64-debug
MSBuild version 17.6.3+07e294721 for .NET Framework
Checking Build System
Building Custom Rule D:/github/openvpn-gui/CMakeLists.txt
localization.c
manage.c
misc.c
openvpn.c
openvpn_config.c
options.c
proxy.c
pkcs11.c
registry.c
config_parser.c
service.c
ui_glue.c
stub.c
plap_common.c
plap_provider.c
plap_connection.c
plap_dll.c
正在生成代码...
正在创建库 D:/github/openvpn-gui/out/build/x64-debug/libopenvpn_plap.lib 和对象 D:/github/openvpn-gui/out/build/x64-debug/libo
penvpn_plap.exp
libopenvpn_plap.vcxproj -> D:\github\openvpn-gui\out\build\x64-debug\libopenvpn_plap.dll
Building Custom Rule D:/github/openvpn-gui/CMakeLists.txt
access.c
echo.c
env_set.c
localization.c
main.c
manage.c
misc.c
openvpn.c
openvpn_config.c
options.c
proxy.c
registry.c
save_pass.c
scripts.c
service.c
tray.c
viewlog.c
as.c
pkcs11.c
config_parser.c
正在生成代码...
正在创建库 D:/github/openvpn-gui/out/build/x64-debug/openvpn-gui.lib 和对象 D:/github/openvpn-gui/out/build/x64-debug/openvpn-
gui.exp
openvpn-gui.vcxproj -> D:\github\openvpn-gui\out\build\x64-debug\openvpn-gui.exe
Building Custom Rule D:/github/openvpn-gui/CMakeLists.txt
test_plap.cpp
plap_common.c
D:\github\openvpn-gui\plap\plap_common.c(40,14): warning C4996: '_wfopen': This function or variable may be unsafe. Consid
er using _wfopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\github\o
penvpn-gui\out\build\x64-debug\test_plap.vcxproj]
D:\github\openvpn-gui\plap\plap_common.c(68,30): warning C4996: 'localtime': This function or variable may be unsafe. Cons
ider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\gith
ub\openvpn-gui\out\build\x64-debug\test_plap.vcxproj]
D:\github\openvpn-gui\plap\plap_common.c(69,5): warning C4996: '_snwprintf': This function or variable may be unsafe. Cons
ider using _snwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\git
hub\openvpn-gui\out\build\x64-debug\test_plap.vcxproj]
test_plap.vcxproj -> D:\github\openvpn-gui\out\build\x64-debug\test_plap.exe
Building Custom Rule D:/github/openvpn-gui/CMakeLists.txt
D:\github\openvpn-gui>cd out\build\x64-debug
D:\github\openvpn-gui\out\build\x64-debug>gdb ./openvpn-gui.exe
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
"D:\github\openvpn-gui\out\build\x64-debug/./openvpn-gui.exe": not in executable format: File format not recognized
(gdb)
确认是可执行文件
D:\github\openvpn-gui\out\build\x64-debug>file openvpn-gui.exe
openvpn-gui.exe: PE32+ executable (GUI) x86-64, for MS Windows, 10 sections
确认编译出来可执行文件可执行
D:\github\openvpn-gui\out\build\x64-debug>.\openvpn-gui.exe --help
The text was updated successfully, but these errors were encountered: