~eliasnaur/gio

24 3

buillding on android (on windows)

Details
Message ID
<QhFS120WjvveGVdJ6JPZQHl3IGdp6CTbpcDISgPSd0jR8scIG_-r1Es4Y-kRpSD3vPHyRECJrusCnJeuezIhCDp6iI9CXipRx0R19jMfDt0=@protonmail.ch>
DKIM signature
pass
Download raw message
I am trying to build an app for the android platform, app works on windows/mac/linux/bsd
 and I have hit a lot of problems initially.


The plain setup of the SDK and NDK using the Android Studio installation didn't work.
It uses version 30 of the NDK and the latest SDK version. I found the related bugs,
which tracing to a recent patch in Go's source code which Elias was working on, related
to an error thus:

--8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--

C:\Users\loki\GolandProjects\pod>go run gioui.org/cmd/gogio -x -target android .
go list -f {{.ImportPath}} .
go list -f {{.Dir}} .
go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags  -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\armeabi-v7a\libgio.so .
go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags  -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\arm64-v8a\libgio.so .
go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags  -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86\libgio.so .
go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags  -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86_64\libgio.so .
go list -f {{.Dir}} gioui.org/app/internal/window
C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-30\android.jar -d C:\Users\loki\AppData\Loca
l\Temp\gogio-502085867\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\Gio.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b796283
8e\app\internal\window\GioView.java
gogio: go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags  -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86\libgio.so . failed: # runtime/cgo
ld: error: duplicate symbol: x_cgo_inittls
>>> defined at gcc_android.c:90
>>>            $WORK\b095\_x003.o:(x_cgo_inittls)
>>> defined at gcc_linux_386.c:15
>>>            $WORK\b095\_x006.o:(.bss+0x4)
clang: error: linker command failed with exit code 1 (use -v to see invocation)

exit status 1

C:\Users\loki\GolandProjects\pod>

--8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--

I found a suggestion from the related issue https://github.com/golang/go/issues/42655 which refers also to

https://go-review.googlesource.com/c/go/+/280312 which I can see Elias has contributed a patch to the Go source code

I have tried with version 21 of the NDK and I got a different error:

--8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--

gogio: C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-23\android.jar -d C:\Users\loki\AppDa
ta\Local\Temp\gogio-448105471\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\Gio.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759
b7962838e\app\internal\window\GioView.java failed: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:25: error: cannot find symbol
import android.view.PointerIcon;
                   ^
  symbol:   class PointerIcon
  location: package android.view
C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:65: error: cannot find symbol
                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
                                                                ^
  symbol:   variable O
  location: class VERSION_CODES
C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:66: error: cannot find symbol
                        scrollXScale = conf.getScaledHorizontalScrollFactor();
                                           ^
  symbol:   method getScaledHorizontalScrollFactor()
  location: variable conf of type ViewConfiguration
C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:67: error: cannot find symbol
                        scrollYScale = conf.getScaledVerticalScrollFactor();
                                           ^
  symbol:   method getScaledVerticalScrollFactor()
  location: variable conf of type ViewConfiguration
C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:70: error: cannot find symbol
                        setDefaultFocusHighlightEnabled(false);
                        ^
  symbol:   method setDefaultFocusHighlightEnabled(boolean)
  location: class GioView
C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:128: error: cannot find symbol
                if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
                                                               ^
  symbol:   variable N
  location: class VERSION_CODES
C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:131: error: cannot find symbol
                PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
                ^
  symbol:   class PointerIcon
  location: class GioView
C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:131: error: cannot find symbol
                PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
                                          ^
  symbol:   variable PointerIcon
  location: class GioView
Note: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
8 errors

exit status 1
Show less
Write to Wallet


--8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--

It looks like until Elias's patches go into the mainline and in new versions what alternatives are there? I am trying
a third NDK version, 20, it's very irritating because each version is a nearly 1gb download. I think that it would be very
helpful if the documentation specifies known good versions of the dependencies for the use of gogio.



Sent with ProtonMail Secure Email.
Details
Message ID
<C8FK00VFPFYF.2962JCQ6U2OI5@themachine>
In-Reply-To
<QhFS120WjvveGVdJ6JPZQHl3IGdp6CTbpcDISgPSd0jR8scIG_-r1Es4Y-kRpSD3vPHyRECJrusCnJeuezIhCDp6iI9CXipRx0R19jMfDt0=@protonmail.ch> (view parent)
DKIM signature
pass
Download raw message
On Sun Jan 10, 2021 at 13:49, Loki Verloren wrote:
> I am trying to build an app for the android platform, app works on windows/mac/linux/bsd
>  and I have hit a lot of problems initially.
>
>
> The plain setup of the SDK and NDK using the Android Studio installation didn't work.
> It uses version 30 of the NDK and the latest SDK version. I found the related bugs,
> which tracing to a recent patch in Go's source code which Elias was working on, related
> to an error thus:
>
> --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
>
> C:\Users\loki\GolandProjects\pod>go run gioui.org/cmd/gogio -x -target android .
> go list -f {{.ImportPath}} .
> go list -f {{.Dir}} .
> go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags  -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\armeabi-v7a\libgio.so .
> go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags  -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\arm64-v8a\libgio.so .
> go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags  -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86\libgio.so .
> go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags  -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86_64\libgio.so .
> go list -f {{.Dir}} gioui.org/app/internal/window
> C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-30\android.jar -d C:\Users\loki\AppData\Loca
> l\Temp\gogio-502085867\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\Gio.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b796283
> 8e\app\internal\window\GioView.java
> gogio: go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags  -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86\libgio.so . failed: # runtime/cgo
> ld: error: duplicate symbol: x_cgo_inittls
> >>> defined at gcc_android.c:90
> >>>            $WORK\b095\_x003.o:(x_cgo_inittls)
> >>> defined at gcc_linux_386.c:15
> >>>            $WORK\b095\_x006.o:(.bss+0x4)
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>
> exit status 1
>
> C:\Users\loki\GolandProjects\pod>
>
> --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
>

This error is caused by the *NDK* version being incompatible with Go
1.15 and 1.14.

> I found a suggestion from the related issue https://github.com/golang/go/issues/42655 which refers also to
>
> https://go-review.googlesource.com/c/go/+/280312 which I can see Elias has contributed a patch to the Go source code
>

This issue and CL fixes the error above, and makes Go 1.16 compatible
with the newest NDK version.

> I have tried with version 21 of the NDK and I got a different error:
>
> --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
>
> gogio: C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-23\android.jar -d C:\Users\loki\AppDa
> ta\Local\Temp\gogio-448105471\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\Gio.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759
> b7962838e\app\internal\window\GioView.java failed: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:25: error: cannot find symbol
> import android.view.PointerIcon;
>                    ^
>   symbol:   class PointerIcon
>   location: package android.view
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:65: error: cannot find symbol
>                 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
>                                                                 ^
>   symbol:   variable O
>   location: class VERSION_CODES
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:66: error: cannot find symbol
>                         scrollXScale = conf.getScaledHorizontalScrollFactor();
>                                            ^
>   symbol:   method getScaledHorizontalScrollFactor()
>   location: variable conf of type ViewConfiguration
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:67: error: cannot find symbol
>                         scrollYScale = conf.getScaledVerticalScrollFactor();
>                                            ^
>   symbol:   method getScaledVerticalScrollFactor()
>   location: variable conf of type ViewConfiguration
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:70: error: cannot find symbol
>                         setDefaultFocusHighlightEnabled(false);
>                         ^
>   symbol:   method setDefaultFocusHighlightEnabled(boolean)
>   location: class GioView
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:128: error: cannot find symbol
>                 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
>                                                                ^
>   symbol:   variable N
>   location: class VERSION_CODES
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:131: error: cannot find symbol
>                 PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
>                 ^
>   symbol:   class PointerIcon
>   location: class GioView
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:131: error: cannot find symbol
>                 PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
>                                           ^
>   symbol:   variable PointerIcon
>   location: class GioView
> Note: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java uses or overrides a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> 8 errors
>
> exit status 1
> Show less
> Write to Wallet
>
>

This error is caused by the *SDK* version being too old.

> --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
>
> It looks like until Elias's patches go into the mainline and in new versions what alternatives are there? I am trying
> a third NDK version, 20, it's very irritating because each version is a nearly 1gb download. I think that it would be very
> helpful if the documentation specifies known good versions of the dependencies for the use of gogio.
>

NDK versions below 22 should work with Go 1.15 and below. To fix the
second (Java) error, upgrade the SDK to the latest version.

If you need NDK >= 22 support before Go 1.16 is released, consider backporting
my fix to Go 1.15 (and 1.14). See corresponding issues here:

https://github.com/golang/go/issues/43406
https://github.com/golang/go/issues/43405

If you want to avoid the second error of the SDK being too old, I'll
gladly accept a patch to gogio that checks the version.

Sorry for the confusion between NDK and SDK errors.

Elias
Details
Message ID
<suosZf_LvIP9PVDoFXJLfCv3CPX4V8D360tHY24upPi5lsrxuOq3LaxK3jqIT6hOCaITE47kqZWEpuiy04yMpVRGJpHBO6Smgm21Ar-cGgQ=@protonmail.ch>
In-Reply-To
<C8FK00VFPFYF.2962JCQ6U2OI5@themachine> (view parent)
DKIM signature
pass
Download raw message
Maybe you can c&p those notes you just wrote into the section on gioui.org on building for android,
to prevent others from having to ask this question again later.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Sunday, January 10th, 2021 at 15:38, Elias Naur <mail@eliasnaur.com> wrote:

