goqt
goqt copied to clipboard
calculator and codeedit do not work
Running Arch Linux/amd64. All examples work, excepting calculator and codeedit (and "application doesn't show any icons in toolbar, not sure if bug or it's on my end).
calculator stdout is "error load ui"
codeedit creates a window but it's fully transparent (no content, frozen).
According to examples/version: GoQt version is 0.1.1 Qt version is 5.5.1 Go version is 1.5.2
fix it https://github.com/visualfc/goqt/commit/43bd8ecbaedeb27eb0d1ef828c10900523ee47f4 please update 0.1.2 or last
Updated. Now running ./build.sh makes goqt_rcc generate a comment at the beginning of calculatorbuilder_qrc.go with special spanish utf-8 characters (I'm running a spanish locale) and makes the Go build process crash with "illegal UTF-8 encoding" message.
If I remove the comment and skip goqt_rcc step in build.sh, I still get "error load ui".
check and run on liteide or other utf8 system test.
My locale is UTF-8 compliant. es_UY.UTF-8 to be more precise
I don't see how running your script from LiteIDE would change anything, I wouldn't know how to do it either, I use the command line Go utilities.
Today I'm install ArchLinux64 and fix GoQt to 0.1.2. The shell build examples is normal. LiteIDE filesystem build.bash right context menu to execute is normal.
Try installing Arch Linux with an es_UY.UTF-8 locale, although I'm sure you will reproduce this with other locales who use accents and similar characters.
You can also try, without needing to do a full system install, after generating with rcc the calculatorbuilder_qrc.go file, replace the header at the start with the one my system generates:
/****************************************************************************
** Resource object code
**
** Created: mié. ene. 6 11:22:04 2016
** by: The Resource Compiler for Qt version 5.5.1
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
The "é" character is the one triggering the crash.
However, even if I remove that character, and successfully compile the application afterwards with go build -ldflags "-r ." -o ../../bin/calculatorbuilder; when running the binary I get the error load ui message:
2016/01/06 11:25:30 error load ui
Please upload full qrc.go file
I just deleted an upload of the edited version without the é character. Here's the correct one:
https://www.mediafire.com/?1bygm1qun1r160s
The file won't even upload using a gist application because of the incorrect UTF-8 character.
please update to lastest and check.
https://github.com/visualfc/goqt/commits/master
Still getting "error load ui" on calculator.
However, I'm not sure what commit did it, but codeedit is now working.
Please make latest goqt rcc and upload build qrc.go file
https://gist.github.com/anonymous/74841e8947daf79d3eab
hello, I download the complete zip file just 2 days, so possibly i have the latest copies. i tried executing the examples but none of them seem to work for me. i get the following errors, runtime.main: undefined: main.init runtime.main: undefined: main.main
i have not added any new file with *_test.go I am using linux mint and go 1.5.2
kindly let me know how i can fix this issue
@rahul-goqt That seems like a different problem. You should probably post it as a new issue.
Pinging @visualfc
Any news on this?
Failed to get calculatorbuilder example working (fails with error load ui message), also icons are missing in application example (I guess same issue with loading resources). Tested on OS X 10.11.3, Ubuntu 14.04 32-bit, Ubuntu 15.10 64-bit; QT 5.5.1; Go versions 1.5.3 & 1.6.2rc2 (both on each OS above)
UPD: I've tried same configurations but with two additional QT versions. It works fine with QT 4.8.6 but fails to load UI with QT 5.2.1 and QT 5.5.1
qrc.go produced by QT 4 that works even with QT 5: https://gist.github.com/zlowred/5067e0872ef844e37483 qrc.go produced by QT 5 that fails to load UI: https://gist.github.com/zlowred/73812c5df897619b6397