pastebin - collaborative debugging tool
rovema.kpaste.net RSS


RDE: buildrdecygwin.bash
Posted by Anonymous on Fri 23rd Jun 2023 15:34
raw | new post
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. #
  20. # Prebuild RDE build tools (compiler etc)
  21. # (from $ git clone https://RovemaDevelopment@dev.azure.com/RovemaDevelopment/RDE-Development/_git/Dependencies #)
  22. #
  23. git_rde_dependicies_dir='/cygdrive/h/tmp/winnfstest/hummingbirdnfstest1/rde_windows_developmement/Dependencies/win/'
  24. #git_rde_dependicies_dir='/home/roland_mainz/work/rde/build_dep/Dependencies/win/'
  25.  
  26. boostpath="${git_rde_dependicies_dir}/boost/boost_${boost_Version}/"
  27. qtpath="${git_rde_dependicies_dir}/qt/qt_${qt_Version}/"
  28.  
  29. printf $"# building with boost version %s and qt version %s\n" "$boost_Version" "qt_Version"
  30.  
  31. #
  32. # Setting-up PATH
  33. #
  34.  
  35. export PATH="$qtpath/Tools/mingw810_64/bin/:$qtpath/5.15.2/mingw81_64/bin/:$qtpath/Tools/CMake_64/bin/:$boostpath/bin/:$boostpath/lib/:$PATH"
  36.  
  37. printf $"# PATH=%s\n# Windows PATH=%s\n" "$PATH" "$(cygpath -p -w "$PATH")"
  38. printf $"# Probing PATH for tools ...\n"
  39. which -a gcc
  40. which -a g++
  41. which -a cmake
  42. which -a make
  43.  
  44. #
  45. # Build
  46. #
  47.  
  48. printf $"# Cleanup old build stuff ...\n"
  49. rm -Rf CMake* CPack* CTestTestfile.cmake app_translations.qrc cmake_install.cmake nowide tests RDS Makefile *.qm rde.rc rde_autogen tmp versioninfo.cpp
  50.  
  51. printf $"# Running build configuration via cmake ...\n"
  52. # note: Windows/minGW uses '-G "MinGW Makefiles"', while compiling with Cygwin requires '-G "Unix Makefiles"'
  53. cmake -G "Unix Makefiles" -DBOOST_ROOT="$boostpath" -DBoost_LIB_PREFIX="lib" -DBoost_USE_STATIC_LIBS=TRUE -DBoost_ARCHITECTURE="-x64" -DBUILD_TESTS=ON ".."
  54.  
  55. printf $"# Target clean ..."
  56. cmake --build . -j 1 --target clean
  57.  
  58. printf $"# Building ..."
  59. cmake --build . -j 4
  60. #cmake --build . -j 4
  61.  
  62. echo $"# finished cmake."
  63.  
  64. printf $"%s: Done.\n" "$0"
  65. exit 0
  66.  
  67. # 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