OFEC logo OFEC

OFEC does not rely on libraries other than C++ STL 14. So to intall OFEC, just download or git clone it from its GitHub repo, and compile it by the following recommended ways:

Windows (Visual Studio)

  1. Install Visual Studio;
  2. Open the VS project file OFEC.sln or OFEC.vcxproj;
  3. Set the Windows SDK Version and the Platform Toolset (find them in Project->Properties->General) correctly;
  4. Set the Object File Name (find it in Project->Properties->C/C++->Output Files) to $(IntDir)/%(RelativeDir)/ (NECESSARY, there exist source files with the same name);
  5. Build the solution.

Linux (terminal)

  1. Open the terminal in the root directory of OFEC;
  2. Run gcc -v and make -v to make sure gcc and make have been installed. If not run sudo apt install gcc make;
  3. Run make to compile (OPTIONAL: run make -j8 |& grep error to compile it in parallel and grep the error informations ).

MacOS (CLion)

  1. Install CLion;
  2. Open the root directory of OFEC in CLion ;
  3. Make sure the CMake project has been reloaded successfully;
  4. Build the project.