# The libproj library problem(VTK-9.2.2), MinGW

**URL:** https://discourse.vtk.org/t/the-libproj-library-problem-vtk-9-2-2-mingw/10283
**Category:** Support
**Tags:** code
**Created:** [December 21, 2022, 9:39am UTC](https://discourse.vtk.org/t/the-libproj-library-problem-vtk-9-2-2-mingw/10283 "2022-12-21T09:39:57Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Alexx](https://discourse.vtk.org/user_avatar/discourse.vtk.org/alexx/32/6291_2.png) [@Alexx](https://discourse.vtk.org/u/Alexx)
#### Post date: [December 21, 2022, 9:39am UTC](https://discourse.vtk.org/t/the-libproj-library-problem-vtk-9-2-2-mingw/10283/1 "2022-12-21T09:39:57Z")

</div>

Dear VTK Users and Developers.

Recently, I encountered a problem in compiling VTK 9.2.2 source code with GCC 12. But before that, I encountered a [problem](https://discourse.vtk.org/t/vtk-9-1-mingw64-and-windows-10/7116) that has been solved.

When the source code is compiled to 79%, the following problem occurs:

 ![image](https://discourse.vtk.org/uploads/default/original/2X/0/0b8a6ab69b45c444220dd1aacf26e13e25ca7c84.jpeg)

The following are similar errors until the compilation is interrupted:

 ![image](https://discourse.vtk.org/uploads/default/original/2X/4/40f7e98bfa65b6082ccc5517e3ab6032cc780c90.jpeg)

My environment is as follows

- OS: Windows 11
- Kits:
  - CMake 3.25.1
  - GCC ([x86\_64-12.2.0-release-posix-seh-ucrt-rt\_v10-rev2.7z](https://github.com/niXman/mingw-builds-binaries/releases/download/12.2.0-rt_v10-rev2/x86_64-12.2.0-release-posix-seh-ucrt-rt_v10-rev2.7z))

When I use CMake to generate **makefile** files, I only set the **CMAKE\_BUILD\_TYPE**  
to **Release**

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [December 21, 2022, 3:30pm UTC](https://discourse.vtk.org/t/the-libproj-library-problem-vtk-9-2-2-mingw/10283/2 "2022-12-21T15:30:46Z")

</div>

`STRICT` is a macro coming from…somewhere, probably a Windows header. I think we fixed this recently for Windows directly, but I suppose it needs tweaks for MinGW as well.

---

<div class="post-metadata">

### Author: ![Qin](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/q/91b2a8/32.png) [@Qin](https://discourse.vtk.org/u/Qin)
#### Post date: [December 30, 2022, 1:34am UTC](https://discourse.vtk.org/t/the-libproj-library-problem-vtk-9-2-2-mingw/10283/3 "2022-12-30T01:34:49Z")

</div>

Hi，Ben，Is it fixed？

---

<div class="post-metadata">

### Author: ![Qin](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/q/91b2a8/32.png) [@Qin](https://discourse.vtk.org/u/Qin)
#### Post date: [December 30, 2022, 6:26am UTC](https://discourse.vtk.org/t/the-libproj-library-problem-vtk-9-2-2-mingw/10283/4 "2022-12-30T06:26:16Z")

</div>

Hi，  
Did you solve this problem?

---

<div class="post-metadata">

### Author: ![Alexx](https://discourse.vtk.org/user_avatar/discourse.vtk.org/alexx/32/6291_2.png) [@Alexx](https://discourse.vtk.org/u/Alexx)
#### Post date: [December 30, 2022, 11:37am UTC](https://discourse.vtk.org/t/the-libproj-library-problem-vtk-9-2-2-mingw/10283/5 "2022-12-30T11:37:08Z")

</div>

No solution, I recommend using version 9.1.0 first

---

<div class="post-metadata">

### Author: ![Alexx](https://discourse.vtk.org/user_avatar/discourse.vtk.org/alexx/32/6291_2.png) [@Alexx](https://discourse.vtk.org/u/Alexx)
#### Post date: [May 28, 2023, 2:04pm UTC](https://discourse.vtk.org/t/the-libproj-library-problem-vtk-9-2-2-mingw/10283/6 "2023-05-28T14:04:32Z")

</div>

My dear friend, the source code of the latest version (master: 68f2a087b3e3daa) has just been compiled. This [issue](https://discourse.vtk.org/t/vtk-9-1-mingw64-and-windows-10/7116) still exists.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [June 19, 2023, 6:17pm UTC](https://discourse.vtk.org/t/the-libproj-library-problem-vtk-9-2-2-mingw/10283/7 "2023-06-19T18:17:03Z")

</div>

[https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/10286](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10286)