> On Sun Jan 10, 2021 at 13:49, Loki Verloren wrote:
>
> > I am trying to build an app for the android platform, app works on windows/mac/linux/bsd
> >
> > and I have hit a lot of problems initially.
> >
> > The plain setup of the SDK and NDK using the Android Studio installation didn't work.
> >
> > It uses version 30 of the NDK and the latest SDK version. I found the related bugs,
> >
> > which tracing to a recent patch in Go's source code which Elias was working on, related
> >
> > to an error thus:
> >
> > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> >
> > C:\Users\loki\GolandProjects\pod>go run gioui.org/cmd/gogio -x -target android .
> >
> > go list -f {{.ImportPath}} .
> >
> > go list -f {{.Dir}} .
> >
> > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\armeabi-v7a\libgio.so .
> >
> > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\arm64-v8a\libgio.so .
> >
> > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86\libgio.so .
> >
> > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86_64\libgio.so .
> >
> > go list -f {{.Dir}} gioui.org/app/internal/window
> >
> > C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-30\android.jar -d C:\Users\loki\AppData\Loca
> >
> > l\Temp\gogio-502085867\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\Gio.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b796283
> >
> > 8e\app\internal\window\GioView.java
> >
> > gogio: go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86\libgio.so . failed: # runtime/cgo
> >
> > ld: error: duplicate symbol: x_cgo_inittls
> >
> > > > > defined at gcc_android.c:90
> > > > >
> > > > > $WORK\b095\_x003.o:(x_cgo_inittls)
> > > > >
> > > > > defined at gcc_linux_386.c:15
> > > > >
> > > > > $WORK\b095\_x006.o:(.bss+0x4)
> > > > >
> > > > > clang: error: linker command failed with exit code 1 (use -v to see invocation)
> >
> > exit status 1
> >
> > C:\Users\loki\GolandProjects\pod>
> >
> > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
>
> This error is caused by the NDK version being incompatible with Go
>
> 1.15 and 1.14.
>
> > I found a suggestion from the related issue https://github.com/golang/go/issues/42655 which refers also to
> >
> > https://go-review.googlesource.com/c/go/+/280312 which I can see Elias has contributed a patch to the Go source code
>
> This issue and CL fixes the error above, and makes Go 1.16 compatible
>
> with the newest NDK version.
>
> > I have tried with version 21 of the NDK and I got a different error:
> >
> > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> >
> > gogio: C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-23\android.jar -d C:\Users\loki\AppDa
> >
> > ta\Local\Temp\gogio-448105471\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\Gio.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759
> >
> > b7962838e\app\internal\window\GioView.java failed: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:25: error: cannot find symbol
> >
> > import android.view.PointerIcon;
> >
> > ^
> >
> > symbol: class PointerIcon
> >
> > location: package android.view
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:65: error: cannot find symbol
> >
> > if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
> >
> > ^
> >
> > symbol: variable O
> >
> > location: class VERSION_CODES
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:66: error: cannot find symbol
> >
> > scrollXScale = conf.getScaledHorizontalScrollFactor();
> >
> > ^
> >
> > symbol: method getScaledHorizontalScrollFactor()
> >
> > location: variable conf of type ViewConfiguration
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:67: error: cannot find symbol
> >
> > scrollYScale = conf.getScaledVerticalScrollFactor();
> >
> > ^
> >
> > symbol: method getScaledVerticalScrollFactor()
> >
> > location: variable conf of type ViewConfiguration
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:70: error: cannot find symbol
> >
> > setDefaultFocusHighlightEnabled(false);
> >
> > ^
> >
> > symbol: method setDefaultFocusHighlightEnabled(boolean)
> >
> > location: class GioView
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:128: error: cannot find symbol
> >
> > if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
> >
> > ^
> >
> > symbol: variable N
> >
> > location: class VERSION_CODES
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:131: error: cannot find symbol
> >
> > PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
> >
> > ^
> >
> > symbol: class PointerIcon
> >
> > location: class GioView
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:131: error: cannot find symbol
> >
> > PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
> >
> > ^
> >
> > symbol: variable PointerIcon
> >
> > location: class GioView
> >
> > Note: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java uses or overrides a deprecated API.
> >
> > Note: Recompile with -Xlint:deprecation for details.
> >
> > 8 errors
> >
> > exit status 1
> >
> > Show less
> >
> > Write to Wallet
>
> This error is caused by the SDK version being too old.
>
> > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> >
> > It looks like until Elias's patches go into the mainline and in new versions what alternatives are there? I am trying
> >
> > a third NDK version, 20, it's very irritating because each version is a nearly 1gb download. I think that it would be very
> >
> > helpful if the documentation specifies known good versions of the dependencies for the use of gogio.
>
> NDK versions below 22 should work with Go 1.15 and below. To fix the
>
> second (Java) error, upgrade the SDK to the latest version.
>
> If you need NDK >= 22 support before Go 1.16 is released, consider backporting
>
> my fix to Go 1.15 (and 1.14). See corresponding issues here:
>
> https://github.com/golang/go/issues/43406
>
> https://github.com/golang/go/issues/43405
>
> If you want to avoid the second error of the SDK being too old, I'll
>
> gladly accept a patch to gogio that checks the version.
>
> Sorry for the confusion between NDK and SDK errors.
>
> Elias
Details
Message ID
<aYE8XO8JS5Gxb1xrZkawnrbDerd2LC7qdBBbHERdylcmeQBN3Zcq87v9ls0DqzO4rUqGljQxoEBQi3SP_y2_1mdO9kxj8ydwCbaoUBZdDY8=@protonmail.ch>
In-Reply-To
<C8FK00VFPFYF.2962JCQ6U2OI5@themachine> (view parent)
DKIM signature
pass
Download raw message
Also, when you say 'SDK version is too old' what is the oldest version that does work? This was with android 6.0 support.
I have three android devices and I would prefer it if I could test on a physical device, 6, 7 and 8 versions on each android
device. I will try 7, but if you could expand on what the oldest version of android SDK that is usable that would be great.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Sunday, January 10th, 2021 at 15:38, Elias Naur <mail@eliasnaur.com> wrote:

> On Sun Jan 10, 2021 at 13:49, Loki Verloren wrote:
>
> > I am trying to build an app for the android platform, app works on windows/mac/linux/bsd
> >
> > and I have hit a lot of problems initially.
> >
> > The plain setup of the SDK and NDK using the Android Studio installation didn't work.
> >
> > It uses version 30 of the NDK and the latest SDK version. I found the related bugs,
> >
> > which tracing to a recent patch in Go's source code which Elias was working on, related
> >
> > to an error thus:
> >
> > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> >
> > C:\Users\loki\GolandProjects\pod>go run gioui.org/cmd/gogio -x -target android .
> >
> > go list -f {{.ImportPath}} .
> >
> > go list -f {{.Dir}} .
> >
> > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\armeabi-v7a\libgio.so .
> >
> > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\arm64-v8a\libgio.so .
> >
> > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86\libgio.so .
> >
> > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86_64\libgio.so .
> >
> > go list -f {{.Dir}} gioui.org/app/internal/window
> >
> > C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-30\android.jar -d C:\Users\loki\AppData\Loca
> >
> > l\Temp\gogio-502085867\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\Gio.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b796283
> >
> > 8e\app\internal\window\GioView.java
> >
> > gogio: go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86\libgio.so . failed: # runtime/cgo
> >
> > ld: error: duplicate symbol: x_cgo_inittls
> >
> > > > > defined at gcc_android.c:90
> > > > >
> > > > > $WORK\b095\_x003.o:(x_cgo_inittls)
> > > > >
> > > > > defined at gcc_linux_386.c:15
> > > > >
> > > > > $WORK\b095\_x006.o:(.bss+0x4)
> > > > >
> > > > > clang: error: linker command failed with exit code 1 (use -v to see invocation)
> >
> > exit status 1
> >
> > C:\Users\loki\GolandProjects\pod>
> >
> > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
>
> This error is caused by the NDK version being incompatible with Go
>
> 1.15 and 1.14.
>
> > I found a suggestion from the related issue https://github.com/golang/go/issues/42655 which refers also to
> >
> > https://go-review.googlesource.com/c/go/+/280312 which I can see Elias has contributed a patch to the Go source code
>
> This issue and CL fixes the error above, and makes Go 1.16 compatible
>
> with the newest NDK version.
>
> > I have tried with version 21 of the NDK and I got a different error:
> >
> > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> >
> > gogio: C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-23\android.jar -d C:\Users\loki\AppDa
> >
> > ta\Local\Temp\gogio-448105471\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\Gio.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759
> >
> > b7962838e\app\internal\window\GioView.java failed: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:25: error: cannot find symbol
> >
> > import android.view.PointerIcon;
> >
> > ^
> >
> > symbol: class PointerIcon
> >
> > location: package android.view
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:65: error: cannot find symbol
> >
> > if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
> >
> > ^
> >
> > symbol: variable O
> >
> > location: class VERSION_CODES
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:66: error: cannot find symbol
> >
> > scrollXScale = conf.getScaledHorizontalScrollFactor();
> >
> > ^
> >
> > symbol: method getScaledHorizontalScrollFactor()
> >
> > location: variable conf of type ViewConfiguration
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:67: error: cannot find symbol
> >
> > scrollYScale = conf.getScaledVerticalScrollFactor();
> >
> > ^
> >
> > symbol: method getScaledVerticalScrollFactor()
> >
> > location: variable conf of type ViewConfiguration
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:70: error: cannot find symbol
> >
> > setDefaultFocusHighlightEnabled(false);
> >
> > ^
> >
> > symbol: method setDefaultFocusHighlightEnabled(boolean)
> >
> > location: class GioView
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:128: error: cannot find symbol
> >
> > if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
> >
> > ^
> >
> > symbol: variable N
> >
> > location: class VERSION_CODES
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:131: error: cannot find symbol
> >
> > PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
> >
> > ^
> >
> > symbol: class PointerIcon
> >
> > location: class GioView
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:131: error: cannot find symbol
> >
> > PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
> >
> > ^
> >
> > symbol: variable PointerIcon
> >
> > location: class GioView
> >
> > Note: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java uses or overrides a deprecated API.
> >
> > Note: Recompile with -Xlint:deprecation for details.
> >
> > 8 errors
> >
> > exit status 1
> >
> > Show less
> >
> > Write to Wallet
>
> This error is caused by the SDK version being too old.
>
> > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> >
> > It looks like until Elias's patches go into the mainline and in new versions what alternatives are there? I am trying
> >
> > a third NDK version, 20, it's very irritating because each version is a nearly 1gb download. I think that it would be very
> >
> > helpful if the documentation specifies known good versions of the dependencies for the use of gogio.
>
> NDK versions below 22 should work with Go 1.15 and below. To fix the
>
> second (Java) error, upgrade the SDK to the latest version.
>
> If you need NDK >= 22 support before Go 1.16 is released, consider backporting
>
> my fix to Go 1.15 (and 1.14). See corresponding issues here:
>
> https://github.com/golang/go/issues/43406
>
> https://github.com/golang/go/issues/43405
>
> If you want to avoid the second error of the SDK being too old, I'll
>
> gladly accept a patch to gogio that checks the version.
>
> Sorry for the confusion between NDK and SDK errors.
>
> Elias
Details
Message ID
<uBcn92O4Djo5vhoKKAi71fzUvaAIe747M0yU2w1_77xMvgYZ41HNiYQnEApeIvZjVfIqvb1FEtrTIAJeMS5Cn_BF7ZxpWViY_b1DlHd2P5g=@protonmail.ch>
In-Reply-To
<C8FK00VFPFYF.2962JCQ6U2OI5@themachine> (view parent)
DKIM signature
pass
Download raw message
Also just a random question. There was a commit dated 31 october 2020. It is no longer in the
repository. Why was it deleted?

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Sunday, January 10th, 2021 at 15:38, Elias Naur <mail@eliasnaur.com> wrote:

