60 likes | 74 Vues
Qt driver problems. Laurent Garnier OSUR / INSU / CNRS Geant4 Collaboration Meeting – Chicago – 29 September 2015. Qt driver problems. Qt5 installation problem : On mac, Qt5 does not goes in a standard folder , we should specify the path by hand with cmake :
E N D
Qt driver problems Laurent Garnier OSUR / INSU / CNRS Geant4 Collaboration Meeting – Chicago – 29 September 2015 Laurent Garnier - OSUR / Geant4 Collaboration Meeting - 29 Sept 2015 - Chicago
Qt driver problems Qt5 installation problem : • On mac, Qt5 does not goes in a standard folder, weshouldspecify the path by hand withcmake : => -DCMAKE_PREFIX_PATH=/where_is_qt (libs, bin and includes Laurent Garnier - OSUR / Geant4 Collaboration Meeting - 29 Sept 2015 - Chicago
Qt driver problems SetVisible problem : • Symptoms : • Crash at runtime moslty on exampleB1 at QWidget::setVisible(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 G4UIQt::SessionStart() () from /home/gate/Progs/Geant4/geant4.10.01.p02-install/lib/libG4interfaces.so • Affected versions (Mostly Linux + Qt5) • Geant4 10.01.p02 / 10.02.b01 (MT) + Fedora 22 + gcc 5.1.1 + Qt 5.4.2 • Geant4 10.01.p02 + Ubuntu 14.04 + Qt 5.4 • Geant4 10.01.p02 + Ubuntu 7.9 + Qt 5.5 Laurent Garnier - OSUR / Geant4 Collaboration Meeting - 29 Sept 2015 - Chicago
Qt driver problems SetVisible problem : • Solution ? • start GUI session and THEN run all what is in the macro • Hard-code visibility of the window like this: G4UIQt* qui = static_cast<G4UIQt*> (Uimanager->GetG4UIWindow());if (qui) {qui->GetMainWindow()->setVisible(true);} • Creation of the viewer till after the Qt session window shows up, i.e. by creating the viewer from the GUI session. (one has to avoid /vis/viewer/create in the mac file) Laurent Garnier - OSUR / Geant4 Collaboration Meeting - 29 Sept 2015 - Chicago
Qt driver problems JIRA Ticket : First time in 2013 (but with Qt4.8 and linux) • https://jira-geant4.kek.jp/browse/DEV-14 Last ticket (Qt5 and Linux) • https://jira-geant4.kek.jp/browse/DEV-189 Laurent Garnier - OSUR / Geant4 Collaboration Meeting - 29 Sept 2015 - Chicago
Question ? Laurent Garnier - OSUR / Geant4 Collaboration Meeting - 28 Sept 2015 - Chicago