FlexSEA Wiki

A WEARABLE ROBOTICS TOOLKIT

User Tools

Site Tools


build_fx_plan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
build_fx_plan [2019/07/25 16:21]
jfduval [How to build the libraries]
build_fx_plan [2019/10/08 14:12] (current)
rqurashi [Debug Build]
Line 1: Line 1:
 ====== Building fx_plan_stack from sources ====== ====== Building fx_plan_stack from sources ======
 +
 +This page will demonstrate how to compile the Windows libraries, and how to cross-compile the Raspberry Pi librairies from a Windows machine.
  
 ===== Requirements ===== ===== Requirements =====
 +
   * Git (version >= 1.47, we recommend using the latest stable version available on your platform)   * Git (version >= 1.47, we recommend using the latest stable version available on your platform)
   * Bash (Git bash works on Windows , just make sure it is the default to run .sh files)   * Bash (Git bash works on Windows , just make sure it is the default to run .sh files)
Line 8: Line 11:
   * Ninja (version >= 1.3, can be either 32 or 64 bit version based on your system'​s [[https://​support.microsoft.com/​en-us/​help/​827218/​how-to-determine-whether-a-computer-is-running-a-32-bit-version-or-64|architecture]]) ​   * Ninja (version >= 1.3, can be either 32 or 64 bit version based on your system'​s [[https://​support.microsoft.com/​en-us/​help/​827218/​how-to-determine-whether-a-computer-is-running-a-32-bit-version-or-64|architecture]]) ​
     * We use version 1.90, which can be found at [[https://​github.com/​ninja-build/​ninja/​releases]]     * We use version 1.90, which can be found at [[https://​github.com/​ninja-build/​ninja/​releases]]
-  * GCC 7.3+  * GCC 7.3. Do not use any other version.
  
  
Line 29: Line 32:
  
 =====How to build the libraries===== =====How to build the libraries=====
-  - From your gitBash ​console+  - From your git bash console
   - Start from a fresh version of Plan GUI <​code>​ git clone --recursive https://​github.com/​DephyInc/​plan_3_0.git </​code>​   - Start from a fresh version of Plan GUI <​code>​ git clone --recursive https://​github.com/​DephyInc/​plan_3_0.git </​code>​
   - Change directory to the cloned Plan GUI repo <​code>​ cd plan_3_0/ </​code>​   - Change directory to the cloned Plan GUI repo <​code>​ cd plan_3_0/ </​code>​
Line 37: Line 40:
 [84/84] Linking CXX shared library libs\libfx_plan_stack.dll [84/84] Linking CXX shared library libs\libfx_plan_stack.dll
 </​code>​ </​code>​
 +
 +====Debug Build====
 +
 +If you wish to build a plan stack with debug info you can add one of these to the CMakeLists.txt:​
 +
 +<​code>​ set(CMAKE_BUILD_TYPE DEBUG) </​code>​
 +
 +<​code>​ set(CMAKE_BUILD_TYPE RELWITHDEBINFO) </​code>​
 +
 +To enforce release build:
 +<​code>​ set(CMAKE_BUILD_TYPE RELEASE) </​code>​
  
 Note: assuming that you have added your variables to the path, mentions of missing compilers can typically be resolved by restarting your computer. Note: assuming that you have added your variables to the path, mentions of missing compilers can typically be resolved by restarting your computer.
Line 78: Line 92:
   - For Windows, for all CMake steps, add -G "MinGW Makefiles"​. Instead of simply calling <​code>​cmake ..</​code>​ call <​code>​cmake .. -G "MinGW Makefiles"</​code>​   - For Windows, for all CMake steps, add -G "MinGW Makefiles"​. Instead of simply calling <​code>​cmake ..</​code>​ call <​code>​cmake .. -G "MinGW Makefiles"</​code>​
   - If '​make'​ doesn'​t work try using '​mingw32-make.exe'​ instead.   - If '​make'​ doesn'​t work try using '​mingw32-make.exe'​ instead.
-  - This repo includes an Eclipse .cproject file; you can use use that instead of CMake 
build_fx_plan.1564071711.txt.gz ยท Last modified: 2019/07/25 16:21 by jfduval