c++ - SDL_CreateWindowFrom() with Qt widget under Mac OS -


i using libsdl2 in qt app. code working under linux , windows failing under mac os. here crash output:

2015-05-12 10:24:35.598 testapp[4621:105425] -[qnsview title]: unrecognized selector sent instance 0x7fdfbac7b8e0 2015-05-12 10:24:35.643 testapp[4621:105425] uncaught exception raised 2015-05-12 10:24:35.643 testapp[4621:105425] -[qnsview title]: unrecognized selector sent instance 0x7fdfbac7b8e0 2015-05-12 10:24:35.643 testapp[4621:105425] (     0   corefoundation                      0x00007fff9332764c __exceptionpreprocess + 172     1   libobjc.a.dylib                     0x00007fff967686de objc_exception_throw + 43     2   corefoundation                      0x00007fff9332a6bd -[nsobject(nsobject) doesnotrecognizeselector:] + 205     3   corefoundation                      0x00007fff93271a84 ___forwarding___ + 1028     4   corefoundation                      0x00007fff932715f8 _cf_forwarding_prep_0 + 120     5   testapp                             0x000000010446af59 cocoa_createwindowfrom + 73     6   testapp                             0x000000010445fe1d sdl_createwindowfrom_real + 205     7   testapp                             0x000000010417c83c main + 380     8   testapp                             0x000000010417c6b4 start + 52     9   ???                                 0x0000000000000001 0x0 + 1 ) 

that sample code reproduce crash. again working under linux , windows not under mac os.

int main(int argc, char* argv[]) {     qapplication app(argc, argv);      if (sdl_videoinit(null) != 0) {         qcritical("sdl_videoinit() error: %s", sdl_geterror());         return exit_failure;     }      qwidget*    qwidget   = new qwidget();     sdl_window* sdlwindow = sdl_createwindowfrom((void*) qwidget->winid());     if (sdlwindow == null) {         qcritical("sdl_createwindowfrom error: %s", sdl_geterror());         return exit_failure;     }      return app.exec(); } 


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -