public inbox for cygwin-xfree@sourceware.org help / color / mirror / Atom feed
From: David Stacey <drstacey@tiscali.co.uk> To: cygwin-xfree@cygwin.com Subject: Cannot run Qt5 applications. Date: Wed, 04 Feb 2015 23:20:00 -0000 [thread overview] Message-ID: <54D2A922.3060507@tiscali.co.uk> (raw) [-- Attachment #1: Type: text/plain, Size: 1341 bytes --] I'm having difficulty running any Qt5 application. These are the commands I'm issuing: XWin -multiwindow & export DISPLAY=:0.0 xclock & and I see the clock, so X is up and running. Then: /usr/lib/qt5/examples/gui/analogclock/analogclock QXcbConnection: XCB error: 145 (Unknown), sequence: 162, resource id: 0, major c ode: 140 (Unknown), minor code: 20 Bad system call (core dumped) and no clock. I've tried compiling a really trivial Qt5 example (attached): g++ -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui \ -o qt5-demo qt5-demo.cpp -lQt5Widgets -lQt5Core And then running ./qt5-demo gives: QObject::connect: signal not found in QPushButton QObject::connect: signal not found in QWidget QObject::connect: signal not found in QWidget QXcbConnection: XCB error: 145 (Unknown), sequence: 162, resource id: 0, major code: 140 (Unknown), minor code: 20 Bad system call (core dumped) The demo runs fine in Fedora 21. It also runs in Cygwin when compiled with Qt4: g++ -I/usr/include/qt4 -I/usr/include/qt4/QtGui -o qt5-demo qt5-demo.cpp \ -lQtGui -lQtCore And now running the (incorrectly-named!) ./qt5-demo launches the application. Please could you advise what I'm doing wrong. Many thanks in advance, Dave. [-- Attachment #2: qt5-demo.cpp --] [-- Type: text/plain, Size: 273 bytes --] #include <QApplication> #include <QPushButton> int main(int argc, char** argv) { QApplication app(argc, argv); QPushButton *button = new QPushButton("Hello!"); QObject::connect(button, SIGNAL(clicked()), &app, SLOT(quit())); button->show(); return app.exec(); } [-- Attachment #3: Type: text/plain, Size: 223 bytes --] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
next reply other threads:[~2015-02-04 23:20 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-02-04 23:20 David Stacey [this message] 2015-02-05 1:40 ` Jon TURNEY 2015-02-06 14:57 ` David Stacey 2015-02-13 18:32 ` Jon TURNEY 2015-03-02 23:34 ` Yaakov Selkowitz 2015-03-03 9:04 ` Corinna Vinschen 2015-03-03 14:49 ` Jon TURNEY 2015-03-03 17:11 ` Corinna Vinschen
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=54D2A922.3060507@tiscali.co.uk \ --to=drstacey@tiscali.co.uk \ --cc=cygwin-xfree@cygwin.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).