Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Gentoo-Prefix]Qt 4.6.3 on macosx need help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
beyond_touch
n00b
n00b


Joined: 06 Jul 2010
Posts: 1

PostPosted: Thu Jul 08, 2010 2:52 am    Post subject: [Gentoo-Prefix]Qt 4.6.3 on macosx need help Reply with quote

On my Mac OS X 10.6.4, I installed x11-libs/qt-core-4.6.3, x11-libs/qt-gui-4.6.3 with no problem. but when I tried to test the usability of the libs with a hello world program, I got a crash.
I google it. I got a post http://www.qtcentre.org/threads/18794-Qt-4.4-on-Mac-OS-X-app-crashes-with-NSInvalidArgumentException?p=94929
And it says the problem had been fixed in Qt 4.5.*

Could anyone help me out
thx

Code:

$ equery uses qt-core
[ Legend : U - flag is set in make.conf       ]
[        : I - package is installed with flag ]
[ Colors : set, unset                         ]
 * Found these USE flags for x11-libs/qt-core-4.6.3:
 U I
 + + aqua            : Include support for the Aqua / Carbon GUI
 - - debug           : Enable extra debug codepaths, like asserts and extra
                       output. If you want to get meaningful backtraces see
                       http://www.gentoo.org/proj/en/qa/backtraces.xml
 - - doc             : Adds extra documentation (API, Javadoc, etc)
 - + exceptions      : Add support for exceptions - like catching them inside
                       the event loop (recommended by Nokia)
 - + glib            : Enable dev-libs/glib eventloop support
 - - iconv           : Enable support for the iconv character set conversion
                       library
 - - optimized-qmake : Enable qmake optimization
 - - pch             : Enable precompiled header support for faster compilation
                       at the expense of disk space and memory
                       (>=sys-devel/gcc-3.4 only)
 - - qt3support      : Enable the Qt3Support libraries for Qt4. Note that this
                       does not mean you can compile pure Qt3 programs with
                       Qt4.
 + + ssl             : Adds support for Secure Socket Layer connections
$ equery uses qt-gui
[ Legend : U - flag is set in make.conf       ]
[        : I - package is installed with flag ]
[ Colors : set, unset                         ]
 * Found these USE flags for x11-libs/qt-gui-4.6.3:
 U I
 - + accessibility : Adds support for accessibility (eg 'at-spi' library)
 + + aqua          : Include support for the Aqua / Carbon GUI
 - - cups          : Add support for CUPS (Common Unix Printing System)
 - - dbus          : Enable dbus support for anything that needs it (gpsd,
                     gnomemeeting, etc)
 - - debug         : Enable extra debug codepaths, like asserts and extra
                     output. If you want to get meaningful backtraces see
                     http://www.gentoo.org/proj/en/qa/backtraces.xml
 - + exceptions    : Add support for exceptions - like catching them inside the
                     event loop (recommended by Nokia)
 - + glib          :  Enable dev-libs/glib eventloop support
 - - gtk           : Adds support for x11-libs/gtk+ (The GIMP Toolkit)
 - - mng           : Adds support for libmng (MNG images)
 - - nas           : Adds support for network audio sound
 - - nis           : Support for NIS/YP services
 - - pch           : Enable precompiled header support for faster compilation
                     at the expense of disk space and memory
                     (>=sys-devel/gcc-3.4 only)
 - - qt3support    : Enable the Qt3Support libraries for Qt4. Note that this
                     does not mean you can compile pure Qt3 programs with Qt4.
 - - raster        :  Use the alternative raster graphicssystem as default
                     rendering engine
 - - tiff          : Adds support for the TIFF image format
 - - trace         :  Build the new 'trace' graphicsssytem engine which allows
                     to record all drawing operations into a trace buffer.
                     Later it can be replayed with the qttracereplay utility
 - - xinerama      : Add support for the xinerama X11 extension, which allows
                     you to stretch your display across multiple monitors


Code:

$ pwd
/tmp/hello
$ ls
main.cpp
$ cat main.cpp
#include <QApplication>
#include <QLabel>

int main(int argc, char *argv[]) {
  QApplication app(argc, argv);
  QLabel label("Hello World!");

  label.show();

  return app.exec();
}
$ qmake -project
$ qmake -spec macx-g++ hello.pro
$ make
g++ -c -pipe -O3 -pipe -march=nocona -mmacosx-version-min=10.6 -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/Gentoo/usr/share/qt4/mkspecs/macx-g++ -I. -I/Gentoo/usr/lib/qt4/QtCore.framework/Versions/4/Headers -I/Gentoo/usr/lib/qt4/QtCore.framework/Versions/4/Headers -I/Gentoo/usr/lib/qt4/QtGui.framework/Versions/4/Headers -I/Gentoo/usr/lib/qt4/QtGui.framework/Versions/4/Headers -I/Gentoo/usr/include/qt4 -I. -I. -F/Gentoo/usr/lib/qt4 -o main.o main.cpp
g++ -headerpad_max_install_names -headerpad_max_install_names -mmacosx-version-min=10.6 -o hello main.o   -F/Gentoo/usr/lib/qt4 -L/Gentoo/usr/lib/qt4 -framework QtGui -L/Gentoo/usr/lib -F/Gentoo/usr/lib/qt4 -L/Gentoo/usr/lib/qt4 -framework QtCore -lgthread-2.0 -lglib-2.0 -lintl
$ ./hello
2010-07-08 10:44:26.336 hello[27967:903] *** __NSAutoreleaseNoPool(): Object 0x1016098a0 of class NSCFString autoreleased with no pool in place - just leaking
2010-07-08 10:44:26.338 hello[27967:903] +[NSNotificationCenter sharedApplication]: unrecognized selector sent to class 0x7fff700891a8
2010-07-08 10:44:26.339 hello[27967:903] *** __NSAutoreleaseNoPool(): Object 0x101628810 of class NSCFString autoreleased with no pool in place - just leaking
2010-07-08 10:44:26.339 hello[27967:903] *** __NSAutoreleaseNoPool(): Object 0x1016246b0 of class NSException autoreleased with no pool in place - just leaking
2010-07-08 10:44:26.340 hello[27967:903] *** __NSAutoreleaseNoPool(): Object 0x1016290e0 of class _NSCallStackArray autoreleased with no pool in place - just leaking
2010-07-08 10:44:26.340 hello[27967:903] *** __NSAutoreleaseNoPool(): Object 0x10280fee0 of class _NSCallStackArray autoreleased with no pool in place - just leaking
2010-07-08 10:44:26.341 hello[27967:903] *** __NSAutoreleaseNoPool(): Object 0x101629290 of class NSCFString autoreleased with no pool in place - just leaking
2010-07-08 10:44:26.342 hello[27967:903] *** __NSAutoreleaseNoPool(): Object 0x101862200 of class NSCFString autoreleased with no pool in place - just leaking
2010-07-08 10:44:26.342 hello[27967:903] *** __NSAutoreleaseNoPool(): Object 0x101629620 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2010-07-08 10:44:26.343 hello[27967:903] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSNotificationCenter sharedApplication]: unrecognized selector sent to class 0x7fff700891a8'
*** Call stack at first throw:
(
   0   CoreFoundation                      0x00007fff85acacc4 __exceptionPreprocess + 180
   1   libobjc.A.dylib                     0x00007fff814820f3 objc_exception_throw + 45
   2   CoreFoundation                      0x00007fff85b241d0 __CFFullMethodName + 0
   3   CoreFoundation                      0x00007fff85a9ccdf ___forwarding___ + 751
   4   CoreFoundation                      0x00007fff85a98e28 _CF_forwarding_prep_0 + 232
   5   QtGui                               0x0000000100016609 _Z7qt_initP19QApplicationPrivatei + 768
   6   QtGui                               0x00000001000851dc _ZN19QApplicationPrivate9constructEv + 68
   7   QtGui                               0x00000001000855ab _ZN12QApplicationC2ERiPPci + 91
   8   hello                               0x0000000100002d7b main + 51
   9   hello                               0x0000000100002d40 start + 52
)
terminate called after throwing an instance of 'NSException'
Abort trap


