Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fantasy-peak/example
some examples of open source libraries,xmake management dependency
https://github.com/fantasy-peak/example
cpp example-project xmake
Last synced: 8 days ago
JSON representation
some examples of open source libraries,xmake management dependency
- Host: GitHub
- URL: https://github.com/fantasy-peak/example
- Owner: fantasy-peak
- License: apache-2.0
- Created: 2022-04-11T04:01:21.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-08T05:10:39.000Z (about 2 years ago)
- Last Synced: 2024-11-28T09:40:04.988Z (2 months ago)
- Topics: cpp, example-project, xmake
- Language: C++
- Homepage:
- Size: 105 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# example
```
// install mysql client
sudo yum install mysql
sudo yum install mysql++-devel.x86_64
sudo yum install -y automake
sudo yum install libuuid-devel.x86_64
sudo pip3 install conanexport CPLUS_INCLUDE_PATH="/usr/include/mysql/:$CPLUS_INCLUDE_PATH"
export LIBRARY_PATH=/usr/lib64/mysql/:$LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/lib64/mysql/:$LD_LIBRARY_PATH// install cmake
wget https://cmake.org/files/v3.23/cmake-3.23.1.tar.gz
tar -zxvf cmake-3.23.1.tar.gz
cd cmake-3.23.1
./bootstrap --prefix=~
make -j 9
make install
// or
wget https://github.com/Kitware/CMake/releases/download/v3.23.2/cmake-3.23.2-linux-x86_64.tar.gz// install xmake
// https://xmake.io/#/zh-cn/guide/installation
git clone --recursive https://github.com/xmake-io/xmake.git
cd ./xmake
git checkout 3b46d14938f11ef59a75d6df3992227a819498e1
make build
./scripts/get.sh __local__ __install_only__
source ~/.xmake/profile
// or
wget https://github.com/xmake-io/xmake/releases/download/v2.7.5/xmake-v2.7.5.xz.run
chmod 777 xmake-v2.7.5.xz.run
./xmake-v2.7.5.xz.rungit clone https://github.com/fantasy-peak/example.git
cd example && mkdir build && cd build
cmake ..
make -j8
```