-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from parth-gr/master
Updating ,Steps for Installation
- Loading branch information
Showing
2 changed files
with
85 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# 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 : | ||
```powershell | ||
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: | ||
```powershell | ||
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: | ||
```powershell | ||
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) | ||
```powershell | ||
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: | ||
```powershell | ||
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 | ||
|
||
|
This file was deleted.
Oops, something went wrong.