# ROOT Windows 32 bit Installation

**URL:** <https://root-forum.cern.ch/t/root-windows-32-bit-installation/56785>\
**Category:** Newbie\
**Created:** [October 19, 2023, 6:28am UTC](https://root-forum.cern.ch/t/root-windows-32-bit-installation/56785 "2023-10-19T06:28:53Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![treyer69](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/c37758/32.png) [@treyer69](https://root-forum.cern.ch/u/treyer69)\
**Post date:** [October 19, 2023, 9:43am UTC](https://root-forum.cern.ch/t/root-windows-32-bit-installation/56785/21 "2023-10-19T09:43:54Z")

</div>

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):

```auto
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 🙂

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [October 19, 2023, 9:50am UTC](https://root-forum.cern.ch/t/root-windows-32-bit-installation/56785/22 "2023-10-19T09:50:34Z")

</div>

> [@treyer69](#):
>
> 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)?

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

> [@treyer69](#):
>
> 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

Then you apparently just broke your Geant4 installation…

> [@treyer69](#):
>
> (GEANT4 and ROOT are both 32 bit)

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?

[Previous page](https://root-forum.cern.ch/t/root-windows-32-bit-installation/56785.md?page=1)