Code:

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Application Specific Information:
abort() called
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSNotificationCenter sharedApplication]: unrecognized selector sent to class 0x7fff700891a8'
*** Call stack at first throw:
(
   0   CoreFoundation                      0x00007fff85acacc4 __exceptionPreprocess + 180
   1   libobjc.A.dylib                     0x00007fff814820f3 objc_exception_throw + 45
   2   CoreFoundation                      0x00007fff85b241d0 __CFFullMethodName + 0
   3   CoreFoundation                      0x00007fff85a9ccdf ___forwarding___ + 751
   4   CoreFoundation                      0x00007fff85a98e28 _CF_forwarding_prep_0 + 232
   5   QtGui                               0x0000000100016609 _Z7qt_initP19QApplicationPrivatei + 768
   6   QtGui                               0x00000001000851dc _ZN19QApplicationPrivate9constructEv + 68
   7   QtGui                               0x00000001000855ab _ZN12QApplicationC2ERiPPci + 91
   8   hello                               0x0000000100002d7b main + 51
   9   hello                               0x0000000100002d40 start + 52
)


Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib                0x00007fff810ab3d6 __kill + 10
1   libSystem.B.dylib                0x00007fff8114b972 abort + 83
2   libstdc++.6.dylib                0x00007fff861f45d2 __tcf_0 + 0
3   libobjc.A.dylib                  0x00007fff81485d29 _objc_terminate + 100
4   libstdc++.6.dylib                0x00007fff861f2ae1 __cxxabiv1::__terminate(void (*)()) + 11
5   libstdc++.6.dylib                0x00007fff861f2b16 __cxxabiv1::__unexpected(void (*)()) + 0
6   libstdc++.6.dylib                0x00007fff861f2bfc __gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0
7   libobjc.A.dylib                  0x00007fff81482192 object_getIvar + 0
8   com.apple.CoreFoundation         0x00007fff85b241d0 __CFFullMethodName + 0
9   com.apple.CoreFoundation         0x00007fff85a9ccdf ___forwarding___ + 751
10  com.apple.CoreFoundation         0x00007fff85a98e28 _CF_forwarding_prep_0 + 232
11  QtGui                            0x0000000100016609 qt_init(QApplicationPrivate*, int) + 768
12  QtGui                            0x00000001000851dc QApplicationPrivate::construct() + 68
13  QtGui                            0x00000001000855ab QApplication::QApplication(int&, char**, int) + 91
14  hello                            0x0000000100002d7b main + 51
15  hello                            0x0000000100002d40 start + 52

Thread 1:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib                0x00007fff8107608a kevent + 10
1   libSystem.B.dylib                0x00007fff81077f5d _dispatch_mgr_invoke + 154
2   libSystem.B.dylib                0x00007fff81077c34 _dispatch_queue_invoke + 185
3   libSystem.B.dylib                0x00007fff8107775e _dispatch_worker_thread2 + 252
4   libSystem.B.dylib                0x00007fff81077088 _pthread_wqthread + 353
5   libSystem.B.dylib                0x00007fff81076f25 start_wqthread + 13

Thread 2:
0   libSystem.B.dylib                0x00007fff81076eaa __workq_kernreturn + 10
1   libSystem.B.dylib                0x00007fff810772bc _pthread_wqthread + 917
2   libSystem.B.dylib                0x00007fff81076f25 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007fff701882d8  rcx: 0x00007fff5fbfe498  rdx: 0x0000000000000000
  rdi: 0x0000000000006d0b  rsi: 0x0000000000000006  rbp: 0x00007fff5fbfe4b0  rsp: 0x00007fff5fbfe498
   r8: 0x00007fff7018ba40   r9: 0x0000000000000063  r10: 0x00007fff810a7412  r11: 0x0000000000000206
  r12: 0x00007fff85b4fc49  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x00007fff700891a8
  rip: 0x00007fff810ab3d6  rfl: 0x0000000000000206  cr2: 0x00000001017d8000
Back to top
View user's profile Send private message
heiko__
n00b
n00b


Joined: 15 Jul 2010
Posts: 1

PostPosted: Thu Jul 15, 2010 12:52 pm    Post subject: Reply with quote

Hey, I've no solution to the problem (yet), but I just opened a bug where you can hopefully look for progress on the issue:
https://bugs.gentoo.org/show_bug.cgi?id=328385
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum