Difference between
modified post d09cb by Anonymous on Fri 23rd Jun 2023 15:34
original post cf4281 by Anonymous on Wed 21st Jun 2023 16:07
Download diff
Show
old version |
new version |
both versions
| 1 | 1 | #!/bin/bash | |
| 2 | 2 | ||
| 3 | 3 | # | |
| 4 | 4 | # buildrdecygwin.bash - build ROVEMA RDE using Cygwin | |
| 5 | 5 | # | |
| 6 | 6 | ||
| 7 | 7 | set -o errexit | |
| 8 | 8 | set -o nounset # debug | |
| 9 | 9 | set -o xtrace | |
| 10 | 10 | ||
| 11 | 11 | printf $"%s: Start ...\n" "$0" | |
| 12 | 12 | ||
| 13 | 13 | # | |
| 14 | 14 | # Configuration paths | |
| 15 | 15 | # | |
| 16 | 16 | boost_Version='1_71_0' | |
| 17 | 17 | qt_Version='5_15_2' | |
| 18 | 18 | ||
| 19 | 19 | # | |
| 20 | 20 | # Prebuild RDE build tools (compiler etc) | |
| 21 | 21 | # (from $ git clone https://RovemaDevelopment@dev.azure.com/RovemaDevelopment/RDE-Development/_git/Dependencies #) | |
| 22 | 22 | # | |
| 23 | 23 | git_rde_dependicies_dir='/cygdrive/h/tmp/winnfstest/hummingbirdnfstest1/rde_windows_developmement/Dependencies/win/' | |
| 24 | 24 | #git_rde_dependicies_dir='/home/roland_mainz/work/rde/build_dep/Dependencies/win/' | |
| 25 | 25 | ||
| 26 | 26 | boostpath="${git_rde_dependicies_dir}/boost/boost_${boost_Version}/" | |
| 27 | 27 | qtpath="${git_rde_dependicies_dir}/qt/qt_${qt_Version}/" | |
| 28 | 28 | ||
| 29 | 29 | printf $"# building with boost version %s and qt version %s\n" "$boost_Version" "qt_Version" | |
| 30 | 30 | ||
| 31 | 31 | # | |
| 32 | 32 | # Setting-up PATH | |
| 33 | 33 | # | |
| 34 | 34 | ||
| 35 | 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 | 36 | ||
| 37 | 37 | printf $"# PATH=%s\n# Windows PATH=%s\n" "$PATH" "$(cygpath -p -w "$PATH")" | |
| 38 | 38 | printf $"# Probing PATH for tools ...\n" | |
| 39 | 39 | which -a gcc | |
| 40 | 40 | which -a g++ | |
| 41 | 41 | which -a cmake | |
| 42 | 42 | which -a make | |
| 43 | 43 | ||
| 44 | 44 | # | |
| 45 | 45 | # Build | |
| 46 | 46 | # | |
| 47 | 47 | ||
| 48 | - | printf "# Cleanup old build stuff ...\n" | |
| 48 | + | printf $"# Cleanup old build stuff ...\n" | |
| 49 | 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 | 50 | ||
| 51 | - | printf "# Running build configuration via cmake ...\n" | |
| 51 | + | printf $"# Running build configuration via cmake ...\n" | |
| 52 | 52 | # note: Windows/minGW uses '-G "MinGW Makefiles"', while compiling with Cygwin requires '-G "Unix Makefiles"' | |
| 53 | 53 | cmake -G "Unix Makefiles" -DBOOST_ROOT="$boostpath" -DBoost_LIB_PREFIX="lib" -DBoost_USE_STATIC_LIBS=TRUE -DBoost_ARCHITECTURE="-x64" -DBUILD_TESTS=ON ".." | |
| 54 | 54 | ||
| 55 | 55 | printf $"# Target clean ..." | |
| 56 | 56 | cmake --build . -j 1 --target clean | |
| 57 | 57 | ||
| 58 | 58 | printf $"# Building ..." | |
| 59 | 59 | cmake --build . -j 4 | |
| 60 | 60 | #cmake --build . -j 4 | |
| 61 | 61 | ||
| 62 | 62 | echo $"# finished cmake." | |
| 63 | 63 | ||
| 64 | 64 | printf $"%s: Done.\n" "$0" | |
| 65 | 65 | exit 0 | |
| 66 | 66 | ||
| 67 | 67 | # EOF. | |
| 68 | 68 |
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.
rovema.kpaste.net RSS