> On Sun Jan 10, 2021 at 13:49, Loki Verloren wrote:
>
> > I am trying to build an app for the android platform, app works on windows/mac/linux/bsd
> >
> > and I have hit a lot of problems initially.
> >
> > The plain setup of the SDK and NDK using the Android Studio installation didn't work.
> >
> > It uses version 30 of the NDK and the latest SDK version. I found the related bugs,
> >
> > which tracing to a recent patch in Go's source code which Elias was working on, related
> >
> > to an error thus:
> >
> > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> >
> > C:\Users\loki\GolandProjects\pod>go run gioui.org/cmd/gogio -x -target android .
> >
> > go list -f {{.ImportPath}} .
> >
> > go list -f {{.Dir}} .
> >
> > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\armeabi-v7a\libgio.so .
> >
> > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\arm64-v8a\libgio.so .
> >
> > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86\libgio.so .
> >
> > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86_64\libgio.so .
> >
> > go list -f {{.Dir}} gioui.org/app/internal/window
> >
> > C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-30\android.jar -d C:\Users\loki\AppData\Loca
> >
> > l\Temp\gogio-502085867\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\Gio.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b796283
> >
> > 8e\app\internal\window\GioView.java
> >
> > gogio: go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86\libgio.so . failed: # runtime/cgo
> >
> > ld: error: duplicate symbol: x_cgo_inittls
> >
> > > > > defined at gcc_android.c:90
> > > > >
> > > > > $WORK\b095\_x003.o:(x_cgo_inittls)
> > > > >
> > > > > defined at gcc_linux_386.c:15
> > > > >
> > > > > $WORK\b095\_x006.o:(.bss+0x4)
> > > > >
> > > > > clang: error: linker command failed with exit code 1 (use -v to see invocation)
> >
> > exit status 1
> >
> > C:\Users\loki\GolandProjects\pod>
> >
> > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
>
> This error is caused by the NDK version being incompatible with Go
>
> 1.15 and 1.14.
>
> > I found a suggestion from the related issue https://github.com/golang/go/issues/42655 which refers also to
> >
> > https://go-review.googlesource.com/c/go/+/280312 which I can see Elias has contributed a patch to the Go source code
>
> This issue and CL fixes the error above, and makes Go 1.16 compatible
>
> with the newest NDK version.
>
> > I have tried with version 21 of the NDK and I got a different error:
> >
> > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> >
> > gogio: C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-23\android.jar -d C:\Users\loki\AppDa
> >
> > ta\Local\Temp\gogio-448105471\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\Gio.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759
> >
> > b7962838e\app\internal\window\GioView.java failed: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:25: error: cannot find symbol
> >
> > import android.view.PointerIcon;
> >
> > ^
> >
> > symbol: class PointerIcon
> >
> > location: package android.view
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:65: error: cannot find symbol
> >
> > if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
> >
> > ^
> >
> > symbol: variable O
> >
> > location: class VERSION_CODES
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:66: error: cannot find symbol
> >
> > scrollXScale = conf.getScaledHorizontalScrollFactor();
> >
> > ^
> >
> > symbol: method getScaledHorizontalScrollFactor()
> >
> > location: variable conf of type ViewConfiguration
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:67: error: cannot find symbol
> >
> > scrollYScale = conf.getScaledVerticalScrollFactor();
> >
> > ^
> >
> > symbol: method getScaledVerticalScrollFactor()
> >
> > location: variable conf of type ViewConfiguration
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:70: error: cannot find symbol
> >
> > setDefaultFocusHighlightEnabled(false);
> >
> > ^
> >
> > symbol: method setDefaultFocusHighlightEnabled(boolean)
> >
> > location: class GioView
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:128: error: cannot find symbol
> >
> > if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
> >
> > ^
> >
> > symbol: variable N
> >
> > location: class VERSION_CODES
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:131: error: cannot find symbol
> >
> > PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
> >
> > ^
> >
> > symbol: class PointerIcon
> >
> > location: class GioView
> >
> > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:131: error: cannot find symbol
> >
> > PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
> >
> > ^
> >
> > symbol: variable PointerIcon
> >
> > location: class GioView
> >
> > Note: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java uses or overrides a deprecated API.
> >
> > Note: Recompile with -Xlint:deprecation for details.
> >
> > 8 errors
> >
> > exit status 1
> >
> > Show less
> >
> > Write to Wallet
>
> This error is caused by the SDK version being too old.
>
> > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> >
> > It looks like until Elias's patches go into the mainline and in new versions what alternatives are there? I am trying
> >
> > a third NDK version, 20, it's very irritating because each version is a nearly 1gb download. I think that it would be very
> >
> > helpful if the documentation specifies known good versions of the dependencies for the use of gogio.
>
> NDK versions below 22 should work with Go 1.15 and below. To fix the
>
> second (Java) error, upgrade the SDK to the latest version.
>
> If you need NDK >= 22 support before Go 1.16 is released, consider backporting
>
> my fix to Go 1.15 (and 1.14). See corresponding issues here:
>
> https://github.com/golang/go/issues/43406
>
> https://github.com/golang/go/issues/43405
>
> If you want to avoid the second error of the SDK being too old, I'll
>
> gladly accept a patch to gogio that checks the version.
>
> Sorry for the confusion between NDK and SDK errors.
>
> Elias
Details
Message ID
<6hgzGzWOqUzIBQKDyFnNSqRbMteLPYv6dNHJWY9RVBPlEXlWcpamIYWioqCU2qmazil2iksl3nIzJR_3UcUNwbWm_RYpYXKkqcrsKjkMsY0=@protonmail.ch>
In-Reply-To
<uBcn92O4Djo5vhoKKAi71fzUvaAIe747M0yU2w1_77xMvgYZ41HNiYQnEApeIvZjVfIqvb1FEtrTIAJeMS5Cn_BF7ZxpWViY_b1DlHd2P5g=@protonmail.ch> (view parent)
DKIM signature
pass
Download raw message
Just an update, tested with 7, got errors about horizontal scrolling:

gogio: C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-2
0201229000053-33103593a1b4\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-24\android.jar -d C:\Users\
loki\AppData\Local\Temp\gogio-944378159\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20201229000053-33103593a1b4\app\internal\window\Gio.java
C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20201229000053-33103593a1b4\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.
0-20201229000053-33103593a1b4\app\internal\window\GioView.java failed: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20201229000053-33103593a1b4\app\in
ternal\window\GioView.java:65: error: cannot find symbol
                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
                                                                ^
  symbol:   variable O
  location: class VERSION_CODES
C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20201229000053-33103593a1b4\app\internal\window\GioView.java:66: error: cannot find symbol
                        scrollXScale = conf.getScaledHorizontalScrollFactor();
                                           ^
  symbol:   method getScaledHorizontalScrollFactor()
  location: variable conf of type ViewConfiguration
C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20201229000053-33103593a1b4\app\internal\window\GioView.java:67: error: cannot find symbol
                        scrollYScale = conf.getScaledVerticalScrollFactor();
                                           ^
  symbol:   method getScaledVerticalScrollFactor()
  location: variable conf of type ViewConfiguration
