-
Notifications
You must be signed in to change notification settings - Fork 737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows build 64 bit challenges #90
Comments
Hi, I use LiteIDE and gocode does not like to parse this qt binding. I've tried IntelliJ and it parses everything EXCEPT widgets.. I've even attempted Vim and well, I can't get that to work at all - probably my own fault though. So yes - I think gocode just can't cope with qt/widgets because it's so large. Maybe we should take this up with gocode. |
Yes, there are problems with gocode auto-completion and with plugins that rely on it. For example it works with Atom + autocomplete-go on macOS. From the output above it seems like the plugin uses Therefore the plain Could you change the env of the plugin to Or use the stub version with (Or use the go1.7.1 windows/386 version) It may be necessary to update the README to make people aware of this. |
@5k3105 I only got it working on IntelliJ after I increased the JVM memory. |
Hi, For IntelliJ: Help > Edit Custom Properties
Help > Edit Custom VM Options
|
I only tried the original qt.io -based 32-bit binaries and yes they work, but when using 32-bit msys2 Were you aware of these windows msys2 64-bit binaries available? pacman -S mingw-w64-i686-qt-creator mingw-w64-x86_64-qt-creator Will your bindings work with that within the windows 64-bit msys2 shell? I undersatnd QT_DIR won't work because pacman installs it into the standard linux directories unlike the qtdistro does. But you did mention: |
another question: |
@omac777 Unfortunalley @larrylau
|
I tested mingw64 on MSYS2, I have two problems.
|
Did you needed to explicitly export the GOROOT?
Yes, the support for MSYS2 on Window, Homebrew on macOS and Pkg-Config on Linux is still somewhat experimental, but it should never less work. The problem is, that I didn't made it fully backwards compatible to previous versions of Qt yet. Did the examples show up for you? |
OK, I see.
they are showed.
I just run qtsetup, some error was occurred. ...... goroutine 1 [running]: |
Okay, could you try to build the And show me a part of the output? And also, are you able to build the other examples like |
this error means that you're using a 32-bit version of gcc. The Qt community edition installer installs a 32-bit version of gcc, which, if you follow the readme directions, winds up on %path%. Oddly, qtdeploy.exe works fine and somehow locates the correct, 64-bit gcc in this situation, but it breaks cgo, which winds up looking at the incorrect, 32-bit gcc. This problem plagued me for ... about a day and a half, haha. I'm not sure how qtdeploy.exe selects the version of gcc to use, but at least in my install, it wound up that cgo and qtdeploy were looking at different versions of gcc. tbh I just walked away from that and did everything through MSYS2, and now I have qtdeploy and cgo both working independently of one another, but I'm still trying to wrap my head around the whole MSYS2 + MinGW-64 + cgo + Qt build chain. |
On windows (for the desktop target) qtdeploy always uses the gcc version that is found inside the PATH. The Qt community edition and MSYS2 mingw32 both provide a 32-bit gcc versions, so You could also just use |
First in this environment:
with this qt:
https://download.qt.io/official_releases/qt/5.7/5.7.0/qt-opensource-windows-x86-android-5.7.0.exe
I think the issue might be that this isn't a 64bit compiler in the above.
I don't know why it works but qtdeploy works just fine and I can build apps, etc.
But if I ever try and:
In a way I think this also causes issues with gocode which makes it hard to have intellisense in stuff like atom/vscode, etc actually work because gocode I think just does go builds to resolve external contexts and when debugging gocode output or lack there of I see things like this everytime a request is made:
Even though all of it is up to date, and qtsetup etc ran without issues, and built it all.
The text was updated successfully, but these errors were encountered: