2018年6月21日 星期四

C++ with NSQ and Visual Studio and vcpkg



vcpkg
https://www.jianshu.com/p/f06b8f77bc34
git clone https://github.com/Microsoft/vcpkg.git
powershell -exec bypass scripts\bootstrap.ps1
vcpkg.exe integrate install
vcpkg.exe search sqlite
vcpkg.exe install sqlite3 boost
vcpkg.exe list
vcpkg.exe install sqlite3:x64-windows

#include <sqlite3.h>
#include <iostream>
void main() {
std::cout << sqlite3_libversion() << "\n";
std::cin.get();
}

cmake (may not required)
Download cmake-3.8.0-win64-x64.msi with "Add CMake to the system PATH for all users"


getopt.h
https://github.com/skandhurkat/Getopt-for-Visual-Studio

https://github.com/Qihoo360/evpp/blob/master/docs/quick_start_windows_with_visualstudio.md

1. run bat file to generate vcpkg.exe

vcpkg install gflags:x64-windows glog:x64-windows openssl:x64-windows libevent:x64-windows thrift:x64-windows
vcpkg install evpp:x64-windows





Simplest


git clone https://github.com/Microsoft/vcpkg.git (so that C:\d\git\vcpkg\vcpkg.exe)
powershell -exec bypass scripts\bootstrap.ps1
vcpkg install evpp:x64-windows

沒有留言:

張貼留言

2023 Promox on Morefine N6000 16GB 512GB

2023 Promox on Morefine N6000 16GB 512GB Software Etcher 100MB (not but can be rufus-4.3.exe 1.4MB) Proxmox VE 7.4 ISO Installer (1st ISO re...