C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20201229000053-33103593a1b4\app\internal\window\GioView.java:70: error: cannot find symbol
                        setDefaultFocusHighlightEnabled(false);
                        ^
  symbol:   method setDefaultFocusHighlightEnabled(boolean)
  location: class GioView
Note: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20201229000053-33103593a1b4\app\internal\window\GioView.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors



Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Sunday, January 10th, 2021 at 15:52, Loki Verloren <stalker.loki@protonmail.ch> wrote:

> Also just a random question. There was a commit dated 31 october 2020. It is no longer in the
>
> repository. Why was it deleted?
>
> Sent with ProtonMail Secure Email.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On Sunday, January 10th, 2021 at 15:38, Elias Naur mail@eliasnaur.com wrote:
>
> > On Sun Jan 10, 2021 at 13:49, Loki Verloren wrote:
> >
> > > I am trying to build an app for the android platform, app works on windows/mac/linux/bsd
> > >
> > > and I have hit a lot of problems initially.
> > >
> > > The plain setup of the SDK and NDK using the Android Studio installation didn't work.
> > >
> > > It uses version 30 of the NDK and the latest SDK version. I found the related bugs,
> > >
> > > which tracing to a recent patch in Go's source code which Elias was working on, related
> > >
> > > to an error thus:
> > >
> > > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> > >
> > > C:\Users\loki\GolandProjects\pod>go run gioui.org/cmd/gogio -x -target android .
> > >
> > > go list -f {{.ImportPath}} .
> > >
> > > go list -f {{.Dir}} .
> > >
> > > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\armeabi-v7a\libgio.so .
> > >
> > > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\arm64-v8a\libgio.so .
> > >
> > > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86\libgio.so .
> > >
> > > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86_64\libgio.so .
> > >
> > > go list -f {{.Dir}} gioui.org/app/internal/window
> > >
> > > C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-30\android.jar -d C:\Users\loki\AppData\Loca
> > >
> > > l\Temp\gogio-502085867\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\Gio.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b796283
> > >
> > > 8e\app\internal\window\GioView.java
> > >
> > > gogio: go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86\libgio.so . failed: # runtime/cgo
> > >
> > > ld: error: duplicate symbol: x_cgo_inittls
> > >
> > > > > > defined at gcc_android.c:90
> > > > > >
> > > > > > $WORK\b095\_x003.o:(x_cgo_inittls)
> > > > > >
> > > > > > defined at gcc_linux_386.c:15
> > > > > >
> > > > > > $WORK\b095\_x006.o:(.bss+0x4)
> > > > > >
> > > > > > clang: error: linker command failed with exit code 1 (use -v to see invocation)
> > >
> > > exit status 1
> > >
> > > C:\Users\loki\GolandProjects\pod>
> > >
> > > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> >
> > This error is caused by the NDK version being incompatible with Go
> >
> > 1.15 and 1.14.
> >
> > > I found a suggestion from the related issue https://github.com/golang/go/issues/42655 which refers also to
> > >
> > > https://go-review.googlesource.com/c/go/+/280312 which I can see Elias has contributed a patch to the Go source code
> >
> > This issue and CL fixes the error above, and makes Go 1.16 compatible
> >
> > with the newest NDK version.
> >
> > > I have tried with version 21 of the NDK and I got a different error:
> > >
> > > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> > >
> > > gogio: C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-23\android.jar -d C:\Users\loki\AppDa
> > >
> > > ta\Local\Temp\gogio-448105471\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\Gio.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759
> > >
> > > b7962838e\app\internal\window\GioView.java failed: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:25: error: cannot find symbol
> > >
> > > import android.view.PointerIcon;
> > >
> > > ^
> > >
> > > symbol: class PointerIcon
> > >
> > > location: package android.view
> > >
> > > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:65: error: cannot find symbol
> > >
> > > if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
> > >
> > > ^
> > >
> > > symbol: variable O
> > >
> > > location: class VERSION_CODES
> > >
> > > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:66: error: cannot find symbol
> > >
> > > scrollXScale = conf.getScaledHorizontalScrollFactor();
> > >
> > > ^
> > >
> > > symbol: method getScaledHorizontalScrollFactor()
> > >
> > > location: variable conf of type ViewConfiguration
> > >
> > > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:67: error: cannot find symbol
> > >
> > > scrollYScale = conf.getScaledVerticalScrollFactor();
> > >
> > > ^
> > >
> > > symbol: method getScaledVerticalScrollFactor()
> > >
> > > location: variable conf of type ViewConfiguration
> > >
> > > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:70: error: cannot find symbol
> > >
> > > setDefaultFocusHighlightEnabled(false);
> > >
> > > ^
> > >
> > > symbol: method setDefaultFocusHighlightEnabled(boolean)
> > >
> > > location: class GioView
> > >
> > > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:128: error: cannot find symbol
> > >
> > > if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
> > >
> > > ^
> > >
> > > symbol: variable N
> > >
> > > location: class VERSION_CODES
> > >
> > > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:131: error: cannot find symbol
> > >
> > > PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
> > >
> > > ^
> > >
> > > symbol: class PointerIcon
> > >
> > > location: class GioView
> > >
> > > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:131: error: cannot find symbol
> > >
> > > PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
> > >
> > > ^
> > >
> > > symbol: variable PointerIcon
> > >
> > > location: class GioView
> > >
> > > Note: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java uses or overrides a deprecated API.
> > >
> > > Note: Recompile with -Xlint:deprecation for details.
> > >
> > > 8 errors
> > >
> > > exit status 1
> > >
> > > Show less
> > >
> > > Write to Wallet
> >
> > This error is caused by the SDK version being too old.
> >
> > > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> > >
> > > It looks like until Elias's patches go into the mainline and in new versions what alternatives are there? I am trying
> > >
> > > a third NDK version, 20, it's very irritating because each version is a nearly 1gb download. I think that it would be very
> > >
> > > helpful if the documentation specifies known good versions of the dependencies for the use of gogio.
> >
> > NDK versions below 22 should work with Go 1.15 and below. To fix the
> >
> > second (Java) error, upgrade the SDK to the latest version.
> >
> > If you need NDK >= 22 support before Go 1.16 is released, consider backporting
> >
> > my fix to Go 1.15 (and 1.14). See corresponding issues here:
> >
> > https://github.com/golang/go/issues/43406
> >
> > https://github.com/golang/go/issues/43405
> >
> > If you want to avoid the second error of the SDK being too old, I'll
> >
> > gladly accept a patch to gogio that checks the version.
> >
> > Sorry for the confusion between NDK and SDK errors.
> >
> > Elias
Details
Message ID
<7749fb64-bdcc-40a6-8c8f-372a38da508d@www.fastmail.com>
In-Reply-To
<6hgzGzWOqUzIBQKDyFnNSqRbMteLPYv6dNHJWY9RVBPlEXlWcpamIYWioqCU2qmazil2iksl3nIzJR_3UcUNwbWm_RYpYXKkqcrsKjkMsY0=@protonmail.ch> (view parent)
DKIM signature
missing
Download raw message
I had some issues with `gogio -target android before`.

