From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8947 invoked by alias); 4 Feb 2015 23:20:20 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 8935 invoked by uid 89); 4 Feb 2015 23:20:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_COUK,KAM_FROM_URIBL_PCCC,SPF_PASS autolearn=no version=3.3.2 X-HELO: out.ipsmtp2nec.opaltelecom.net Received: from out.ipsmtp2nec.opaltelecom.net (HELO out.ipsmtp2nec.opaltelecom.net) (62.24.202.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 04 Feb 2015 23:20:17 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CmAQD6qNJU/6rcRk8NTYcyxxkBAQEBAYUzBFE9FgsCBAcDAgECAVgIAQHHTXCWQAsBAQEBHZAVglKBQQWNLYM4gSyHP4MDjkmEEIMxAQEB X-IPAS-Result: A2CmAQD6qNJU/6rcRk8NTYcyxxkBAQEBAYUzBFE9FgsCBAcDAgECAVgIAQHHTXCWQAsBAQEBHZAVglKBQQWNLYM4gSyHP4MDjkmEEIMxAQEB Received: from 79-70-220-170.dynamic.dsl.as9105.com (HELO [127.0.0.1]) ([79.70.220.170]) by out.ipsmtp2nec.opaltelecom.net with ESMTP; 04 Feb 2015 23:20:02 +0000 Message-ID: <54D2A922.3060507@tiscali.co.uk> Date: Wed, 04 Feb 2015 23:20:00 -0000 From: David Stacey User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Cannot run Qt5 applications. Content-Type: multipart/mixed; boundary="------------060607070304050306070801" X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg00009.txt.bz2 --------------060607070304050306070801 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-length: 1341 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. --------------060607070304050306070801 Content-Type: text/plain; charset=windows-1252; name="qt5-demo.cpp" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="qt5-demo.cpp" Content-length: 371 I2luY2x1ZGUgPFFBcHBsaWNhdGlvbj4KI2luY2x1ZGUgPFFQdXNoQnV0dG9u PgoKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIqKiBhcmd2KQp7CiAgUUFwcGxp Y2F0aW9uIGFwcChhcmdjLCBhcmd2KTsKICBRUHVzaEJ1dHRvbiAqYnV0dG9u ID0gbmV3IFFQdXNoQnV0dG9uKCJIZWxsbyEiKTsKICBRT2JqZWN0Ojpjb25u ZWN0KGJ1dHRvbiwgU0lHTkFMKGNsaWNrZWQoKSksICZhcHAsIFNMT1QocXVp dCgpKSk7CiAgYnV0dG9uLT5zaG93KCk7CiAgcmV0dXJuIGFwcC5leGVjKCk7 Cn0K --------------060607070304050306070801 Content-Type: text/plain; charset=us-ascii Content-length: 223 -- 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/ --------------060607070304050306070801--