Building on Microsoft Windows: Difference between revisions

Jump to navigation Jump to search
→‎Building natively (MSYS2): Add note about PERL5SHELL environment variable
(→‎Building natively (MSYS2): Fix make command erroneously copied as-is from GitHub-CI build rule)
(→‎Building natively (MSYS2): Add note about PERL5SHELL environment variable)
(One intermediate revision by the same user not shown)
Line 103: Line 103:
Using ccache is optional. It speeds up compilation time but needs several GiB free disk space for its cache. If disk space is an issue, this step can be skipped. To prepend the path to the ccache helper scripts to the front of the PATH variable, add the following line near the end of the {{Path|.bash_profile}} file in your MSYS2 {{Path|$HOME}} directory:
Using ccache is optional. It speeds up compilation time but needs several GiB free disk space for its cache. If disk space is an issue, this step can be skipped. To prepend the path to the ccache helper scripts to the front of the PATH variable, add the following line near the end of the {{Path|.bash_profile}} file in your MSYS2 {{Path|$HOME}} directory:
<syntaxhighlight lang="bash">export PATH="/mingw64/lib/ccache/bin:$PATH"</syntaxhighlight>
<syntaxhighlight lang="bash">export PATH="/mingw64/lib/ccache/bin:$PATH"</syntaxhighlight>
Additionally, add the following line to the {{Path|.bash_profile}} file in your MSYS2 {{Path|$HOME}} directory to allow successfully calling programs from perl scripts:
<syntaxhighlight lang="bash">export PERL5SHELL="bash -l -c"</syntaxhighlight>


Like installing the build dependencies, this has to be done only once.
Like installing the build dependencies, this has to be done only once.
Line 123: Line 126:
   ac_cv_search_tputs=-ltermcap</syntaxhighlight>
   ac_cv_search_tputs=-ltermcap</syntaxhighlight>


And build with the following flags:
And build with the following command:
<syntaxhighlight lang="bash">make all -j8 \
<syntaxhighlight lang="bash">make all -j8</syntaxhighlight>
  FLTK_LIBS="-lfltk_gl -lopengl32 -lglu32 -lfltk -lpthread"
</syntaxhighlight>
If you didn't build with FLTK, omit overriding the respective flag.


Octave doesn't run correctly from the MSYS2 shell due to issues with readline and backslash as a file separator. To be able to work with it anyway, install it with the following commands (from the MSYS2 shell in {{Path|.build}}):
Octave doesn't run correctly from the MSYS2 shell due to issues with readline and backslash as a file separator. To be able to work with it anyway, install it with the following commands (from the MSYS2 shell in {{Path|.build}}):
216

edits

Navigation menu