Comments (8)
Hey Dave,
You were right. My X-Code was out of date. I updated to version 8.1, but was still running into the same problem.
The solution was to download command line tools from the apple developer site as follows:
- Open Xcode app. 2) Click on Xcode > Open Developer Tools > More Developers Tools. That will take you to Downloads for Apple Developers web site. Use your AppStore Id to login. 3) Download Command Line Tools for your Mac OS X version.
This appears to be a common problem: eg. http://stackoverflow.com/questions/23260748/manual-install-of-xcode-command-line-tools-not-working/23319506#23319506
Thanks for your help.
Cheers.
from simpleitk.
I've seen that issue before in the past. Did you recently install or upgrade Xcode? Have you run the "xcode-select" command to set the active developer directory? If not, give that a try.
from simpleitk.
I don't use Xcode for anything, and haven't upgraded or installed it recently. I have version 7.3.1
xcode-select --version
//returns:
xcode-select version 2343.
// and I ran:
sudo xcode-select --reset
// for good luck
xcode-select --print-path
// returns:
/Applications/Xcode.app/Contents/Developer
still no luck with the PCRE build
from simpleitk.
What version of cmake are you running? As I said in that previous, closed issue, back then I worked around it by building my own copy of swig. I think, though, that the problem went away with more recent versions of cmake.
BTW, I don't use Xcode for anything either, except to install and set up the compiler, clang.
from simpleitk.
I'm glad to hear that you're figured out the solution. And it's good that we now have the answer here for others to find.
from simpleitk.
Had another tripup during the build.
When turning WRAP_PYTHON ON I got the following error:
ERROR:
CMake Error at
/Applications/CMake.app/Contents/share/cmake-3.5/Modules/FindPackageHandleStan
dardArgs.cmake:148 (message):
Could NOT find PythonLibs: Found unsuitable version "2.7.10", but required
is exact version "2.7.12" (found /usr/lib/libpython2.7.dylib)
Call Stack (most recent call first):
/Applications/CMake.app/Contents/share/cmake-3.5/Modules/FindPackageHandleStan
dardArgs.cmake:386 (_FPHSA_FAILURE_MESSAGE)
/Applications/CMake.app/Contents/share/cmake-3.5/Modules/FindPythonLibs.cmake:
265 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
/Users/markrichardson/SimpleElastix/src/CMake/sitkLanguageOptions.cmake:71
(find_package)
SuperBuild.cmake:236 (include)
CMakeLists.txt:24 (include)
SOLUTION:
- open /Users/xxxxxx/SimpleElastix/src/CMake/sitkLanguageOptions.cmake in textwrangler
- Change Line71 from:
find_package ( PythonLibs ${PYTHON_VERSION_STRING} EXACT ${_QUIET_LIBRARY} )
To:
find_package ( PythonLibs ${PYTHON_VERSION_STRING} )
I wonder if you've run into this before, or if you have any thoughts on this one. The rest of the build ran well, and all the tests were successful.
/ /
NOTE:
python -v # returns:
/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc matches /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py
import site # precompiled from /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc
... etc ...
Cheers
from simpleitk.
Unfortunately it's not too uncommon for CMake to "automatically" find and python executable and a python library whose versions don't match or are from different installed python. You should verify that the PYTHON_EXECUTABLE and the PYTHON_LIBRARY refers to the same installed Python. Otherwise problems may occur.
Also SimpleElastix may be missing important features that SImpleITK has. Please report SimpleElastix issues in there repo first:
https://github.com/kaspermarstal/SimpleElastix
from simpleitk.
File was here:
/Users/xxxxxx/SimpleITK/src/CMake/sitkLanguageOptions.cmake
sorry for that
from simpleitk.
Related Issues (20)
- CMake hangs on M1 HOT 1
- Python Documentation bug in sitk.Image constructor HOT 4
- sitk::ERROR: Pixel type: 32-bit unsigned integer is not supported in 3D byN3itk6simple15MaskImageFilterE HOT 7
- Export `PixelIDValueEnum` members as members of Enum in Python binding
- missing numpy dependency in python wheels and conda package HOT 2
- Move detailed class description to the top of the doc page
- Install on IpadOS v16.6 HOT 2
- RuntimeError: Exception thrown in SimpleITK ImageFileReader_Execute: ../Code/IO/src/sitkImageReaderBase.cxx:97: sitk::ERROR: HOT 1
- Add ImageSeriesReader::SpacingWarningRelThreshold
- SimpleITK getting slower with intense working (JAVA) (memory leak?) HOT 11
- enable ImageFileReader.SetUseStreaming method for JAVA
- SetKernelRadius() does not handle numpy integer types HOT 1
- Extend sitk.ReadImage()/WriteImage() to support pathlib.Path() HOT 1
- add or change the interface for the ImageRegistraitonMethod.SetOptimizerAsAmoeba method HOT 1
- Error writing `SimpleITK Image` to DICOM files HOT 1
- GetBufferAsType functions missing (Python 3.12.1, SimpleITK 2.3.1) HOT 8
- PEP 688 add buffer protocol support
- After registration, is the order of transforms composition specified in the documentation correct? HOT 4
- `MetaData dictionary key must be str`? HOT 2
- simpleITK python acts differently while reading metadata with upper or lower case hexadecimal label HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simpleitk.