pastebin - collaborative debugging tool
rovema.kpaste.net RSS


RDE: buildrdecygwin.bash
Posted by Anonymous on Wed 26th Jul 2023 18:20
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. #
  8. # Usage:
  9. # mkdir try10_rde_new_rds/
  10. # cd try10_rde_new_rds
  11. # git clone --recurse-submodules https://RovemaDevelopment@dev.azure.com/RovemaDevelopment/RDE-Development/_git/RDE-Development
  12. # cd RDE-Development/
  13. # mkdir build_windows4
  14. # cd build_windows4/
  15. # cp .../.../mydir/buildrdecygwin.bash .
  16. # time nice bash buildrdecygwin.bash 2>&1 | tee -a buildlog.log
  17. #
  18.  
  19. set -o errexit
  20. set -o nounset # debug
  21. set -o xtrace
  22.  
  23. printf $"%s: Start ...\n" "$0"
  24.  
  25. #
  26. # Configuration paths
  27. #
  28. boost_Version='1_71_0'
  29. qt_Version='5_15_2'
  30.  
  31. #
  32. # Prebuild RDE build tools (compiler etc)
  33. # (from $ git clone https://RovemaDevelopment@dev.azure.com/RovemaDevelopment/RDE-Development/_git/Dependencies #)
  34. #
  35. git_rde_dependicies_dir='/cygdrive/h/tmp/winnfstest/hummingbirdnfstest1/rde_windows_developmement/Dependencies/win/'
  36. #git_rde_dependicies_dir='/home/roland_mainz/work/rde/build_dep/Dependencies/win/'
  37.  
  38. boostpath="${git_rde_dependicies_dir}/boost/boost_${boost_Version}/"
  39. qtpath="${git_rde_dependicies_dir}/qt/qt_${qt_Version}/"
  40.  
  41. printf $"# building with boost version %s and qt version %s\n" "$boost_Version" "qt_Version"
  42.  
  43. #
  44. # Setting-up PATH
  45. #
  46.  
  47. export PATH="$qtpath/Tools/mingw810_64/bin/:$qtpath/5.15.2/mingw81_64/bin/:$qtpath/Tools/CMake_64/bin/:$boostpath/bin/:$boostpath/lib/:$PATH"
  48.  
  49. printf $"# PATH=%s\n# Windows PATH=%s\n" "$PATH" "$(cygpath -p -w "$PATH")"
  50. printf $"# Probing PATH for tools ...\n"
  51. which -a gcc
  52. which -a g++
  53. which -a cmake
  54. which -a make
  55.  
  56. #
  57. # Build
  58. #
  59.  
  60. printf $"# Cleanup old build stuff ...\n"
  61. rm -Rf CMake* CPack* CTestTestfile.cmake app_translations.qrc cmake_install.cmake nowide tests RDS Makefile *.qm rde.rc rde_autogen tmp versioninfo.cpp
  62.  
  63. printf $"# Running build configuration via cmake ...\n"
  64. # note: Windows/minGW uses '-G "MinGW Makefiles"', while compiling with Cygwin requires '-G "Unix Makefiles"'
  65. cmake -G "Unix Makefiles" -DBOOST_ROOT="$boostpath" -DBoost_LIB_PREFIX="lib" -DBoost_USE_STATIC_LIBS=TRUE -DBoost_ARCHITECTURE="-x64" -DBUILD_TESTS=ON ".."
  66.  
  67. printf $"# Target clean ..."
  68. cmake --build . -j 1 --target clean
  69.  
  70. printf $"# Building ..."
  71. cmake --build . -j 4
  72.  
  73. echo $"# finished cmake."
  74.  
  75. printf $"%s: Done.\n" "$0"
  76. exit 0
  77.  
  78. # 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