pastebin - collaborative debugging tool
rovema.kpaste.net RSS


RDE: buildrdecygwin.bash
Posted by Anonymous on Tue 20th Jun 2023 17:19
raw | new post
view followups (newest first): RDE: buildrdecygwin.bash by Anonymous
modification of post by Anonymous (view diff)

  1. #!/bin/bash
  2.  
  3. #
  4. # buildrdecygwin.bash - build ROVEMA RDE using Cygwin
  5. #
  6.  
  7. set -o errexit
  8. set -o nounset # debug
  9. set -o xtrace
  10.  
  11. printf $"%s: Start ...\n" "$0"
  12.  
  13. #
  14. # Configuration paths
  15. #
  16. boost_Version='1_71_0'
  17. qt_Version='5_15_2'
  18.  
  19. git_rde_dependicies_dir='/cygdrive/h/tmp/winnfstest/hummingbirdnfstest1/rde_windows_developmement/Dependencies/win/'
  20. #git_rde_dependicies_dir='/home/roland_mainz/work/rde/build_dep/Dependencies/win/'
  21.  
  22. boostpath="${git_rde_dependicies_dir}/boost/boost_${boost_Version}/"
  23. qtpath="${git_rde_dependicies_dir}/qt/qt_${qt_Version}/"
  24.  
  25. printf $"# building with boost version %s and qt version %s\n" "$boost_Version" "qt_Version"
  26.  
  27. #
  28. # Setting-up PATH
  29. #
  30.  
  31. export PATH="$qtpath/Tools/mingw810_64/bin/:$qtpath/5.15.2/mingw81_64/bin/:$qtpath/Tools/CMake_64/bin/:$boostpath/bin/:$boostpath/lib/:$PATH"
  32.  
  33. printf $"# PATH=%s\n# Windows PATH=%s\n" "$PATH" "$(cygpath -p -w "$PATH")"
  34. printf $"# Probing PATH for tools ...\n"
  35. which -a gcc
  36. which -a g++
  37. which -a cmake
  38. which -a make
  39.  
  40. #
  41. # Build
  42. #
  43.  
  44. printf "# Cleanup old build stuff ...\n"
  45. rm -Rf CMake* CPack* CTestTestfile.cmake app_translations.qrc cmake_install.cmake nowide tests RDS Makefile
  46.  
  47. printf "# Running build configuration via cmake ...\n"
  48. # note: Windows/minGW uses '-G "MinGW Makefiles"', while compiling with Cygwin requires '-G "Unix Makefiles"'
  49. cmake -G "Unix Makefiles" -DBOOST_ROOT="$boostpath" -DBoost_LIB_PREFIX="lib" -DBoost_USE_STATIC_LIBS=TRUE -DBoost_ARCHITECTURE="-x64" -DBUILD_TESTS=ON ".."
  50.  
  51. printf $"# Target clean ..."
  52. cmake --build . -j 1 --target clean
  53.  
  54. printf $"# Building ..."
  55. cmake --build . -j 4
  56.  
  57. echo $"# finished cmake."
  58.  
  59. printf $"%s: Done.\n" "$0"
  60. exit 0
  61.  
  62. # EOF.

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at