Hi,

> On 12. Sep 2021, at 02:19, Dirk Hohndel via subsurface 
> <[email protected]> wrote:
> 
> So yeah, the solution will have to be to find ways to import GPS tracks from 
> other apps.

I had a Sunday afternoon free, so I wanted to give it a shot. Addiert the 
capability to receive files based on mime-type from other apps seems not to 
require greater magic according to 

https://www.qt.io/blog/2018/02/06/sharing-files-android-ios-qt-app-part-3 
<https://www.qt.io/blog/2018/02/06/sharing-files-android-ios-qt-app-part-3>

To get started I had to get to the point again at which I am able to compile 
for my phone. I have done this in the past. I was always painful to get to this 
state.

Today I sunk 2,5 hours into this attempt with no success. Of course, the old 
build directory where it worked a couple of months ago does not work anymore. I 
have no clue which of the updates I have installed in the meantime broke it.

So I created a new directory, checked out a fresh subsurface from GitHub.

And failed.

Yes, I overcame some obstacles, reinstalled and updated a number of things. But 
now I am stuck. 

By now, I can produce a binary for mobile on desktop. But that doesn’t start 
complaining 

th-nb-tmpmbp05-6766:build-mobile Helling$ 
Subsurface-mobile.app/Contents/MacOS/Subsurface-mobile 
Execution of PAC script at "%250A" failed: The operation couldn’t be completed. 
(NSURLErrorDomain error -1002.)
can't find Subsurface localization for locale "en-DE"
INFO: Populating font family aliases took 425 ms. Replace uses of missing font 
family "Roboto" with one that exists to avoid this cost. 
INFO: QQmlApplicationEngine failed to load component
INFO: qrc:/qml/main.qml:960 Type Export unavailable
qrc:/qml/Export.qml:15 Type FileDialog unavailable
file:///Users/Helling/mobile4/subsurface/build-mobile/Subsurface-mobile.app/Contents/Resources/qml/QtQuick/Dialogs/DefaultFileDialog.qml:49
 module "Qt.labs.settings" is not installed
file:///Users/Helling/mobile4/subsurface/build-mobile/Subsurface-mobile.app/Contents/Resources/qml/QtQuick/Dialogs/DefaultFileDialog.qml:48
 module "Qt.labs.folderlistmodel" is not installed
file:///Users/Helling/mobile4/subsurface/build-mobile/Subsurface-mobile.app/Contents/Resources/qml/QtQuick/Dialogs/DefaultFileDialog.qml:49
 module "Qt.labs.settings" is not installed
file:///Users/Helling/mobile4/subsurface/build-mobile/Subsurface-mobile.app/Contents/Resources/qml/QtQuick/Dialogs/DefaultFileDialog.qml:48
 module "Qt.labs.folderlistmodel" is not installed

INFO: loaded main.qml
can't create window object

I have seen these errors in the past but forgot how to get around them. 
Possibly copying some QML files to some directories in the 
Subsurface-mobile.app directory structure. But as the thing I am interested in 
(sharing files between apps) will not work in mobile on desktop, there is no 
point right now to investigate this.

Rather cd to packaging/ios and run ./build.sh from there.

I am at a point where this fails with the kirigami libraries:

+ /Users/Helling/Qt/5.14.0/ios/bin/qmake 
/Users/Helling/mobile4/subsurface/mobile-widgets/3rdparty/kirigami/kirigami.pro 
CONFIG+=release
Info: creating stash file /Users/Helling/mobile4/kirigami-build/.qmake.stash
Project ERROR: Cannot run target compiler 
'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'.
 Output:
===================
Apple clang version 12.0.5 (clang-1205.0.22.11)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
 -cc1 -triple x86_64-apple-ios14.5.0 -Wdeprecated-objc-isa-usage 
-Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration 
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names 
-main-file-name - -mrelocation-model pic -pic-level 2 -mframe-pointer=all 
-fno-strict-return -fno-rounding-math -munwind-tables -target-sdk-version=14.5 
-fvisibility-inlines-hidden-static-local-var -target-cpu core2 
-debugger-tuning=lldb -target-linker-version 650.9 -v -resource-dir 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.5
 -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk
 -stdlib=libc++ -internal-isystem 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1
 -internal-isystem 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/local/include
 -internal-isystem 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.5/include
 -internal-externc-isystem 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include
 -internal-externc-isystem 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-c99-designator 
-Wno-final-dtor-non-final-class -Wno-extra-semi-stmt 
-Wno-misleading-indentation -Wno-quoted-include-in-framework-header 
-Wno-implicit-fallthrough -Wno-enum-enum-conversion -Wno-enum-float-conversion 
-Wno-elaborated-enum-base -fdeprecated-macro -fdebug-compilation-dir 
/Users/Helling/Qt/5.14.0/ios/mkspecs/features -ferror-limit 19 -stack-protector 
1 -fstack-check -mdarwin-stkchk-strong-link -fblocks 
-fencode-extended-block-signature -fregister-global-dtors-with-atexit 
-fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -fmax-type-align=16 -fcommon 
-clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation 
-fno-odr-hash-protocols -mllvm -disable-aligned-alloc-awareness=1 -o 
/var/folders/0f/rfk_51fs6fvb6c5pn8k2rfsh0000gp/T/--0c21d7.o -x c++ -
clang -cc1 version 12.0.5 (clang-1205.0.22.11) default target 
x86_64-apple-darwin20.6.0
ignoring nonexistent directory 
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/local/include"
ignoring nonexistent directory 
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1
 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.5/include
 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include
 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks
 (framework directory)
End of search list.
 
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"
 -demangle -lto_library 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib
 -no_deduplicate -dynamic -dylib -arch x86_64 -platform_version ios 14.5.0 14.5 
-single_module -syslibroot 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk
 -o /dev/null -v /var/folders/0f/rfk_51fs6fvb6c5pn8k2rfsh0000gp/T/--0c21d7.o 
-lc++ -lSystem 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.5/lib/darwin/libclang_rt.ios.a
@(#)PROGRAM:ld  PROJECT:ld64-650.9
BUILD 13:09:02 May 28 2021
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 
x86_64 x86_64h armv6m armv7k armv7m armv7em
Library search paths:
        
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/lib
Framework search paths:
        
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/
ld: warning: ignoring file 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/lib/libc++.tbd,
 missing required architecture x86_64 in file 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/lib/libc++.tbd
 (4 slices)
ld: building for iOS, but linking in object file built for iOS Simulator, file 
'/var/folders/0f/rfk_51fs6fvb6c5pn8k2rfsh0000gp/T/--0c21d7.o' for architecture 
x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
===================
Maybe you forgot to setup the environment?

From what I understand there is a confusion with respect the target 
architecture (intel vs arm). I had a similar situation before when building the 
google maps but simply commented those out from the build.sh as in my 
experience, googlemaps tends to be tricky and is not really mission critical. 
But now I get the same error at the next step with kirigami.

I could now try to understand how the cross platform build is supposed to work. 
But maybe someone else who has been through this before can simply give me a 
hint?

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

Reply via email to