Skip to content

xmcy0011/CoffeeChat-Desktop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoffeeChat-Desktop

CoffeeChat desktop(qt5,c++) client open source project, from CoffeeChat

Build in macOS

Require

cmake: 3.14+ qt: 5.12 clang: 12.0.5+ xcode: 12.5.1+

Vcpkg

Depends

$ vcpkg install spdlog           # c++log库, see: https://github.com/gabime/spdlog
$ vcpkg install protobuf         # 3.14.0(如果版本变了,请重新生成protobuf文件), see: https://github.com/protocolbuffers/protobuf
#$ vcpkg install evpp             # c++跨平台通信库, see: https://github.com/Qihoo360/evpp
$ vcpkg install restclient-cpp   # c++ wraps libcurl for HTTP requests, see: https://github.com/mrtazz/restclient-cpp
# $ vcpkg install toml11         # toml解析库,header only, see: https://github.com/ToruNiina/toml11
# $ vcpkg install crossguid      # 跨平台guid,see: https://github.com/graeme-hill/crossguid
$ vcpkg install nlohmann-json    # json解析库,比jsoncpp好用,see: https://github.com/nlohmann/json
$ vcpkg install sqlitecpp        # sqlite3的封装库,see: https://github.com/SRombauts/SQLiteCpp
$ vcpkg install gtest            # google unit test, see: https://github.com/google/googletest

ps:在macOS上,vcpkg install protobuf安装的是静态库,在windows上,安装的是动态库,静态库需要替换为:vcpkg install protobuf:x86-windows-static

Build

$ cd mac
$ cmake -S . -B build
$ cd build && make

Build with Xcode

$ cd mac
$ cmake -G "Xcode" -DPROJECT_ARCH="x86_64" -S . -B build

open build / xocde.workspace, then select HelloChat target and run.

Build with Clion

add cmake options(Preferences>Build,Execution>CMake>CMake options):

-DCMAKE_TOOLCHAIN_FILE=[vcpkg root]/scripts/buildsystems/vcpkg.cmake
# -DCMAKE_TOOLCHAIN_FILE=/Users/xuyc/repo/github/vcpkg/scripts/buildsystems/vcpkg.cmake

About

CoffeeChat desktop(qt5,c++) client open source project, from [CoffeeChat](https://github.com/xmcy0011/CoffeeChat)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published