# A error of MRMLCorePython when making code

**URL:** <https://discourse.slicer.org/t/a-error-of-mrmlcorepython-when-making-code/35440>\
**Category:** Development\
**Created:** [April 11, 2024, 3:18pm UTC](https://discourse.slicer.org/t/a-error-of-mrmlcorepython-when-making-code/35440 "2024-04-11T15:18:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![czgchd](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/czgchd/32/70006_2.png) [@czgchd](https://discourse.slicer.org/u/czgchd)\
**Post date:** [April 11, 2024, 3:18pm UTC](https://discourse.slicer.org/t/a-error-of-mrmlcorepython-when-making-code/35440/1 "2024-04-11T15:18:18Z")

</div>

cmake version 3.28.4

ubuntu 22.04

3D Slicer

when i performed the command : make, i met a error

[33%] Linking CXX shared module …/…/…/bin/MRMLCorePython.so  
[33%] Built target MRMLCorePython  
make[3]: \*\*\* [Makefile:166: all] Error 2  
make[2]: \*\*\* [CMakeFiles/Slicer.dir/build.make:90: Slicer-prefix/src/Slicer-stamp/Slicer-build] Error 2  
make[1]: \*\*\* [CMakeFiles/Makefile2:1450: CMakeFiles/Slicer.dir/all] Error 2  
make: \*\*\* [Makefile:101: all] Error 2

i do not know how to fix it, thanks

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [April 11, 2024, 5:35pm UTC](https://discourse.slicer.org/t/a-error-of-mrmlcorepython-when-making-code/35440/2 "2024-04-11T17:35:29Z")

</div>

It looks like the actual error is not in this build log, so you might need to scroll up to find it.

I happened to be building on 22.04 earlier today and added these notes to the documentation. You may need one of these dependecies:

> <https://github.com/Slicer/Slicer/pull/7689/files>
>
> With these prerequisites I could build from scratch on a freshly booted 22.04 ma…chine running on Jetstream2.

---

<div class="post-metadata">

**Author:** ![czgchd](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/czgchd/32/70006_2.png) [@czgchd](https://discourse.slicer.org/u/czgchd)\
**Post date:** [April 12, 2024, 2:30am UTC](https://discourse.slicer.org/t/a-error-of-mrmlcorepython-when-making-code/35440/3 "2024-04-12T02:30:08Z")

</div>

thanks for your reply .

lastly, i take this site 🙂

> <https://github.com/ANTsX/ANTs/issues/1248>
>
> \<!--
> Text in these brackets are comments, and won't be visible when you submit …your
> issue. Please read before submitting.
> 
> Before opening an issue, please review the build documentation here
> 
> https://github.com/ANTsX/ANTs/wiki/Compiling-ANTs-on-Linux-and-Mac-OS
> 
> You can also search the wiki and previous issues using the main Github search
> bar. Enter search terms and select "In this repository".
> 
> If you are using system ITK or VTK, please verify you have the correct
> versions (see the Wiki link above). If you can, please also attempt a
> Superbuild and let us know if that compiles successfully.
> \--\>
> 
> \*\*When did the error occur?\*\*
> 
> \[\] CMake configuration (cmake / ccmake)
> \[X\] Compilation (make)
> \[\] Installation (make install)
> 
> \*\*Build environment\*\*
> - OS: Mac OS
> - OS version: 11.6 (20G165)
> - Type of system: laptop
> 
> \<!--
> If you are building inside a virtual machine, container, Cygwin, Windows
> Subsystem for Linux, or other non-native environment, please let us know and
> include details of both the virtual Linux and the host OS.
> \--\>
> 
> \*\*ANTs version\*\*
> \<!--
> Specify the release tag or commit hash of the code you are building
> from with \`git show\` in your source directory. If you downloaded a snapshot as a
> ZIP file, please provide the tag version (if applicable) or date of the download.
> \--\>
> Ecphorella
> 
> \*\*Build configuration and logs\*\*
> \<!--
> Please attach the following files (relative to your build directory)
> 
> - build.log (the terminal output from make, eg \`make | tee build.log\`)
> - CMakeCache.txt
> - CMakeFiles/CMakeError.log
> - CMakeFiles/CMakeOutput.log
> \--\>
> 
> - build.log: \[build.log\](https://github.com/ANTsX/ANTs/files/7294846/build.log)
> - CMakeCache.txt: \[CMakeCache.txt\](https://github.com/ANTsX/ANTs/files/7294851/CMakeCache.txt)
> - CMakeFiles/CMakeError.log: \[CMakeError.log\](https://github.com/ANTsX/ANTs/files/7294862/CMakeError.log)
> - CMakeFiles/CMakeOutput.log: \[CMakeOutput.log\](https://github.com/ANTsX/ANTs/files/7294873/CMakeOutput.log)
> 
> 
> \*\*Additional context\*\*
> 
> Hi there,
> 
> I am trying to build ANTs however I keep running into the following error:
> \`\`\`shell
> \-- Fetching "file:///~/ANTs/.ExternalData/MD5/37aaa33029410941bf4affff0479fa18"
> \-- Fetching "http://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=37aaa33029410941bf4affff0479fa18"
> \-- Fetching "https://data.kitware.com:443/api/v1/file/hashsum/MD5/37aaa33029410941bf4affff0479fa18/download"
> \-- Fetching "http://www.itk.org/files/ExternalData/MD5/37aaa33029410941bf4affff0479fa18"
> \-- \[download 100% complete\]
> \* Closing connection 0
> CMake Error at /usr/local/Cellar/cmake/3.21.3\_1/share/cmake/Modules/ExternalData.cmake:1181 (message):
>   
> 
> Object MD5=37aaa33029410941bf4affff0479fa18 not found at:
> 
> file:///~/ANTs/.ExternalData/MD5/37aaa33029410941bf4affff0479fa18 ("Couldn't read a file:// file")
> http://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=37aaa33029410941bf4affff0479fa18 ("HTTP response code said error")
> https://data.kitware.com:443/api/v1/file/hashsum/MD5/37aaa33029410941bf4affff0479fa18/download ("HTTP response code said error")
> http://www.itk.org/files/ExternalData/MD5/37aaa33029410941bf4affff0479fa18 ("HTTP response code said error")
> 
> 
> make\[5\]: \*\*\* \[ExternalData/TestData/Data/r16slice.nii.gz-hash-stamp\] Error 1
> make\[4\]: \*\*\* \[Examples/TestSuite/CMakeFiles/ANTSFetchData.dir/all\] Error 2
> make\[3\]: \*\*\* \[all\] Error 2
> make\[2\]: \*\*\* \[ANTS-prefix/src/ANTS-stamp/ANTS-build\] Error 2
> make\[1\]: \*\*\* \[CMakeFiles/ANTS.dir/all\] Error 2
> \`\`\`
> This seems to be a similar (but slightly different issue) to #1236. I have also made sure that \`xcode-select\` (v2384), \`brew\` (v3.2.15), \`cmake\` (v3.21.3), and \`make\` (v3.81) are all up to date.
> 
> Thanks!

command 🙂

cmake -DBUILD\_TESTING=OFF , and then make

successfuly end.
