A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/aff3ct/my_project_with_aff3ct below:

aff3ct/my_project_with_aff3ct: Small code examples using AFF3CT as a library.

Using AFF3CT as a library for your codes

This repository contains some simple code examples. It helps to understand how to use the AFF3CT library in your code. The first step is to compile AFF3CT into a library.

Get the AFF3CT library:

$ git submodule update --init --recursive

Compile the library on Linux/MacOS/MinGW:

$ cd lib/aff3ct
$ mkdir build
$ cd build
$ cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-funroll-loops -march=native" -DAFF3CT_COMPILE_EXE="OFF" -DAFF3CT_COMPILE_STATIC_LIB="ON" -DAFF3CT_COMPILE_SHARED_LIB="ON"
$ make -j4

Compile the library on Windows (Visual Studio project)

$ cd lib/aff3ct
$ mkdir build
$ cd build
$ cmake .. -G"Visual Studio 15 2017 Win64" -DCMAKE_CXX_FLAGS="-D_CRT_SECURE_NO_DEPRECATE /EHsc /MP4" -DAFF3CT_COMPILE_EXE="OFF" -DAFF3CT_COMPILE_STATIC_LIB="ON" -DAFF3CT_COMPILE_SHARED_LIB="ON"
$ devenv /build Release aff3ct.sln

Now the AFF3CT library has been built in the lib/aff3ct/build folder.

The source codes of the examples are in the examples/ folder. You can go in this folder to see the next steps.

Note that those examples are documented here.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4