|Message: Unable to use Qt 5 on Windows with examples enabled (geant4.10.01)||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I'm trying to build Geant 4.10.01 on Windows with nmake-based build using Visual Studio Express 2012.
I installed Qt 5.4.1 to a costum location and set CMAKE_PREFIX_PATH to path_to_qt/5.4/msvc2012_opengl/lib/cmake.
The configuration goes through if I don't try to build the examples, but if I turn building the examples on, it throws an error:
Entering C:/prog/geant4.10.01/examples Entering C:/prog/geant4.10.01/examples/advanced CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindQt4.cmake:1326 (message): Found unsuitable Qt version "5.4.1" from C:/prog/Qt/5.4/msvc2012_opengl/bin/qmake.exe, this code requires Qt 4.x Call Stack (most recent call first): C:/prog/geant4.10.01-build-nmake/Geant4Config.cmake:240 (find_package) examples/advanced/CMakeLists.txt:8 (find_package)
Returning to C:/prog/geant4.10.01/examples Returning to C:/prog/geant4.10.01 Configuring incomplete, errors occurred!
The problem seems to be that Geant4Config.cmake in the build directory contains the following lines:
#----------------------------------------------------------------------- # If we have used imported targets for any third party packages, reimport # them here, BEFORE we try and import the Geant4 targets which are # linked against them. # Generally, we try and use a standard find_package, but try and force it # to find the actual package we were built against. # THIS IS NOT PERFECT, AS IT CANNOT GUARANTEE A BINARY COMPATIBLE # PACKAGE IS FOUND.
# Qt reimport on WIN32 set(QT_QMAKE_EXECUTABLE C:/Programi/Qt/5.4/msvc2012_opengl/bin/qmake.exe) set(QT_USE_IMPORTED_TARGETS ON) find_package(Qt4 REQUIRED)
that have been hardcoded in Geant4BuildProjectConfig.cmake so find_package(Geant4) in examples/advanced/CMakeLists.txt fails. Is there any workaround?
|Inline Depth:||Outline Depth:||Add message:|