Hi,

I am currently enjoying two build problems when using the build.sh script:

There are errors while building libdivecomputer, it tries also to build examples/dctool_parse.c where in calls of the type VENDOR_MODEL_parser_create a fourth parameter “serial” is missing. But I guess since this is an example this is save to ignore.

More serious is in subsurface/scripts/build.sh

530c3a38 (Dirk Hohndel             2015-08-16 16:56:56 -0700 142) if [ $PLATFORM = Darwin ] ; then
2b1812f2 (Dirk Hohndel             2016-03-03 14:32:23 -0800 143)       if [ -d "~/Qt/5.5" ] ; then
2b1812f2 (Dirk Hohndel             2016-03-03 14:32:23 -0800 144)               export CMAKE_PREFIX_PATH=~/Qt/5.5/clang_64/lib/cmake
2b1812f2 (Dirk Hohndel             2016-03-03 14:32:23 -0800 145)       elif [ -d "~/Qt/5.6" ] ; then
2b1812f2 (Dirk Hohndel             2016-03-03 14:32:23 -0800 146)               export CMAKE_PREFIX_PATH=~/Qt/5.6/clang_64/lib/cmake
2b1812f2 (Dirk Hohndel             2016-03-03 14:32:23 -0800 147)       else
2b1812f2 (Dirk Hohndel             2016-03-03 14:32:23 -0800 148)               echo "cannot find Qt 5.5 or 5.6 in ~/Qt"
2b1812f2 (Dirk Hohndel             2016-03-03 14:32:23 -0800 149)               exit 1
2b1812f2 (Dirk Hohndel             2016-03-03 14:32:23 -0800 150)       fi
530c3a38 (Dirk Hohndel             2015-08-16 16:56:56 -0700 151) fi

This does not find ~/Qt/5.5 for me on my Macs.

I really don’t speak shell but it seems in that in the file test ~ is not interpolated properly. If I replace it by $HOME it works. Here is a patch that does this.

Best
Robert

From 869ced6d263877e59d32f8efaf531212e088008f Mon Sep 17 00:00:00 2001
From: "Robert C. Helling" <[email protected]>
Date: Tue, 15 Mar 2016 11:28:25 +0100
Subject: [PATCH 2/2] Replace ~ by $HOME in build.sh

Somehow the file test with ~ interpolation does not work

Signed-off-by: Robert C. Helling <[email protected]>
---
 scripts/build.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/build.sh b/scripts/build.sh
index e4164db..122abd4 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -140,9 +140,9 @@ fi
 mkdir -p build
 cd build
 if [ $PLATFORM = Darwin ] ; then
-       if [ -d "~/Qt/5.5" ] ; then
+       if [ -d "$HOME/Qt/5.5" ] ; then
                export CMAKE_PREFIX_PATH=~/Qt/5.5/clang_64/lib/cmake
-       elif [ -d "~/Qt/5.6" ] ; then
+       elif [ -d "$HOME/Qt/5.6" ] ; then
                export CMAKE_PREFIX_PATH=~/Qt/5.6/clang_64/lib/cmake
        else
                echo "cannot find Qt 5.5 or 5.6 in ~/Qt"
-- 
2.5.4 (Apple Git-61)



-- 
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling     Elite Master Course Theoretical and Mathematical Physics
                      Scientific Coordinator
                      Ludwig Maximilians Universitaet Muenchen, Dept. Physik
                      Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339
                      http://www.atdotde.de

Enhance your privacy, use cryptography! My PGP keys have fingerprints
A9D1 A01D 13A5 31FA 6515  BB44 0820 367C 36BC 0C1D    and
DCED 37B6 251C 7861 270D  5613 95C7 9D32 9A8D 9B8F





Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to