Update README.md
refined MacOS build steps
This commit is contained in:
parent
fcabe37a28
commit
32dfd36f30
37
README.md
37
README.md
@ -24,8 +24,37 @@ Entered: Public Key Serving Mode
|
|||||||
Client connected
|
Client connected
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
|
|
||||||
|
##MacOS
|
||||||
|
```
|
||||||
|
mkdir ~/homebrew
|
||||||
|
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip-components 1 -C ~/homebrew
|
||||||
|
eval "$(~/homebrew/bin/brew shellenv)"
|
||||||
|
brew update --force --quiet
|
||||||
|
chmod -R go-w "$(brew --prefix)/share/zsh"
|
||||||
|
curl -LO https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-macos-universal.dmg
|
||||||
|
open cmake-3.31.6-macos-universal.dmg
|
||||||
|
brew install libsodium
|
||||||
|
brew install gnutls
|
||||||
|
brew install pkg-config
|
||||||
|
git clone https://github.com/zeromq/libzmq
|
||||||
|
cd libzmq
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
/Applications/CMake.app/Contents/bin/cmake .. -DENABLE_CURVE=ON -DWITH_LIBSODIUM=~/homebrew/Cellar/libsodium/1.0.20/include/sodium -DSODIUM_INCLUDE_DIRS=~/homebrew/Cellar/libsodium/1.0.20/include -DSODIUM_LIBRARIES=~/homebrew/Cellar/libsodium/1.0.20/lib/libsodium.a
|
||||||
|
make
|
||||||
|
cd ..
|
||||||
|
git clone https://github.com/zeromq/cppzmq
|
||||||
|
git clone https://github.com/oomer/bellatui.git
|
||||||
|
cd bellatui
|
||||||
|
makefile
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
##Linux
|
##Linux
|
||||||
```
|
```
|
||||||
apt install -y libzmq-dev
|
apt install -y libzmq-dev
|
||||||
@ -49,14 +78,12 @@ mkdir build
|
|||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
|
|
||||||
g++ server.cpp -o server -lzmq -Wl,-rpath,.
|
g++ bellatui.cpp -o server -lzmq -Wl,-rpath,.
|
||||||
```
|
```
|
||||||
|
|
||||||
##MacOS
|
|
||||||
```
|
|
||||||
g++ -std=c++11 server.cpp -o server -I../libzmq/include -I../cppzmq -L../libzmq/build/lib -lzmq -Wl,-rpath,.
|
|
||||||
g++ -std=c++11 server.cpp -o server -I../libzmq/include -I../cppzmq -L../libzmq/build/lib -lzmq -Wl,-rpath,.
|
|
||||||
|
|
||||||
|
# Windows
|
||||||
|
```
|
||||||
cl /std:c++17 client.cpp -Fe:client.exe -Ic:\Users\cupcake\github\vcpkg\installed\x64-windows\include\ /link c:\Users\cupcake\github\vcpkg\installed\x64-windows\lib\libzmq-mt-4_3_5.lib
|
cl /std:c++17 client.cpp -Fe:client.exe -Ic:\Users\cupcake\github\vcpkg\installed\x64-windows\include\ /link c:\Users\cupcake\github\vcpkg\installed\x64-windows\lib\libzmq-mt-4_3_5.lib
|
||||||
|
|
||||||
cl /std:c++17 server.cpp -Fe:server.exe -Ic:\Users\cupcake\github\vcpkg\installed\x64-windows\include\ /link c:\Users\cupcake\github\vcpkg\installed\x64-windows\lib\libzmq-mt-4_3_5.lib
|
cl /std:c++17 server.cpp -Fe:server.exe -Ic:\Users\cupcake\github\vcpkg\installed\x64-windows\include\ /link c:\Users\cupcake\github\vcpkg\installed\x64-windows\lib\libzmq-mt-4_3_5.lib
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user