Run some `javac.exe -version` and check what is the version that you are running. Far I remember it will not work if you are running on version above 11. So, download the Java SDK 11 (https://www.oracle.com/pt/java/technologies/javase-jdk11-downloads.html). In the past I tried with SDK 13 and it fails. But... I don't know if it's the same problem.

Also, remove any NDK from the folder because gogio will get the lastest one. It lives on "C:\Users\[username]\AppData\Local\Android\Sdk\ndk". I'm using the NDK 21, and I remove anyother that is higher than that, so the "21.0.6113669" folder is the highest and the only available.


On Sun, Jan 10, 2021, at 3:02 PM, Loki Verloren wrote:
> Just an update, tested with 7, got errors about horizontal scrolling:
> 
> gogio: C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe 
> -target 1.8 -source 1.8 -sourcepath 
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-2
> 0201229000053-33103593a1b4\app\internal\window -bootclasspath 
> C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-24\android.jar -d C:\Users\
> loki\AppData\Local\Temp\gogio-944378159\classes 
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20201229000053-33103593a1b4\app\internal\window\Gio.java
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20201229000053-33103593a1b4\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.
> 0-20201229000053-33103593a1b4\app\internal\window\GioView.java failed: 
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20201229000053-33103593a1b4\app\in
> ternal\window\GioView.java:65: error: cannot find symbol
>                 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
>                                                                 ^
>   symbol:   variable O
>   location: class VERSION_CODES
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20201229000053-33103593a1b4\app\internal\window\GioView.java:66: error: cannot find symbol
>                         scrollXScale = 
> conf.getScaledHorizontalScrollFactor();
>                                            ^
>   symbol:   method getScaledHorizontalScrollFactor()
>   location: variable conf of type ViewConfiguration
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20201229000053-33103593a1b4\app\internal\window\GioView.java:67: error: cannot find symbol
>                         scrollYScale = 
> conf.getScaledVerticalScrollFactor();
>                                            ^
>   symbol:   method getScaledVerticalScrollFactor()
>   location: variable conf of type ViewConfiguration
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20201229000053-33103593a1b4\app\internal\window\GioView.java:70: error: cannot find symbol
>                         setDefaultFocusHighlightEnabled(false);
>                         ^
>   symbol:   method setDefaultFocusHighlightEnabled(boolean)
>   location: class GioView
> Note: 
> C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20201229000053-33103593a1b4\app\internal\window\GioView.java uses or overrides a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> 4 errors
> 
> 
> 
> Sent with ProtonMail Secure Email.
> 
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> 
> On Sunday, January 10th, 2021 at 15:52, Loki Verloren 
> <stalker.loki@protonmail.ch> wrote:
> 
> > Also just a random question. There was a commit dated 31 october 2020. It is no longer in the
> >
> > repository. Why was it deleted?
> >
> > Sent with ProtonMail Secure Email.
> >
> > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> >
> > On Sunday, January 10th, 2021 at 15:38, Elias Naur mail@eliasnaur.com wrote:
> >
> > > On Sun Jan 10, 2021 at 13:49, Loki Verloren wrote:
> > >
> > > > I am trying to build an app for the android platform, app works on windows/mac/linux/bsd
> > > >
> > > > and I have hit a lot of problems initially.
> > > >
> > > > The plain setup of the SDK and NDK using the Android Studio installation didn't work.
> > > >
> > > > It uses version 30 of the NDK and the latest SDK version. I found the related bugs,
> > > >
> > > > which tracing to a recent patch in Go's source code which Elias was working on, related
> > > >
> > > > to an error thus:
> > > >
> > > > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> > > >
> > > > C:\Users\loki\GolandProjects\pod>go run gioui.org/cmd/gogio -x -target android .
> > > >
> > > > go list -f {{.ImportPath}} .
> > > >
> > > > go list -f {{.Dir}} .
> > > >
> > > > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\armeabi-v7a\libgio.so .
> > > >
> > > > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\arm64-v8a\libgio.so .
> > > >
> > > > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86\libgio.so .
> > > >
> > > > go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86_64\libgio.so .
> > > >
> > > > go list -f {{.Dir}} gioui.org/app/internal/window
> > > >
> > > > C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-30\android.jar -d C:\Users\loki\AppData\Loca
> > > >
> > > > l\Temp\gogio-502085867\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\Gio.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b796283
> > > >
> > > > 8e\app\internal\window\GioView.java
> > > >
> > > > gogio: go build -ldflags=-w -s -X gioui.org/app/internal/log.appID=com.github.pod -buildmode=c-shared -tags -o C:\Users\loki\AppData\Local\Temp\gogio-502085867\jni\x86\libgio.so . failed: # runtime/cgo
> > > >
> > > > ld: error: duplicate symbol: x_cgo_inittls
> > > >
> > > > > > > defined at gcc_android.c:90
> > > > > > >
> > > > > > > $WORK\b095\_x003.o:(x_cgo_inittls)
> > > > > > >
> > > > > > > defined at gcc_linux_386.c:15
> > > > > > >
> > > > > > > $WORK\b095\_x006.o:(.bss+0x4)
> > > > > > >
> > > > > > > clang: error: linker command failed with exit code 1 (use -v to see invocation)
> > > >
> > > > exit status 1
> > > >
> > > > C:\Users\loki\GolandProjects\pod>
> > > >
> > > > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> > >
> > > This error is caused by the NDK version being incompatible with Go
> > >
> > > 1.15 and 1.14.
> > >
> > > > I found a suggestion from the related issue https://github.com/golang/go/issues/42655 which refers also to
> > > >
> > > > https://go-review.googlesource.com/c/go/+/280312 which I can see Elias has contributed a patch to the Go source code
> > >
> > > This issue and CL fixes the error above, and makes Go 1.16 compatible
> > >
> > > with the newest NDK version.
> > >
> > > > I have tried with version 21 of the NDK and I got a different error:
> > > >
> > > > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> > > >
> > > > gogio: C:\Program Files\JetBrains\GoLand 2020.2.3\jbr\bin\javac.exe -target 1.8 -source 1.8 -sourcepath C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window -bootclasspath C:\Users\loki\AppData\Local\Android\Sdk\platforms\android-23\android.jar -d C:\Users\loki\AppDa
> > > >
> > > > ta\Local\Temp\gogio-448105471\classes C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\Gio.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioActivity.java C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759
> > > >
> > > > b7962838e\app\internal\window\GioView.java failed: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:25: error: cannot find symbol
> > > >
> > > > import android.view.PointerIcon;
> > > >
> > > > ^
> > > >
> > > > symbol: class PointerIcon
> > > >
> > > > location: package android.view
> > > >
> > > > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:65: error: cannot find symbol
> > > >
> > > > if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
> > > >
> > > > ^
> > > >
> > > > symbol: variable O
> > > >
> > > > location: class VERSION_CODES
> > > >
> > > > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:66: error: cannot find symbol
> > > >
> > > > scrollXScale = conf.getScaledHorizontalScrollFactor();
> > > >
> > > > ^
> > > >
> > > > symbol: method getScaledHorizontalScrollFactor()
> > > >
> > > > location: variable conf of type ViewConfiguration
> > > >
> > > > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:67: error: cannot find symbol
> > > >
> > > > scrollYScale = conf.getScaledVerticalScrollFactor();
> > > >
> > > > ^
> > > >
> > > > symbol: method getScaledVerticalScrollFactor()
> > > >
> > > > location: variable conf of type ViewConfiguration
> > > >
> > > > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:70: error: cannot find symbol
> > > >
> > > > setDefaultFocusHighlightEnabled(false);
> > > >
> > > > ^
> > > >
> > > > symbol: method setDefaultFocusHighlightEnabled(boolean)
> > > >
> > > > location: class GioView
> > > >
> > > > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:128: error: cannot find symbol
> > > >
> > > > if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
> > > >
> > > > ^
> > > >
> > > > symbol: variable N
> > > >
> > > > location: class VERSION_CODES
> > > >
> > > > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:131: error: cannot find symbol
> > > >
> > > > PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
> > > >
> > > > ^
> > > >
> > > > symbol: class PointerIcon
> > > >
> > > > location: class GioView
> > > >
> > > > C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java:131: error: cannot find symbol
> > > >
> > > > PointerIcon pointerIcon = PointerIcon.getSystemIcon(ctx, id);
> > > >
> > > > ^
> > > >
> > > > symbol: variable PointerIcon
> > > >
> > > > location: class GioView
> > > >
> > > > Note: C:\Users\loki\go\pkg\mod\gioui.org@v0.0.0-20210108191708-759b7962838e\app\internal\window\GioView.java uses or overrides a deprecated API.
> > > >
> > > > Note: Recompile with -Xlint:deprecation for details.
> > > >
> > > > 8 errors
> > > >
> > > > exit status 1
> > > >
> > > > Show less
> > > >
> > > > Write to Wallet
> > >
> > > This error is caused by the SDK version being too old.
> > >
> > > > --8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip----8<--snip--
> > > >
> > > > It looks like until Elias's patches go into the mainline and in new versions what alternatives are there? I am trying
> > > >
> > > > a third NDK version, 20, it's very irritating because each version is a nearly 1gb download. I think that it would be very
> > > >
> > > > helpful if the documentation specifies known good versions of the dependencies for the use of gogio.
> > >
> > > NDK versions below 22 should work with Go 1.15 and below. To fix the
> > >
> > > second (Java) error, upgrade the SDK to the latest version.
> > >
> > > If you need NDK >= 22 support before Go 1.16 is released, consider backporting
> > >
> > > my fix to Go 1.15 (and 1.14). See corresponding issues here:
> > >
> > > https://github.com/golang/go/issues/43406
> > >
> > > https://github.com/golang/go/issues/43405
> > >
> > > If you want to avoid the second error of the SDK being too old, I'll
> > >
> > > gladly accept a patch to gogio that checks the version.
> > >
> > > Sorry for the confusion between NDK and SDK errors.
> > >
> > > Elias
>
Details
Message ID
<C8FL042RGG13.3PPMG0IYDBK7V@themachine>
In-Reply-To
<aYE8XO8JS5Gxb1xrZkawnrbDerd2LC7qdBBbHERdylcmeQBN3Zcq87v9ls0DqzO4rUqGljQxoEBQi3SP_y2_1mdO9kxj8ydwCbaoUBZdDY8=@protonmail.ch> (view parent)
DKIM signature
pass
Download raw message
On Sun Jan 10, 2021 at 14:49, Loki Verloren wrote:
> Also, when you say 'SDK version is too old' what is the oldest version that does work? This was with android 6.0 support.
> I have three android devices and I would prefer it if I could test on a physical device, 6, 7 and 8 versions on each android
> device. I will try 7, but if you could expand on what the oldest version of android SDK that is usable that would be great.
>

The SDK version determines the available API at compile time. Runtime
checks ("Build.VERSION.SDK_INT >= Build.VERSION_CODES.O") make sure
that Gio is compatible with Android 4.1 and later. There shouldn't be
any reason not to use the latest availeble SDK version.

Elias
Details
Message ID
<C8FL34BYFHAC.3UGUE89NZXIIN@themachine>
In-Reply-To
<uBcn92O4Djo5vhoKKAi71fzUvaAIe747M0yU2w1_77xMvgYZ41HNiYQnEApeIvZjVfIqvb1FEtrTIAJeMS5Cn_BF7ZxpWViY_b1DlHd2P5g=@protonmail.ch> (view parent)
DKIM signature
pass
Download raw message
On Sun Jan 10, 2021 at 14:52, Loki Verloren wrote:
> Also just a random question. There was a commit dated 31 october 2020. It is no longer in the
> repository. Why was it deleted?
>

Which commit? I sometimes rebase commits away if they're recent and
sufficiently embarrassing :)

Elias
Details
Message ID
<C8FL4HI7DQST.1B2T34XB5C497@themachine>
In-Reply-To
<suosZf_LvIP9PVDoFXJLfCv3CPX4V8D360tHY24upPi5lsrxuOq3LaxK3jqIT6hOCaITE47kqZWEpuiy04yMpVRGJpHBO6Smgm21Ar-cGgQ=@protonmail.ch> (view parent)
DKIM signature
pass
Download raw message
On Sun Jan 10, 2021 at 14:46, Loki Verloren wrote:
> Maybe you can c&p those notes you just wrote into the section on gioui.org on building for android,
> to prevent others from having to ask this question again later.
>

