- cmake (>= 2.8)
- make
- gcc/clang (need to have full C++11 support)
- cmake (>= 2.8)
- Visual Studio (>= 2015) with C++ component OR
- MSYS2
- Clone the repository:
git clone --recursive https://github.com/cuhkshenzhen/CUHKSZLib.git
- Configure and compile:
cd CUHKSZLib
mkdir build && cd build
cmake ..
make -j4
Add -DCMAKE_BUILD_TYPE=Debug or -DCMAKE_BUILD_TYPE=Release flags to cmake to specify the build type, -DSAMPLES=0 to disable building samples, -DTESTING=1 to enable building tests.
3. libcuhkszlib.a in the build directory is the library file
- Download and install
cmakefrom https://cmake.org/download/, make sure to choose the windows installer. - Make sure you have installed the Visual Studio with C++ component and it works.
- Download and install
gitfrom https://git-scm.com/downloads/, make sure to choose "Use Git from the Windows Command Prompt" during installation. - Clone the repository in command prompt with
git clone --recursive https://github.com/cuhkshenzhen/CUHKSZLib.git
- Open Cmake GUI, choose this repository as source and
CUHKSZLib/buildas build. (TODO: details and pics to be added) - Click
Configure, and then clickOpen Project - Build with Visual Studio.
- Get the library file in the
build/Debugorbuild/Releasedirectory.
- Open "MSYS2 MinGW 64-bit" shell
- Install the dependencies with
pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake git
- Clone the repository
git clone --recursive https://github.com/cuhkshenzhen/CUHKSZLib.git
- Configure and compile:
cd CUHKSZLib
mkdir build && cd build
cmake .. -G "MSYS Makefiles" -DCMAKE_MAKE_PROGRAM=mingw32-make
mingw32-make -j4
Add -DCMAKE_BUILD_TYPE=Debug or -DCMAKE_BUILD_TYPE=Release flags to cmake to specify the build type, -DSAMPLES=0 to disable building samples, -DTESTING=1 to enable building tests.
5. libcuhkszlib.a in the build directory is the library file
- Install brew
- Run
brew install doxygen - Clone the repository
- Run
doxygen Doxyfilein the repository root. - Open
docs/index.htmlwith browser.
The library file is cuhkszlib.lib if you use MSVC or libcuhkszlib.a otherwise, and the include directory is src/include.
You can also download our prebuilt library in the Release section on Github. The prebuilt package inclues library file in the lib directory and headers in the include directory. The MSVC versions are also shipped with a Visual Studio solution file.
If you are using IDEs other than Visual Studio, you can find the project file in ide-project-files directory. Currently we support CLion and Qt Creator. You need to copy the ide-project-files/src to your project directory.
For example, you are using Qt Creator with MinGW32 on Windows. You copy the contents of ide-project-files/qt directory to anywhere you like, say my-project. Then you also need to copy ide-project-files/src to myproject directory, so that my-project now has a .pro file and a src directory. Now you can download the prebuilt library: windows-x86-mingw.zip and unzip the contents to my-project.