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)
- Install Visual Studio;
- Open the VS project file OFEC.sln or OFEC.vcxproj;
- Set the Windows SDK Version and the Platform Toolset (find them in Project->Properties->General) correctly;
- 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); - Build the solution.
Linux (terminal)
- Open the terminal in the root directory of OFEC;
- Run
gcc -v
andmake -v
to make sure gcc and make have been installed. If not runsudo apt install gcc make
; - Run
make
to compile (OPTIONAL: runmake -j8 |& grep error
to compile it in parallel and grep the error informations ).
MacOS (CLion)
- Install CLion;
- Open the root directory of OFEC in CLion ;
- Make sure the CMake project has been reloaded successfully;
- Build the project.