I don't think it's worth noting these details in the install
instructions when we have a tool that can give much more accurate
errors. Documentation can be outdated, be ignored or the user may
*think* they have the right dependencies, but really not.

Elias
Details
Message ID
<8df89b39-208f-4cb7-9f60-06ff8aa2494e@www.fastmail.com>
In-Reply-To
<C8FL4HI7DQST.1B2T34XB5C497@themachine> (view parent)
DKIM signature
missing
Download raw message
If you would like to prevent that Android 7 (or lower) to run, you can use: `gogio -minsdk 26`. It doesn't need to have a NDK 26. You can have the NDK 21 and it will compile, but will not install on Android 7 (and lower).
Details
Message ID
<LutZPVOOW6zUn6S1q9x_bHpjGiUCYKHslX314H_0V1m68TtWauIxPo6xr042S71dSLXT6k4HJ8aom9cYYYQbq4f76aKPrfvo-9mx-sLKBC8=@protonmail.ch>
In-Reply-To
<C8FL34BYFHAC.3UGUE89NZXIIN@themachine> (view parent)
DKIM signature
pass
Download raw message
Well it was at least a month since the commit had been made, when I discovered it was gone.
It was exactly the one that afterwards a LOT of breaks happen. I picked that commit precisely
because the next one broke my build.

Are you trying to tell me that android 11 apps can run on an android 7 device? Since when?

Maybe you are misinformed. I'm pretty sure I can't run an SDK 25 app on SDK 24 based device.
I have encountered this problem numerous times in the past because I am so often with 2
years old hardware. 'this is not compatible with your device'. Because of SDK version.

Maybe the numbers of android 7 devices remaining favours your perspective on this but
if I can't run an app on my blackview bv6000, I am mystified as to what substantial feature
is missing that meant the app developer didn't use an earlier version that still has
physical devices capable of running it and not the newer version.

Also, please, start using tags. It doesn't matter if something is stable or not - go.mod files
make working with untagged repos with nearly only one branch a pain to do back-tracking of
versioning breaks. I personally put a tag with an extra third version number (eg v0.4.23, my latest)
that keeps incrementing whenever the commits are stable enough.

Go's modules require dates with full seconds included in them for untagged commits. Gitkraken, at least,
does not show the seconds so constructing a valid go.mod version tag for an untagged repo is a huge
pain in the ass.

I personally think that versioning should just be progressive and not update minor or major versions until
milestones. Add a new tag on each commit that conveys the information about its version and bump minor and
versions depending on stability and completion of the API. My project is near beta, so I think v0.4 is a
good label for that status, and 0.5 is my beta marker.

Gio is actually quite stable, i mean, since ages ago, it's very stable. Yes, changing versions after halloween
is especially complicated, but prior to that you had a pretty stable system. I personally
will very much appreciate it when I start seeing tags on this repo.

It's up to you, of course, but as possibly one of the most advanced users of your library - refer
to this: https://github.com/p9c/pod/blob/master/pkg/gui/list.go to see what I mean

It only has a couple of minor glitches. One is that when a lot of processing slows framerate down, the lag between the current
cursor position and the grabber grows. Second is that when you drag it downwards at the bottom it seems to mess up the coordinates
of everything in the entire layout (they slide down with mouse movement).

As you can see as you dig into it, I have implemented a method of off-screen rendering to discover
widget dimensions prior to displying them so they can be altered to fit the layout properly.
https://github.com/p9c/pod/blob/b674a2690d09e85783372db0178f41b8f37e0232/pkg/gui/list.go#L215

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Sunday, January 10th, 2021 at 16:30, Elias Naur <mail@eliasnaur.com> wrote:

> On Sun Jan 10, 2021 at 14:52, Loki Verloren wrote:
>
> > Also just a random question. There was a commit dated 31 october 2020. It is no longer in the
> >
> > repository. Why was it deleted?
>
> Which commit? I sometimes rebase commits away if they're recent and
>
> sufficiently embarrassing :)
>
> Elias
Details
Message ID
<Db94jIRpKJjoX7b-q86NjRzN7u1ZbCFHXB2n71LgcRtm1lALR2BhuJZdsEm7f2r6Yqba1RjiuJkX2b4q-jXcLkeCFHqry9gvIsvadNsAj04=@protonmail.ch>
In-Reply-To
<C8FL4HI7DQST.1B2T34XB5C497@themachine> (view parent)
DKIM signature
pass
Download raw message
except you just said you won't do the work yourself. And you already published those notes.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Sunday, January 10th, 2021 at 16:31, Elias Naur <mail@eliasnaur.com> wrote:

> On Sun Jan 10, 2021 at 14:46, Loki Verloren wrote:
>
> > Maybe you can c&p those notes you just wrote into the section on gioui.org on building for android,
> >
> > to prevent others from having to ask this question again later.
>
> I don't think it's worth noting these details in the install
>
> instructions when we have a tool that can give much more accurate
>
> errors. Documentation can be outdated, be ignored or the user may
>
> think they have the right dependencies, but really not.
>
> Elias
Details
Message ID
<D0wpJeO-c263oXZinmE5deuHw6lf5kKrGDq2fqWiG0_TF5EGmw0eJQ9Zgozn6aY2PKeUg2pPqXVNNV3Qh-mGxwt8978_sRSA_7RBU3AD5ws=@protonmail.ch>
In-Reply-To
<8df89b39-208f-4cb7-9f60-06ff8aa2494e@www.fastmail.com> (view parent)
DKIM signature
pass
Download raw message
The total opposite. So you are saying that what I can get built on the latest version with the latest SDK should work
on nougat devices? As far as I understand it, in general lower sdk versions can run on everything later, so
the minimum target being ... above 27, literally means I can't test my app on my physical devices.

As far as I understand it, from version 5, android has per-app based profile folders and linux container based isolation.
For the most part, 5 is the minimum target, which is 24, iirc. They have been entirely idiotic with their version
bumping since 25. The version numbers are nearly useless at telling you anything about how much api breaks they have
made.

Ok, Anyhow, that flag will be useful. I want it to support min 5.1, if possible, if not, at least version 7...
I don't think there is many devices still running older than this. The other thing is that it is intended that the
target market for our project will potentially have old android versions, such as the ones that are made in India.
In my opinion, the main reasons to upgrade are security, several apps I used to use can't run on my devices anymore
because of this. The vendors of these devices never bother to upgrade the version ever, except in rare cases, and
for most uses, at least functionality and visual, version 4.1 of android is enough for almost everything. Except if
security is your issue.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Sunday, January 10th, 2021 at 16:45, Lucas Rodrigues <inkeliz@inkeliz.com> wrote:

> If you would like to prevent that Android 7 (or lower) to run, you can use: `gogio -minsdk 26`. It doesn't need to have a NDK 26. You can have the NDK 21 and it will compile, but will not install on Android 7 (and lower).
Details
Message ID
<aeea6028-521c-4f9b-8203-73012826077c@www.fastmail.com>
In-Reply-To
<Db94jIRpKJjoX7b-q86NjRzN7u1ZbCFHXB2n71LgcRtm1lALR2BhuJZdsEm7f2r6Yqba1RjiuJkX2b4q-jXcLkeCFHqry9gvIsvadNsAj04=@protonmail.ch> (view parent)
DKIM signature
missing
Download raw message
> Maybe you are misinformed. I'm pretty sure I can't run an SDK 25 app on SDK 24 based device.
I have encountered this problem numerous times in the past because I am so often with 2
years old hardware. 'this is not compatible with your device'. Because of SDK version.

Sure. But I'm talking the opposite. You can set the SDK to 26, but using the NDK 21. 
Notice the "SDK" and "NDK". So, you can use the NDK 21 (which works on Gio) and set
the `-minsdk` to 26. That will show "this is not compatible with your device" on 
Android 7 (and lower), but will work on Android 8 (and higher). 

I did a test right now... Run: `go run gio.org/cmd/gogio -minsdk 26 -target android .`
That will compile on Windows (using Java 11 and NDK 21). It will NOT run on Android 7 (
and lower). But will run on Android 8 (and higher). 

That seems to achieve what you want: preventing < Android 8 to install your app.
Details
Message ID
<01jcIuASPATDu8PW7GjDF4Oor3zB5sqN5u_ojYsr-GIp524n2bJklA907w9TtHK0gOWQHqb7sWfm74ECV3tMpe6MML3je1PDzjHP4BG-hHA=@protonmail.ch>
In-Reply-To
<aeea6028-521c-4f9b-8203-73012826077c@www.fastmail.com> (view parent)
DKIM signature
pass
Download raw message
Ah, thanks for the explanation. No, I want it to work on 5.1 if possible. Or at least 7.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Sunday, January 10th, 2021 at 17:00, Lucas Rodrigues <inkeliz@inkeliz.com> wrote:

