Hello everyone,
I am trying to install Geant4 10.05.p01 on windows 10.
I used the command:
cmake -DCMAKE_INSTALL_PREFIX=%HOMEPATH%\Geant4\geant4_10_05_p01-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_QT=ON -DGEANT4_USE_OPENGL_WIN32=ON %HOMEPATH%\Geant4\geant4_10_05_p01\
to install Geant4.
It didn’t show any error during installation.
However, when I tried with example B1, after runningcmake -DGeant4_DIR=%HOMEPATH%\geant4_10_05_p01-install\lib\Geant4-10.5.1 %HOMEPATH%\Geant4\B1
I get the following message:
CMake Warning (dev) in CMakeLists.txt:
Policy CMP0020 is not set: Automatically link Qt executables to qtmain
target on Windows. Run “cmake --help-policy CMP0020” for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
– Generating done
– Build files have been written to: C:/Users/HienDoan/Geant4/B1-build
And this is the outcome when I ran example B1 (.\Release\exampleB1.exe):
C:\Users\HienDoan\Geant4\B1-build>.\Release\exampleB1.exe
Available UI session types: [ Qt, Win32, GAG, csh ]
C:\Users\HienDoan\Geant4\B1-build>
As you can see it showed the UI session and then stopped.
Do you know what wrong I am doing?
I set the PATH of Qt is: C:\Qt\4.8.7\bin
Best regards,
Hien.