Compiling
Now that everything is ready, it is time to get into the compiling step proper.
-
Use
cd ..
to go back to theFMT-Installation
folder. -
Clone the repository of FMT by using
git clone https://github.com/Bureau-du-Forestier-en-chef/FMT.git
-
Use
cd ./FMT
to navigate into the FMT folder downloaded from the repository of FMT. -
Copy/paste the following commands in the Windows notepad, and then replace the
-DMOSEK_DIR
parameter with the location of Mosek on your computer:
cmake CMakeLists.txt -B build/release -G "Visual Studio 16 2019" -DBUILD_TYPE=Release -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_TOOLCHAIN_FILE="../vcpkg/scripts/buildsystems/vcpkg.cmake" -DBOOST_DIR="../vcpkg/installed/x64-windows/" -DCMAKE_BUILD_TYPE=Release -DGDAL_DIR="../vcpkg/installed/x64-windows/" -DGEOS_DIR="../vcpkg/installed/x64-windows/" -DOSI_DIR="../vcpkg/installed/x64-windows/" -DPYTHON_DIR="../vcpkg/packages/python3_x64-windows/" -DMOSEK_DIR="C:/PROGRA~1/Mosek/"
cmake --build build/release --config Release
cmake --install build/release --config Release
By default, Mosek was installed in your C:/Program Files
folder on windows. This can be expressed by the path C:/PROGRA~1
to avoid the space between Program
and Files
, which can create errors.
Thus, if you installed Mosek in C:\Program Files\Mosek
, you can keep C:/PROGRA~1/Mosek/
in the commands.
- Copy/paste all of the commands that are ready in the notepad into the command prompt to start the compilation. Press enter to activate them.
If everything worked, congratulations ! Now, it leaves us with importing FMT in Python, and seeing that everything works.