InsightSoftwareConsortium / InsightSoftwareConsortium/ITK

Open the Module_ Montage=ON and ITK_ WRAP_ PYTHON=ON option to compile. The compiled result does not support itk montage

Open
#3,779 7 comments 0 reactions 0 assignees View on GitHub
type:Bug
Dominant language
C++
Stars
1.7k
Forks
748
Avg merge
1d 1h
Merged PRs (30d)
64

Description

### Description
Hello, sir. I recently encountered the same problem as https://github.com/InsightSoftwareConsortium/ITK/issues/3124, so I tried to compile my own version of itk on Linux. I compiled according to the method in question https://github.com/InsightSoftwareConsortium/ITK/issues/3124 and opened the options **Module_ Montage=ON ,ITK_ WRAP_ PYTHON=ON and TK_WRAP_rgb_unsigned_short=ON**. Although the compiled results already support the data type itk. RGBPixel [itk. US], it seems that itk-montage has not been compiled at the same time.

I have contacted the questioner of question https://github.com/InsightSoftwareConsortium/ITK/issues/3124. In fact, my compilation process is under his guidance. He compiles with cmake.exe on Windows, and I compile with my own cmakeList.txt on Linux. In addition, our method, the compiled itk version (5.2.1) and other conditions are the same, but different results are obtained.

The final results are as follows:
Results generated by previous questioners using cmake.exe on Windows
![image](https://user-images.githubusercontent.com/58067515/205096264-6976fbd7-10de-4e5a-8ac1-21bba09268f7.png)
The results I generated with cmakelist.txt on Linux
![image](https://user-images.githubusercontent.com/58067515/205096520-12205597-aeb9-4121-b294-2766e36fe658.png)
Obviously, my method does not compile the following itk-montage related functions
![image](https://user-images.githubusercontent.com/58067515/205096995-62420a3f-6e51-4a73-ba93-6b74a8b2254f.png)

The previous questioner was also unable to help me solve the problem, because we have the same options except for the operating system and the tools used, so we want to ask for your help.

The following are **CMakeLists.txt and manylinux-build-wheels.sh** files I wrote. I submitted the manylinux-build-wheels.sh file by the way, because I found that the compiled script essentially calls manylinux-build-wheels.sh for the final compilation. I opened the **Module_ Montage=ON ,ITK_ WRAP_ PYTHON=ON and TK_WRAP_rgb_unsigned_short=ON options in CMakeLists.txt**, **In manylinux-build-wheels.sh**, two options **ITK_ WRAP_ PYTHON=ON and TK_WRAP_rgb_unsigned_short=ON** are turned on (the reason why I didn't turn on the Module_ Montage=ON option is that I found that if I turned on it, an error would be reported when compiling).

[cmake.zip](https://github.com/InsightSoftwareConsortium/ITK/files/10133932/cmake.zip)

Could you check the contents of these two documents for me? Maybe there are other mistakes?

Thank you very much!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.