Giter Club home page Giter Club logo

Comments (22)

therecipe avatar therecipe commented on May 12, 2024

Thank you.
Don't hesitate to ask, if you run into any problems.

from qt.

sunwangme avatar sunwangme commented on May 12, 2024

wonderful! how to gen the bindings? swig?

from qt.

xi2 avatar xi2 commented on May 12, 2024

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.

therecipe avatar therecipe commented on May 12, 2024

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.

xi2 avatar xi2 commented on May 12, 2024

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.

sunwangme avatar sunwangme commented on May 12, 2024

Best wishes.

from qt.

therecipe avatar therecipe commented on May 12, 2024

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.

sunwangme avatar sunwangme commented on May 12, 2024

thanks

from qt.

therecipe avatar therecipe commented on May 12, 2024

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.

sunwangme avatar sunwangme commented on May 12, 2024

thanks

from qt.

sunwangme avatar sunwangme commented on May 12, 2024

how to get https://github.com/therecipe/qt/tree/master/internal/binding/dump?

from qt.

therecipe avatar therecipe commented on May 12, 2024

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.

sunwangme avatar sunwangme commented on May 12, 2024

haha, theory: gen from doc.index

thanks

from qt.

therecipe avatar therecipe commented on May 12, 2024

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.

sunwangme avatar sunwangme commented on May 12, 2024

thanks for your hard work!

from qt.

xland avatar xland commented on May 12, 2024

@therecipe

"(windows is currently not working) -> https://support.microsoft.com/kb/830473"

Is this mean this project can not run exactly on windows

from qt.

therecipe avatar therecipe commented on May 12, 2024

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.

xland avatar xland commented on May 12, 2024

OK~
I'll wait for this

from qt.

therecipe avatar therecipe commented on May 12, 2024

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.

therecipe avatar therecipe commented on May 12, 2024

So, I pushed the changes.
It's now also working on windows.

From now, I will focus on cleaning up the code.

from qt.

xland avatar xland commented on May 12, 2024

@therecipe

Thank you very much!

from qt.

jonywtf avatar jonywtf commented on May 12, 2024

@therecipe, Thanks!
my "custom build" hello, world! on windows:
https://github.com/jonywtf/goqt_hello_world

from qt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.