Fahad Zubair
Jul 29, 2017 · 1 min read

Tianran Wang, Are you using 2017 or 2015? Looks like the step ‘Open cmd prompt as administrator, vcpkg integrate install’ did not work correctly.

Anyhow, can you try this workaround:

Change CMakeLists.txt file, towards the bottom to use the folder directly:

if (WIN32)
set(VCPKG_INSTALL “C:/vcpkg/installed/x86-windows”)
message(“Using vcpkg_install ${VCPKG_INSTALL}”)
include_directories(${VCPKG_INSTALL}/include)
link_directories(${VCPKG_INSTALL}/lib)
link_directories(${VCPKG_INSTALL}/debug/lib)
endif()

add_executable(ExtendedKF ${sources})

if (NOT WIN32)
target_link_libraries(ExtendedKF z ssl uv uWS)
else()
target_link_libraries(ExtendedKF ssleay32 libuv uWS ws2_32)
target_link_libraries(ExtendedKF optimized zlib )
target_link_libraries(ExtendedKF debug zlibd )
endif()

You can download this new CMakeLists.txt file from https://raw.githubusercontent.com/drganjoo/term2-setup/master/fixes/CMakeLists.txt

VS2015: Then you can regenerate the solution by deleting the build directory, creating it again and then:

cd build
cmake .. -G “Visual Studio 14”

    Fahad Zubair

    Written by