Comments (8)
Hey
I will look into this.
from qt.
It should work now 038c906
You need to download the latest android-ndk: r12b
And also use the android-sdk tool (C:\android\android-sdk\tools\android.bat
) to update/install the dependencies.
- Tools
- Android SDK Build-tools (24.0.1)
- Android 7.0 (API 24)
- SDK Platform
Then just run the setup.bat android
as usual.
from qt.
Cool. Thanks. I'll give it a try!
from qt.
Hi tr!
λ setup.bat android
go get golang.org/x/crypto/ssh
if 0 NEQ 0 exit /b 0
go run ./internal/setup/check.go android
if 0 NEQ 0 exit /b 0
go run C:\goworksp/src/github.com/therecipe/qt/internal/setup/generate.go android
if 0 NEQ 0 exit /b 0
go run C:\goworksp/src/github.com/therecipe/qt/internal/setup/install.go android
------------------------install-------------------------
core
install.Core_1
output:# github.com/therecipe/qt/core
C:\windows\go-build891076022\github.com\therecipe\qt\core\_obj\_cgo_main.c: In function 'crosscall2':
C:\windows\go-build891076022\github.com\therecipe\qt\core\_obj\_cgo_main.c:2:23: warning: unused parameter 'fn'
[-Wunused-parameter]
void crosscall2(void(*fn)(void*, int), void *a, int c) { }
^
C:\windows\go-build891076022\github.com\therecipe\qt\core\_obj\_cgo_main.c:2:46: warning: unused parameter 'a'
[-Wunused-parameter]
void crosscall2(void(*fn)(void*, int), void *a, int c) { }
^
C:\windows\go-build891076022\github.com\therecipe\qt\core\_obj\_cgo_main.c:2:53: warning: unused parameter 'c'
[-Wunused-parameter]
void crosscall2(void(*fn)(void*, int), void *a, int c) { }
^
C:\windows\go-build891076022\github.com\therecipe\qt\core\_obj\_cgo_main.c: In function '_cgo_allocate':
C:\windows\go-build891076022\github.com\therecipe\qt\core\_obj\_cgo_main.c:5:26: warning: unused parameter 'a'
[-Wunused-parameter]
void _cgo_allocate(void *a, int c) { }
^
C:\windows\go-build891076022\github.com\therecipe\qt\core\_obj\_cgo_main.c:5:33: warning: unused parameter 'c'
[-Wunused-parameter]
void _cgo_allocate(void *a, int c) { }
^
C:\windows\go-build891076022\github.com\therecipe\qt\core\_obj\_cgo_main.c: In function '_cgo_panic':
C:\windows\go-build891076022\github.com\therecipe\qt\core\_obj\_cgo_main.c:6:23: warning: unused parameter 'a'
[-Wunused-parameter]
void _cgo_panic(void *a, int c) { }
^
C:\windows\go-build891076022\github.com\therecipe\qt\core\_obj\_cgo_main.c:6:30: warning: unused parameter 'c'
[-Wunused-parameter]
void _cgo_panic(void *a, int c) { }
^
# github.com/therecipe/qt/core
core\core.go: In function '_cgo_371cc2c91f15_Cfunc_QCoreApplication_QCoreApplication_Flush':
core\core.go:10154:33: warning: unused variable 'a' [-Wunused-variable]
^
core\core.go: In function '_cgo_371cc2c91f15_Cfunc_QThread_QThread_YieldCurrentThread':
core\core.go:46726:33: warning: unused variable 'a' [-Wunused-variable]
func (ptr *QPropertyAnimation) UpdateDirectionDefault(direction QAbstractAnimation__Direction) {
^
# github.com/therecipe/qt/core
core\core.cpp:9:30: fatal error: QAbstractAnimation: No such file or directory
#include <QAbstractAnimation>
^
compilation terminated.
error:exit status 2
exit status 1
if 1 NEQ 0 exit /b 1
Btw - I was wondering if there will be a release that will fix memory leak issues. On windows, even on a minimal program with parents set correctly there is steady memory leak.
from qt.
Did you run the desktop setup first?
You can check the qt/core/cgo_android_arm.go
file for one of those lines /usr/local/Qt5.7.0/5.7/android_armv7
.
If it does contain one of those, you need to run the desktop setup first and then run the android setup afterwards.
If this doesn't work, could you please verify that the QAbstractAnimation
file exists in C:/Qt/Qt5.7.0/5.7/android_armv7/include/QtCore/
?
And yes, I will release a fix for the memory leak issue as well as for the generic lists.
Maybe there is a simple way to fix most of the leaks, but I will have to look into this in detail.
I will keep you updated, if I find something.
from qt.
C:\goworksp\src\github.com\therecipe\qt (master)
λ setup.bat
go get golang.org/x/crypto/ssh
if 0 NEQ 0 exit /b 0
go run ./internal/setup/check.go
if 0 NEQ 0 exit /b 0
go run C:\goworksp/src/github.com/therecipe/qt/internal/setup/generate.go
------------------------generate------------------------
core 14s
androidextras 0
gui 11s
network 2s
sql 1s
xml 1s
dbus 0
nfc 0
script 0
sensors 2s
positioning 0
widgets 37s
qml 1s
websockets 0
xmlpatterns 0
bluetooth 1s
webchannel 0
svg 0
multimedia 7s
quick 2s
help 2s
location 0
scripttools 0
uitools 0
testlib 0
serialport 0
serialbus 0
printsupport 1s
designer 2s
scxml 0
gamepad 0
purchasing 0
sailfish 0
if 0 NEQ 0 exit /b 0
go run C:\goworksp/src/github.com/therecipe/qt/internal/setup/install.go
------------------------install-------------------------
core 1m12s
androidextras 1s
gui 1m7s
network 20s
sql 15m47s
xml 9s
dbus 7s
nfc 6s
script 6s
sensors 17s
positioning 6s
widgets 0
qml 8s
websockets 5s
xmlpatterns 6s
bluetooth 10s
webchannel 4s
svg 9s
multimedia 1m2s
quick 23s
help 18s
location 5s
scripttools 4s
uitools 5s
testlib 5s
serialport 4s
serialbus 8s
printsupport 15s
designer 19s
scxml 6s
gamepad 4s
purchasing 4s
sailfish 1s
if 0 NEQ 0 exit /b 0
go run C:\goworksp/src/github.com/therecipe/qt/internal/setup/test.go
------------------------test----------------------------
widgets\line_edits 1m7s
widgets\video_player 1m25s
widgets\graphicsscene 56s
widgets\dropsite 1m58s
quick\bridge 1m39s
quick\bridge2 1m32s
quick\calc 1m7s
quick\dialog 1m10s
quick\translate 1m16s
quick\view 1m14s
qml\application 37s
qml\prop 30s
uitools\calculator 1m13s
C:\goworksp\src\github.com\therecipe\qt (master)
λ setup.bat android
go get golang.org/x/crypto/ssh
if 0 NEQ 0 exit /b 0
go run ./internal/setup/check.go android
if 0 NEQ 0 exit /b 0
go run C:\goworksp/src/github.com/therecipe/qt/internal/setup/generate.go android
if 0 NEQ 0 exit /b 0
go run C:\goworksp/src/github.com/therecipe/qt/internal/setup/install.go android
------------------------install-------------------------
core 1m6s
androidextras 3s
gui 54s
network 17s
sql 12m18s
xml 8s
nfc 5s
script 4s
sensors 17s
positioning 5s
widgets 0
qml 7s
websockets 4s
xmlpatterns 5s
bluetooth 9s
webchannel 3s
svg 8s
multimedia 55s
quick 20s
help 17s
location 5s
scripttools 4s
uitools 4s
testlib 5s
serialport 3s
serialbus 7s
printsupport 15s
scxml 5s
gamepad 3s
purchasing 3s
sailfish 1s
if 0 NEQ 0 exit /b 0
go run C:\goworksp/src/github.com/therecipe/qt/internal/setup/test.go android
------------------------test----------------------------
widgets\line_edits
test.widgets\line_edits
output:file.Load open C:\goworksp\src\github.com\therecipe\qt\internal\examples\widgets\line_edits\android\line_edits.keystore: The system cannot find the file specified.
deploy
output:
C:\goworksp\src\github.com\therecipe\qt {git}{hg}
{lamb} set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101
C:\goworksp\src\github.com\therecipe\qt {git}{hg}
{lamb} C:\Qt\Qt5.7.0\5.7\android_armv7\bin\androiddeployqt.exe --input C:\goworksp\src\github.com\therecipe\qt\internal\examples\widgets\line_edits\deploy\android\android-libgo.so-deployment-settings.json --output C:\goworksp\src\github.com\therecipe\qt\internal\examples\widgets\line_edits\deploy\android\build --deployment bundled --android-platform android-24 --jdk C:\Program Files\Java\jdk1.8.0_101 --gradle
Generating Android Package
Input file: C:\goworksp\src\github.com\therecipe\qt\internal\examples\widgets\line_edits\deploy\android\android-libgo.so-deployment-settings.json
Output directory: C:/goworksp/src/github.com/therecipe/qt/internal/examples/widgets/line_edits/deploy/android/build/
Application binary: C:/goworksp/src/github.com/therecipe/qt/internal/examples/widgets/line_edits/deploy/android/libgo.so
Android build platform: android-24
Install to device: No
Cannot find template directory C:/android/android-sdk/tools/templates/gradle/wrapper
error:exit status 3
error:exit status 1
exit status 1
C:\goworksp\src\github.com\therecipe\qt (master)
λ
from qt.
Did you rename the android-sdk-windows
folder to android-sdk
?
You need to get this path C:/android/android-sdk/tools/templates/gradle/wrapper
valid.
Also, you can now just run the android setup again and it should skip the installation and only test the examples.
from qt.
For some reason the tools folder got deleted. I had to open up the sdk zip and copy that over again.
Everything compiled and a few of them ran on the phone (calculator, graphics, and line edit)! Looking forward to testing new code! Thanks tr!
Yes, please keep me updated of the memory issue. Thanks!
from qt.
Related Issues (20)
- new version of golang compiler is no longer support cmd "go get", can update readme helper ?
- Hello! I have a problem
- deploying linux to windows build fail with newqwebengineview. thanks for your help HOT 4
- Is alive? HOT 1
- Issue with using *QFileDialog.SelectedFiles(), "interface conversion: interface {} is []interface {}, not []string" HOT 1
- /usr/bin/ld: i386 architecture of input file `/tmp/go-link-3590783856/000000.o' is incompatible with i386:x86-64 output HOT 2
- Is there an active fork of this project? HOT 7
- android APK crashes when launched
- Installation fails for Qt 6 HOT 2
- !!! Read before opening a new issue !!!
- qtdeploy may not work with Go1.20 HOT 1
- go: warning: "github.com/therecipe/qt/cmd/..." matched no packages HOT 1
- menu.Actions() panics
- How to add a property sheet file to Qt
- How can I deploy a program to an arm development board and don't see a good way
- Intermittent Qtdeploy Failures HOT 1
- Gave up - Docs need some work for new people HOT 1
- is this project still maintains, what's the latest qt version does it support HOT 2
- qtsetup fails
- qtsetup error in freebsd 14.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qt.