ROOT Windows 32 bit Installation

Would I put cmake -G"Visual Studio 17 2022" -A Win32 -Thost=x64 [GEANT4-install] [GEANT4] (for example for GEANT4 and do the same for ROOT)?

In addition, I deleted some other GEANT4 folders in my system and I made sure my Path variable goes to the right GEANT4 folder and now it produces this when I try to go to my build again(GEANT4 and ROOT are both 32 bit):

C:\SimpleDet\build>cmake ..
-- Building for: Visual Studio 17 2022
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.37.32825.0
-- The CXX compiler identification is MSVC 19.37.32825.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.28/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
  Could not find a configuration file for package "PTL" that is compatible
  with requested version "".

  The following configuration files were considered but not accepted:

    C:/GEANT4/geant4-install/lib/cmake/Geant4/PTL/PTLConfig.cmake, version: 2.3.3 (32bit)

Call Stack (most recent call first):
  C:/GEANT4/geant4-install/lib/cmake/Geant4/Geant4Config.cmake:291 (find_dependency)
  CMakeLists.txt:14 (find_package)


-- Configuring incomplete, errors occurred!

Of course, if I still need to configure and just rebuild GEANT4 and ROOT again, I can certainly do that too, but I am wondering if me deleting those other GEANT4 folders makes a difference :slight_smile:

No, unless [GEANT4-install] [GEANT4] is used by your CMake project

Then you apparently just broke your Geant4 installationā€¦

Good!

May I suggest to delete the content of your build directory and start again from scratch, copying here the cmake command, the options you pass and the output?

1 Like