> > Maybe you are misinformed. I'm pretty sure I can't run an SDK 25 app on SDK 24 based device.
>
> I have encountered this problem numerous times in the past because I am so often with 2
>
> years old hardware. 'this is not compatible with your device'. Because of SDK version.
>
> Sure. But I'm talking the opposite. You can set the SDK to 26, but using the NDK 21.
>
> Notice the "SDK" and "NDK". So, you can use the NDK 21 (which works on Gio) and set
>
> the `-minsdk` to 26. That will show "this is not compatible with your device" on
>
> Android 7 (and lower), but will work on Android 8 (and higher).
>
> I did a test right now... Run: `go run gio.org/cmd/gogio -minsdk 26 -target android .`
>
> That will compile on Windows (using Java 11 and NDK 21). It will NOT run on Android 7 (
>
> and lower). But will run on Android 8 (and higher).
>
> That seems to achieve what you want: preventing < Android 8 to install your app.
Details
Message ID
<C8FN216FGQ0N.MVJSI3JGO48G@themachine>
In-Reply-To
<D0wpJeO-c263oXZinmE5deuHw6lf5kKrGDq2fqWiG0_TF5EGmw0eJQ9Zgozn6aY2PKeUg2pPqXVNNV3Qh-mGxwt8978_sRSA_7RBU3AD5ws=@protonmail.ch> (view parent)
DKIM signature
pass
Download raw message
On Sun Jan 10, 2021 at 15:58, Loki Verloren wrote:
> The total opposite. So you are saying that what I can get built on the latest version with the latest SDK should work
> on nougat devices? As far as I understand it, in general lower sdk versions can run on everything later, so
> the minimum target being ... above 27, literally means I can't test my app on my physical devices.
>

Yes, the SDK version built against have no bearing on which devices the
resulting program will run on. Only two things are relevant: (1) whether
your code was written to tolerate missing API and (2) the
android:minSDKVersion attribute i AndroidManifest.xml. As for (1) Gio is
written and tested on devices as old as Android 5.1 (using runtime
checks such as [0]). As for (2) minSDKVersion is by default 16 (Android
4.1). The '-minsdk' flag to gogio can set minSDKVersion higher if
want, but it doesn't sound like you do.

I urge you to verify my claims: install the latest SDK you can and try the
resulting Gio programs on your device with the lowest Android version.

Elias

[0] https://git.sr.ht/~eliasnaur/gio/tree/main/item/app/internal/window/GioView.java#L119
[1] https://git.sr.ht/~eliasnaur/gio/tree/main/item/cmd/gogio/androidbuild.go#L418
Details
Message ID
<aca5fa0c-e587-48b0-8d8b-ad9afe514561@www.fastmail.com>
In-Reply-To
<01jcIuASPATDu8PW7GjDF4Oor3zB5sqN5u_ojYsr-GIp524n2bJklA907w9TtHK0gOWQHqb7sWfm74ECV3tMpe6MML3je1PDzjHP4BG-hHA=@protonmail.ch> (view parent)
DKIM signature
missing
Download raw message
That is what I'm using to build Android apps that runs on Android 5 up to Android 11:

