<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Sorry, on my phone.<br>Blow away your build directory and call build.sh from the directory above Subsurface with the path set up correctly for your Qt version.<br>That will fix all of the build time and run time issues<br><br>The loss of gas info is very scary. If this is in git then you know which exact version wrote the bad data. Please let us know so we can track that down<br><br>/D<br><br><div class="gmail_quote">On January 3, 2020 4:33:09 PM PST, Robert Helling <helling@atdotde.de> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<div class=""><br class=""></div><div class="">after far too many weeks without any reasonable amount of time to worry about Subsurface, the new year has provided me with some hours of free time to catch up and hopefully come up to speed again. By now, I can build again both desktop as well as mobile-on-desktop (have not tried to build mobile but that used to work with the occasional code signing problem). But there are a few annoyances I have not been able to overcome. For all of them, I at least have work arounds but I would like to list them here as maybe anybody of you has any idea how to deal with them.</div><div class=""><br class=""></div><div class="">Everything I do here is on MacOS Mojave. Hombrew should be up to date.</div><div class=""><br class=""></div><div class="">To be able to build a working mobile on desktop, my Qt version was too old. I cannot recall which version I tried, besides some older ones, I had 5.10 and 5.12 installed, but now with 5.14 it works (™).</div><div class=""><br class=""></div><div class="">I also had to update Qt Creator to make the debugger start. It actually shows source code and variables but breakpoints seem not to work (but I tried only briefly).</div><div class=""><br class=""></div><div class="">When building from within Creator, the binary dies with </div><div class=""><br class=""></div><div class=""><div style="margin: 0px;" class=""></div></div><blockquote type="cite" class=""><div class=""><div style="margin: 0px;" class=""><!--StartFragment-->objc[85638]: Class QMacAutoReleasePoolTracker is implemented in both /Users/Helling/Qt/5.12.0/clang_64/lib/QtCore.framework/Versions/5/QtCore (0x102539068) and /Users/Helling/mobile/subsurface/build-mobile/Subsurface-mobile.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore (0x107875068). One of the two will be used. Which one is undefined.</div><div style="margin: 0px;" class="">objc[85638]: Class QT_ROOT_LEVEL_POOL__THESE_OBJECTS_WILL_BE_RELEASED_WHEN_QAPP_GOES_OUT_OF_SCOPE is implemented in both /Users/Helling/Qt/5.12.0/clang_64/lib/QtCore.framework/Versions/5/QtCore (0x1025390e0) and /Users/Helling/mobile/subsurface/build-mobile/Subsurface-mobile.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore (0x1078750e0). One of the two will be used. Which one is undefined.</div><div style="margin: 0px;" class="">objc[85638]: Class RunLoopModeTracker is implemented in both /Users/Helling/Qt/5.12.0/clang_64/lib/QtCore.framework/Versions/5/QtCore (0x102539108) and /Users/Helling/mobile/subsurface/build-mobile/Subsurface-mobile.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore (0x107875108). One of the two will be used. Which one is undefined.</div><div style="margin: 0px;" class="">2020-01-04 01:21:43.358550+0100 Subsurface-mobile[85638:10548329] [qt.qpa.plugin] Could not load the Qt platform plugin "cocoa" in "" even though it was found.</div><div style="margin: 0px;" class="">2020-01-04 01:21:43.358812+0100 Subsurface-mobile[85638:10548329] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">Available platform plugins are: cocoa.<!--EndFragment--></div></div></blockquote><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">but running </div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">make -j2 install</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">from the command line produces a working binary (which can also be run from within Creator)</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">But this takes quite long (even with very little changed source code), as I get error messages like</div><div style="margin: 0px;" class=""></div><blockquote type="cite" class=""><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">ERROR: ""</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: string table not at the end of the file (can't be processed) in file: Subsurface-mobile.app/Contents/Resources/qml/QtQuick/Extras/libqtquickextrasplugin.dylib.dSYM/Contents/Resources/DWARF/libqtquickextrasplugin.dylib\n"</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ERROR: ""</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: string table not at the end of the file (can't be processed) in file: Subsurface-mobile.app/Contents/Resources/qml/QtLocation/libdeclarative_location_debug.dylib.dSYM/Contents/Resources/DWARF/libdeclarative_location_debug.dylib\n"</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ERROR: ""</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: string table not at the end of the file (can't be processed) in file: Subsurface-mobile.app/Contents/Resources/qml/QtLocation/libdeclarative_location.dylib.dSYM/Contents/Resources/DWARF/libdeclarative_location.dylib\n"</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ERROR: ""</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: string table not at the end of the file (can't be processed) in file: Subsurface-mobile.app/Contents/Resources/qml/QtPositioning/libdeclarative_positioning.dylib.dSYM/Contents/Resources/DWARF/libdeclarative_positioning.dylib\n"</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ERROR: ""</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: string table not at the end of the file (can't be processed) in file: Subsurface-mobile.app/Contents/Resources/qml/QtPositioning/libdeclarative_positioning_debug.dylib.dSYM/Contents/Resources/DWARF/libdeclarative_positioning_debug.dylib\n"</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ERROR: ""</span></div><span id="x-apple-selection:end"></span></div></blockquote><div style="margin: 0px;" class=""><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">for pages and pages  (and this takes a while). I tried to google this but could not find anything useful. This actually is most annoying.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Furthermore, I could not push to my Github fork from the command line (with an error message</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">remote: Resolving deltas: 100% (3/3), completed with 3 local objects.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">To <a href="https://github.com/atdotde/subsurface" class="">https://github.com/atdotde/subsurface</a></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #b42419" class="">! [remote rejected]    </span><span style="font-variant-ligatures: no-common-ligatures" class=""> finddm -> finddm (refusing to allow an OAuth App to create or update workflow `.github/workflows/linux-bionic-5.9.yml` without `workflow` scope)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(180, 36, 25);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">error: failed to push some refs to '<a href="https://github.com/atdotde/subsurface" class="">https://github.com/atdotde/subsurface</a>'</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">But doing the push from the SourceTree git GUI program worked.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Finally, looking into my local divelog git repository, I had to realise that recently, there were some updates that lost gas information:</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> cylinder vol=24.0l workpressure=232.0bar description="D12 232 bar"</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(180, 36, 25);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-cylinder vol=11.1l workpressure=207.0bar description="AL80" o2=50.0%</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(47, 180, 29);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">+cylinder vol=11.1l workpressure=207.0bar description="AL80"</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">diff --git a/2012/08/15-Wed-12=41=00/Divecomputer-001 b/2012/08/15-Wed-12=41=00/Divecomputer-001</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">index 2b29c49..d18bbee 100644</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">--- a/2012/08/15-Wed-12=41=00/Divecomputer-001</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">+++ b/2012/08/15-Wed-12=41=00/Divecomputer-001</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(46, 174, 187);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">@@ -7,7 +7,7 @@</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> airtemp 24.0</span><span style="font-variant-ligatures: no-common-ligatures; color: #ffffff; background-color: #000000" class=""><C2><B0></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">C</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> watertemp 21.0</span><span style="font-variant-ligatures: no-common-ligatures; color: #ffffff; background-color: #000000" class=""><C2><B0></span><span style="font-variant-ligatures: no-common-ligatures" class="">C</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> event 20:00 type=1 name="deco stop"</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> event 47:00 type=8 name="bookmark"</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(180, 36, 25);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-event 48:00 type=11 value=50 name="gaschange" cylinder=1 o2=50.0%</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(47, 180, 29);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">+event 48:00 type=11 value=50 name="gaschange" cylinder=1</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">   0:00 0.0m</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">I could manually revert those but have no idea how those crept in. I hope we don’t have a regression that causes these.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Any comments appreciated</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Best</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Robert</div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div></span></div></span></div></div></blockquote></div><br>-- <br>From my phone</body></html>