Comments (22)
Thank you.
Don't hesitate to ask, if you run into any problems.
from qt.
wonderful! how to gen the bindings? swig?
from qt.
Hi therecipe. This looks to be excellent work. Like @sunwangme I am also curious to know about the bindings generator. Will you be releasing it, or at least detailing it? I'm fine with you choosing not to, but it would be nice to know if it's coming or not before I choose to use these bindings for something non-trivial. Best wishes and thanks once again for your contribution.
from qt.
Hey
I currently got no access to the files, but I will try to release them in the next 1-2 weeks.
After I got some time to update the code and get it to work with qt 5.5 and go 1.5.
Also, I'm happy that you find this binding useful and I would love to see something build with it :)
from qt.
Hi. Thanks for replying. I'm not sure I'm going to be using your bindings yet since I'm undecided at the moment about the best approach to GUI using Go and still exploring the available options, but it will be interesting to see how you develop them in the future. Best wishes.
from qt.
Best wishes.
from qt.
Hey
I will release the files asap.
But it takes a bit longer, because I also want to get it running on android.
from qt.
thanks
from qt.
Hey
It took me longer than I expected, but here it is.
I rewrote the generator and got most qt modules working.
However, the generator code is still messy and the generated code is working, but could be better.
I got a long todo list and will work on it in the following weeks.
The next major points I will work on, are to get it working on windows.
(There is a problem with how g++ is invoking the "collect2.exe" -> https://support.microsoft.com/kb/830473)
And to get a decend deployment mechanism for android, currently I got it working by injecting the generated go library from gomobile in a modefied qt apk.
Please report any issues you may encounter.
from qt.
thanks
from qt.
how to get https://github.com/therecipe/qt/tree/master/internal/binding/dump?
from qt.
You can run the https://github.com/therecipe/qt/blob/master/internal/binding/make.sh or make.bat (which will generate the binding (and creates the dump folder), install the binding and build the examples)
Or run https://github.com/therecipe/qt/blob/master/internal/binding/gen.go (which will generate the binding and also creates the dump folder)
from qt.
haha, theory: gen from doc.index
thanks
from qt.
Hey
I just pushed the new files.
You are now able to create android apks from mac and linux with qtdeploy
.
And the next thing on my todo list is to get it working under windows.
from qt.
thanks for your hard work!
from qt.
"(windows is currently not working) -> https://support.microsoft.com/kb/830473"
Is this mean this project can not run exactly on windows
from qt.
The problem is that go install
invokes g++
in the following way:
g++ path/to/file1.o path/to/file2.o path/to/file3.o ... path/to/file1500.o
which results in an very long command-line string.
Thats no problem under linux or mac, but windows can't handle this.
So, I will have to:
a) Provide a modded "go install" version which uses "response files"
b) Fill out a bug report
c) Rewrite the "setup/install.go" code, so that it continues the install process after "go install" failed
But after that, the binding should work on windows.
from qt.
OK~
I'll wait for this
from qt.
Okay, I got it working.
The cpp files are now combined in one big file for each sub-package/module, which solves the problem.
I will push the files in the next few hours, when I got the android deployment working on windows also.
from qt.
So, I pushed the changes.
It's now also working on windows.
From now, I will focus on cleaning up the code.
from qt.
Thank you very much!
from qt.
@therecipe, Thanks!
my "custom build" hello, world! on windows:
https://github.com/jonywtf/goqt_hello_world
from qt.
Related Issues (20)
- not use vendor dictionary
- 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"
- /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
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.