Skip to content

Latest commit

 

History

History
85 lines (73 loc) · 4.41 KB

steps for installation.md

File metadata and controls

85 lines (73 loc) · 4.41 KB

Steps to install and build/run the Flint workspace (flint project with flint example project with added a vcpkg dependencies)

For Windows -

Prerequest: Visual Studio 2019(develop, run and debug)

Step's -

1) Moja’s​ ​vcpkg :

i.    Open Windows PowerShell, and write the commands
ii.   cd c\
iii.  New-Item -path "C:\Development\moja-global\" -type directory​ 
iv.   cd "C:\Development\moja-global\"
v.    git clone https://github.com/moja-global/vcpkg
vi.   cd .\vcpkg\​ 
vii.  .\bootstrap-vcpkg
viii. cd C:\Development\moja-global\vcpkg"​ 
ix.   vcpkg.exe install boost-test:x64-windows boost-program-options:x64-windows boost-log:x64-windows turtle:x64-windows zipper:x64-windows poco:x64-windows libpq:x64-windows gdal:x64-windows sqlite3:x64-windows boost-ublas:x64-windows 

2)FLINT installation:

i.   Open Windows PowerShell, and write the commands
ii.  cd "C:\Development\moja-global\"
iii. git clone https://github.com/moja-global/FLINT.git
iv.  cd flint/Source
v.   mkdir build
vi.  cd build
vii. cmake -G "Visual Studio 16 2019" -DCMAKE_INSTALL_PREFIX=C:/Development/Software/moja -DVCPKG_TARGET_TRIPLET=x64-windows -DENABLE_TESTS=OFF -DENABLE_MOJA_MODULES_ZIPPER=OFF -DCMAKE_TOOLCHAIN_FILE=c:\Development\moja-global\vcpkg\scripts\buildsystems\vcpkg.cmake ..

3)Cmake installation:

i.   Download from the link:https://github.com/Kitware/CMake/releases/download/v3.15.2/cmake-3.15.2-win64-x64.msi           
ii.  Launch the CMake GUI
iii. Click Browse Build… and select the folder you created above and update 'Where is the source code' (i.e. C:\Development\moja-global\FLINT\Source\build)
iv.  Click Configure , click "Generate" and open the solution
v.   Now Open the solution in visual studio and then run the local windows debugger.

4)FLINT.example installation:(Provide run environment)

i.   Open Windows PowerShell, and write the commands    
ii.  cd "C:\Development\moja-global\"
iii. git clone https://github.com/moja-global/FLINT.example.git
iv.  cd c:\Development\moja-global\FLINT.example\Source
v.   mkdir -p build
vi.  cd build
vii. cmake -G "Visual Studio 16 2019" -DCMAKE_INSTALL_PREFIX=C:\Development\Software\moja -DOPENSSL_ROOT_DIR=c:\Development\moja-global\vcpkg\installed\x64-windows -DVCPKG_TARGET_TRIPLET=x64-windows -DENABLE_TESTS=OFF -DCMAKE_TOOLCHAIN_FILE=c:\Development\moja-global\vcpkg\scripts\buildsystems\vcpkg.cmake ..
viii.Launch the CMake GUI
ix.  Click Browse Build… and select the folder you created above (i.e. c:\Development\moja-global\FLINT.example\Source\build) and update 'Where is the source code.
x.   Click “Configure” , click "Generate" and open the solution.

5)Running the code:

i. Click on debub->All_build properties page->configuration properties->Debugging
ii. make changes according to your machine path:
        # Command                    C:\Development\moja-global\FLINT\Source\build\bin\Debug\moja.cli.exe
        # Command                    Args --config config\point_example.json --config config\libs.base.win.json  --logging_config logging.debug_on.conf
        # Working Directory          $(SolutionDir)\..\..\Run_Env
        # Environment                C:\Development\moja-global\vcpkg\installed\x64-windowsPath\debug\bin;C:\Development\moja-global\FLINT\Source\build\bin\Debug;%PATH%
                                     LOCAL_LIBS=$(OutDir) 
iii. Open point_example.json : make changes : on line 2 add
                           "Libraries": {
                                  "moja.flint.example.base": {
                                           "library": "moja.flint.example.based.dll",
                                           "path": "c:/Development/moja-global/FLINT.example/Source/build/bin/Debug",
                                           "type": "external"
                                              }
                                         };
                     
iv.  Run run the local windows debugger , you will see the output and json file will be made in your run_enviornment folder.

For Environment: Docker -

Upcomming

For more detail information

References :

https://github.com/moja-global/FLINT/blob/master/README.md

https://github.com/moja-global/FLINT.example/blob/master/README.md

https://github.com/moja-global/FLINT/blob/master/How_to_use_FLINT/1-draft-build-moja-base-libraries.pdf