Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take more time to help with your problem!
_Geant4 Version:_v.11.2.1
_Operating System:_Windows 10
_Compiler/Version:_VS_2022
_CMake Version:_3.29.3
‘’’
CMake Error: Cannot open file for write: C:/Users/Meher/geant4-v11.2.1-build/CMakeCache.txt.tmpaac6a
CMake Error: Unable to (re)create the private pkgRedirects directory:
C:/Users/Meher/geant4-v11.2.1-build/CMakeFiles/pkgRedirects
This may be caused by not having read/write access to the build directory.
Try specifying a location with read/write access like:
cmake -B build
If using a CMake presets file, ensure that preset parameter
‘binaryDir’ expands to a writable directory.
CMake Error: : System Error: No such file or directory
CMake Error: Unable to open cache file for save. C:/Users/Meher/geant4-v11.2.1-build/CMakeCache.txt
CMake Error: : System Error: No such file or directory
‘’’
I have checked Sir, still its showing like this
‘’’
Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
CMake Error at CMakeLists.txt:29 (project):
Failed to run MSBuild command:
There are still permissions issues here, all I can suggest is to delete these directories and start again. Check the permissions as you recreate things - this is nothing to do with Geant4’s build scripts, but with your system setup.