pastebin - collaborative debugging tool
rovema.kpaste.net RSS

Difference between
modified post 8b06f0c by Anonymous on Tue 20th Jun 2023 17:19
original post af0cb23da by Anonymous on Tue 30th May 2023 11:26
Download diff
Show old version | new version | both versions

    
11
#!/bin/bash
22
33
#
44
# buildrdecygwin.bash - build ROVEMA RDE using Cygwin
55
#
66
77
set -o errexit
88
set -o nounset # debug
99
set -o xtrace
1010
11+
printf $"%s: Start ...\n" "$0"
1312
14-
git_rde_dependicies_dir='/cygdrive/c/cygwin64/home/roland.mainz/work/rde/bins/Dependencies/win/'
13+
#
14+
# Configuration paths
1518
19+
git_rde_dependicies_dir='/cygdrive/h/tmp/winnfstest/hummingbirdnfstest1/rde_windows_developmement/Dependencies/win/'
1622
boostpath="${git_rde_dependicies_dir}/boost/boost_${boost_Version}/"
1723
qtpath="${git_rde_dependicies_dir}/qt/qt_${qt_Version}/"
1824
1925
printf $"# building with boost version %s and qt version %s\n" "$boost_Version" "qt_Version"
2026
21-
export PATH="$qtpath/Tools/mingw810_64/bin:$qtpath/5.15.2/mingw81_64/bin:$qtpath/Tools/CMake_64/bin:$boostpath/bin:$boostpath/lib:$PATH"
27+
#
28+
# Setting-up PATH
2230
23-
printf $"# Probing PATH for tools...\n"
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"
2632
27-
printf $"mkdir \$(Build.SourcesDirectory)\build | cd build\n"
33+
printf $"# PATH=%s\n# Windows PATH=%s\n" "$PATH" "$(cygpath -p -w "$PATH")"
34+
printf $"# Probing PATH for tools ...\n"
2839
29-
printf "# Running build configuration via cmake\n"
40+
#
30-
cmake -G "MinGW Makefiles" -DBOOST_ROOT="$boostpath" -DBoost_LIB_PREFIX="lib" -DBoost_USE_STATIC_LIBS=TRUE -DBoost_ARCHITECTURE="-x64" -DBUILD_TESTS=ON ".."
41+
# Build
42+
#
3143
32-
printf $"# Building..."
44+
printf "# Cleanup old build stuff ...\n"
33-
cmake --build . -j 1
45+
rm -Rf CMake* CPack* CTestTestfile.cmake app_translations.qrc cmake_install.cmake nowide tests RDS Makefile
3446
35-
echo "finished cmake"
47+
printf "# Running build configuration via cmake ...\n"
48+
# note: Windows/minGW uses '-G "MinGW Makefiles"', while compiling with Cygwin requires '-G "Unix Makefiles"'
3650
51+
printf $"# Target clean ..."
3753
38-
# EOF.
54+
printf $"# Building ..."
55+
cmake --build . -j 4
3956
57+
echo $"# finished cmake."
4058
41-
59+
printf $"%s: Done.\n" "$0"
42-
60+
exit 0
4361
44-
62+
# EOF.
4563

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