Java SDK 11 (the "javac.exe").
Android 10 (Q) SDK (API Level 29). (the "SDK Plataforms" on Android Studio").
NDK 21. 

When build, simple run: `gogio -target android`.
You can build with the lastest SDK, even targetting lower SDK. What defines the
"unsupported SDK" is the "-minsdk". 

So, you can use a older NDK with newer SDK, even targetting other SDK (-minsdk 21).
Details
Message ID
<HyFGhTdo6T1w40HaZereEDTTwDapUFayCxp8ogrK9V4dLDJtgmizuB4LFFKX_IeRTP8zzM6QcO_Os7K81cjCGnQ-rh5G6kr_yuDHGhducXA=@protonmail.ch>
In-Reply-To
<aca5fa0c-e587-48b0-8d8b-ad9afe514561@www.fastmail.com> (view parent)
DKIM signature
pass
Download raw message
Specifics really help a lot, I am trying this now.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Sunday, January 10th, 2021 at 18:12, Lucas Rodrigues <inkeliz@inkeliz.com> wrote:

> That is what I'm using to build Android apps that runs on Android 5 up to Android 11:
>
> Java SDK 11 (the "javac.exe").
>
> Android 10 (Q) SDK (API Level 29). (the "SDK Plataforms" on Android Studio").
>
> NDK 21.
>
> When build, simple run: `gogio -target android`.
>
> You can build with the lastest SDK, even targetting lower SDK. What defines the
>
> "unsupported SDK" is the "-minsdk".
>
> So, you can use a older NDK with newer SDK, even targetting other SDK (-minsdk 21).
Details
Message ID
<1bWQ3bSYU6QOf-XGUXpImccrbUeIJr1rwAncF0LxQ3qiGWl0Xx12W7Fzn44NzAwBkrs1HC5MtYIGVuYGH0kU82MUQ20dtTsRCs8x3Jy6kBY=@protonmail.ch>
In-Reply-To
<HyFGhTdo6T1w40HaZereEDTTwDapUFayCxp8ogrK9V4dLDJtgmizuB4LFFKX_IeRTP8zzM6QcO_Os7K81cjCGnQ-rh5G6kr_yuDHGhducXA=@protonmail.ch> (view parent)
DKIM signature
pass
Download raw message
this is what I'm getting now, on version 29 as well as previous versions:

gogio: exec: "C:\\Users\\loki\\AppData\\Local\\Android\\Sdk\\build-tools\\27.0.1\\d8": file does not exist
exit status 1

why is it looking for that? The installed version 27 also gave the same error.

I am using NDK 20

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Sunday, January 10th, 2021 at 18:32, Loki Verloren <stalker.loki@protonmail.ch> wrote:

> Specifics really help a lot, I am trying this now.
>
> Sent with ProtonMail Secure Email.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On Sunday, January 10th, 2021 at 18:12, Lucas Rodrigues inkeliz@inkeliz.com wrote:
>
> > That is what I'm using to build Android apps that runs on Android 5 up to Android 11:
> >
> > Java SDK 11 (the "javac.exe").
> >
> > Android 10 (Q) SDK (API Level 29). (the "SDK Plataforms" on Android Studio").
> >
> > NDK 21.
> >
> > When build, simple run: `gogio -target android`.
> >
> > You can build with the lastest SDK, even targetting lower SDK. What defines the
> >
> > "unsupported SDK" is the "-minsdk".
> >
> > So, you can use a older NDK with newer SDK, even targetting other SDK (-minsdk 21).
Details
Message ID
<rfh9yyuOXrhpU06Jsirnjz0Xe_cDnt-sUUFFrB3ppHXsvSfc09i8UJXtCCuwH6ItE1z6XNYRmA596z0fOnUqNYlQTm-9V5l2sEgm4g-kerU=@protonmail.ch>
In-Reply-To
<1bWQ3bSYU6QOf-XGUXpImccrbUeIJr1rwAncF0LxQ3qiGWl0Xx12W7Fzn44NzAwBkrs1HC5MtYIGVuYGH0kU82MUQ20dtTsRCs8x3Jy6kBY=@protonmail.ch> (view parent)
DKIM signature
pass
Download raw message
sorry, wasn't clear. That was the version. Obviously d8 is not in version 27.

I am upgrading the sdk build tools to the latest, since as I am understanding everyone, that's what is
supposed to be done. Hopefully after this I get a build :/

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Sunday, January 10th, 2021 at 19:00, Loki Verloren <stalker.loki@protonmail.ch> wrote:

> this is what I'm getting now, on version 29 as well as previous versions:
>
> gogio: exec: "C:\\Users\\loki\\AppData\\Local\\Android\\Sdk\\build-tools\\27.0.1\\d8": file does not exist
>
> exit status 1
>
> why is it looking for that? The installed version 27 also gave the same error.
>
> I am using NDK 20
>
> Sent with ProtonMail Secure Email.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On Sunday, January 10th, 2021 at 18:32, Loki Verloren stalker.loki@protonmail.ch wrote:
>
> > Specifics really help a lot, I am trying this now.
> >
> > Sent with ProtonMail Secure Email.
> >
> > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> >
> > On Sunday, January 10th, 2021 at 18:12, Lucas Rodrigues inkeliz@inkeliz.com wrote:
> >
> > > That is what I'm using to build Android apps that runs on Android 5 up to Android 11:
> > >
> > > Java SDK 11 (the "javac.exe").
> > >
> > > Android 10 (Q) SDK (API Level 29). (the "SDK Plataforms" on Android Studio").
> > >
> > > NDK 21.
> > >
> > > When build, simple run: `gogio -target android`.
> > >
> > > You can build with the lastest SDK, even targetting lower SDK. What defines the
> > >
> > > "unsupported SDK" is the "-minsdk".
> > >
> > > So, you can use a older NDK with newer SDK, even targetting other SDK (-minsdk 21).
Details
Message ID
<mlYUUN7abxl-_otmoNPBz6lpLJzp9Z567bDmXoUTcXqyWaU5VC8W-PbymDYtOIls-ZZlCXgiJ6BeR-KNiMGrLJ9MfzULh3Nio3L7yeneV0k=@protonmail.ch>
In-Reply-To
<rfh9yyuOXrhpU06Jsirnjz0Xe_cDnt-sUUFFrB3ppHXsvSfc09i8UJXtCCuwH6ItE1z6XNYRmA596z0fOnUqNYlQTm-9V5l2sEgm4g-kerU=@protonmail.ch> (view parent)
DKIM signature
pass
Download raw message
just updating, I got an apk file in the end, and the app doesn't run, immediately closes and pops up a process died error.
So I guess I'm gonna have to work with the simulator to debug why it's not working. To be honest I'm not sure if apps with
so many child processes are very straight forward to deploy onto android or ios devices. We have seen other, simpler apps
build and run fine on android so far but I have not yet seen Pod run on one. There's so many factors in it that I
couldn't even hardly speculate what the bug is. It could be the spawning of child processes, it could be the UDP4
multicast in the miner component, it could be something to do with writing files (everything writes to the system profile
folder, how I set it up made things work with another app a colleague is working on, allowing it to display PDF files,
generated by a pdf generator script.), it could be pprof, or something else that is loaded at the start that hasn't got
proper android support. When I come to doing this task, I will just work with emulators until it even shows the unlock page.

Thanks for the help guys :)

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Sunday, January 10th, 2021 at 19:02, Loki Verloren <stalker.loki@protonmail.ch> wrote:

> sorry, wasn't clear. That was the version. Obviously d8 is not in version 27.
>
> I am upgrading the sdk build tools to the latest, since as I am understanding everyone, that's what is
>
> supposed to be done. Hopefully after this I get a build :/
>
> Sent with ProtonMail Secure Email.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On Sunday, January 10th, 2021 at 19:00, Loki Verloren stalker.loki@protonmail.ch wrote:
>
> > this is what I'm getting now, on version 29 as well as previous versions:
> >
> > gogio: exec: "C:\\Users\\loki\\AppData\\Local\\Android\\Sdk\\build-tools\\27.0.1\\d8": file does not exist
> >
> > exit status 1
> >
> > why is it looking for that? The installed version 27 also gave the same error.
> >
> > I am using NDK 20
> >
> > Sent with ProtonMail Secure Email.
> >
> > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> >
> > On Sunday, January 10th, 2021 at 18:32, Loki Verloren stalker.loki@protonmail.ch wrote:
> >
> > > Specifics really help a lot, I am trying this now.
> > >
> > > Sent with ProtonMail Secure Email.
> > >
> > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> > >
> > > On Sunday, January 10th, 2021 at 18:12, Lucas Rodrigues inkeliz@inkeliz.com wrote:
> > >
> > > > That is what I'm using to build Android apps that runs on Android 5 up to Android 11:
> > > >
> > > > Java SDK 11 (the "javac.exe").
> > > >
> > > > Android 10 (Q) SDK (API Level 29). (the "SDK Plataforms" on Android Studio").
> > > >
> > > > NDK 21.
> > > >
> > > > When build, simple run: `gogio -target android`.
> > > >
> > > > You can build with the lastest SDK, even targetting lower SDK. What defines the
> > > >
> > > > "unsupported SDK" is the "-minsdk".
> > > >
> > > > So, you can use a older NDK with newer SDK, even targetting other SDK (-minsdk 21).
Details
Message ID
<xLlXHloXo87XmH8m6909PMeQrJhNbvaTameHiuNd3j1rC_BzzBUhQP9NWce3_dx6_XvsgZSbxPQ83oAz-0UCPucZmKzOq9bwFolyBK41Z70=@protonmail.ch>
In-Reply-To
<mlYUUN7abxl-_otmoNPBz6lpLJzp9Z567bDmXoUTcXqyWaU5VC8W-PbymDYtOIls-ZZlCXgiJ6BeR-KNiMGrLJ9MfzULh3Nio3L7yeneV0k=@protonmail.ch> (view parent)
DKIM signature
pass
Download raw message
ah yes, apologies, just had to add, it built fine with the latest SDK, and NDK version 20. At least it made an apk file anyhow.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Sunday, January 10th, 2021 at 21:24, Loki Verloren <stalker.loki@protonmail.ch> wrote:

> just updating, I got an apk file in the end, and the app doesn't run, immediately closes and pops up a process died error.
>
> So I guess I'm gonna have to work with the simulator to debug why it's not working. To be honest I'm not sure if apps with
>
> so many child processes are very straight forward to deploy onto android or ios devices. We have seen other, simpler apps
>
> build and run fine on android so far but I have not yet seen Pod run on one. There's so many factors in it that I
>
> couldn't even hardly speculate what the bug is. It could be the spawning of child processes, it could be the UDP4
>
> multicast in the miner component, it could be something to do with writing files (everything writes to the system profile
>
> folder, how I set it up made things work with another app a colleague is working on, allowing it to display PDF files,
>
> generated by a pdf generator script.), it could be pprof, or something else that is loaded at the start that hasn't got
>
> proper android support. When I come to doing this task, I will just work with emulators until it even shows the unlock page.
>
> Thanks for the help guys :)
>
> Sent with ProtonMail Secure Email.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On Sunday, January 10th, 2021 at 19:02, Loki Verloren stalker.loki@protonmail.ch wrote:
>
> > sorry, wasn't clear. That was the version. Obviously d8 is not in version 27.
> >
> > I am upgrading the sdk build tools to the latest, since as I am understanding everyone, that's what is
> >
> > supposed to be done. Hopefully after this I get a build :/
> >
> > Sent with ProtonMail Secure Email.
> >
> > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> >
> > On Sunday, January 10th, 2021 at 19:00, Loki Verloren stalker.loki@protonmail.ch wrote:
> >
> > > this is what I'm getting now, on version 29 as well as previous versions:
> > >
> > > gogio: exec: "C:\\Users\\loki\\AppData\\Local\\Android\\Sdk\\build-tools\\27.0.1\\d8": file does not exist
> > >
> > > exit status 1
> > >
> > > why is it looking for that? The installed version 27 also gave the same error.
> > >
> > > I am using NDK 20
> > >
> > > Sent with ProtonMail Secure Email.
> > >
> > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> > >
> > > On Sunday, January 10th, 2021 at 18:32, Loki Verloren stalker.loki@protonmail.ch wrote:
> > >
> > > > Specifics really help a lot, I am trying this now.
> > > >
> > > > Sent with ProtonMail Secure Email.
> > > >
> > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> > > >
> > > > On Sunday, January 10th, 2021 at 18:12, Lucas Rodrigues inkeliz@inkeliz.com wrote:
> > > >
> > > > > That is what I'm using to build Android apps that runs on Android 5 up to Android 11:
> > > > >
> > > > > Java SDK 11 (the "javac.exe").
> > > > >
> > > > > Android 10 (Q) SDK (API Level 29). (the "SDK Plataforms" on Android Studio").
> > > > >
> > > > > NDK 21.
> > > > >
> > > > > When build, simple run: `gogio -target android`.
> > > > >
> > > > > You can build with the lastest SDK, even targetting lower SDK. What defines the
> > > > >
> > > > > "unsupported SDK" is the "-minsdk".
> > > > >
> > > > > So, you can use a older NDK with newer SDK, even targetting other SDK (-minsdk 21).
Details
Message ID
<C8FU5UKIZ6H8.2FK0BGHNONJOR@themachine>
In-Reply-To
<mlYUUN7abxl-_otmoNPBz6lpLJzp9Z567bDmXoUTcXqyWaU5VC8W-PbymDYtOIls-ZZlCXgiJ6BeR-KNiMGrLJ9MfzULh3Nio3L7yeneV0k=@protonmail.ch> (view parent)
DKIM signature
pass
Download raw message
On Sun Jan 10, 2021 at 20:24, Loki Verloren wrote:
> just updating, I got an apk file in the end, and the app doesn't run, immediately closes and pops up a process died error.
> So I guess I'm gonna have to work with the simulator to debug why it's not working. To be honest I'm not sure if apps with
> so many child processes are very straight forward to deploy onto android or ios devices. We have seen other, simpler apps
> build and run fine on android so far but I have not yet seen Pod run on one. There's so many factors in it that I
> couldn't even hardly speculate what the bug is. It could be the spawning of child processes, it could be the UDP4
> multicast in the miner component, it could be something to do with writing files (everything writes to the system profile
> folder, how I set it up made things work with another app a colleague is working on, allowing it to display PDF files,
> generated by a pdf generator script.), it could be pprof, or something else that is loaded at the start that hasn't got
> proper android support. When I come to doing this task, I will just work with emulators until it even shows the unlock page.
>

Perhaps I'm missing something, but "adb logcat" works with both devices
and emulators. Crashes and output from Go should appear in the log,
enabling you to figure out what part of your program fails at launch.

Elias
Details
Message ID
<jcDTQ9C5r6ZFO_yjaO3tbtBJRr0XbhYtwYfbQSdVPzCKz1unR-81_dCZYEbK5zjnY-oKVH30toqNCn4ixqHEXjD0Wx2MfwXT2SPcekuFCFw=@protonmail.ch>
In-Reply-To
<C8FU5UKIZ6H8.2FK0BGHNONJOR@themachine> (view parent)
DKIM signature
pass
Download raw message
Excellent, thankyou for the tip.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Sunday, January 10th, 2021 at 23:36, Elias Naur <mail@eliasnaur.com> wrote:

> On Sun Jan 10, 2021 at 20:24, Loki Verloren wrote:
>
> > just updating, I got an apk file in the end, and the app doesn't run, immediately closes and pops up a process died error.
> >
> > So I guess I'm gonna have to work with the simulator to debug why it's not working. To be honest I'm not sure if apps with
> >
> > so many child processes are very straight forward to deploy onto android or ios devices. We have seen other, simpler apps
> >
> > build and run fine on android so far but I have not yet seen Pod run on one. There's so many factors in it that I
> >
> > couldn't even hardly speculate what the bug is. It could be the spawning of child processes, it could be the UDP4
> >
> > multicast in the miner component, it could be something to do with writing files (everything writes to the system profile
> >
> > folder, how I set it up made things work with another app a colleague is working on, allowing it to display PDF files,
> >
> > generated by a pdf generator script.), it could be pprof, or something else that is loaded at the start that hasn't got
> >
> > proper android support. When I come to doing this task, I will just work with emulators until it even shows the unlock page.
>
> Perhaps I'm missing something, but "adb logcat" works with both devices
>
> and emulators. Crashes and output from Go should appear in the log,
>
> enabling you to figure out what part of your program fails at launch.
>
> Elias
Reply to thread Export thread (mbox)