Comments (2)
OK so, figured it out:
-
You were correct in #15 that I was trying to compile from the
develop
branch while using an older version of elastix (the current public branch one). I switched back toSimpleElastix
and just added in the auth for the svn. -
It seems like there's an issue with cmake(?) or something but it was incorrectly using
cc
andc++
instead ofgcc
andg++
to build, so all the functions using C++11 features were failing. I fixed that by explicitly setting the compiler paths:
cmake -DCMAKE_CXX_COMPILER=$(which g++) -DCMAKE_C_COMPILER=$(which gcc) ../SimpleElastix-SimpleElastix/SuperBuild
make CXX=$(which g++) CC=$(which gcc) -j6
- The python wrapper wasn't building. I'm using anaconda and it seems like even if the paths are set in my environment, cmake still won't pick up on them, so I ended up setting them explicitly, to yield the final calls:
cd ~/SimpleElastix/SimpleElastix-SimpleElastix_build/ && rm -rf * && cmake
-DCMAKE_CXX_COMPILER=$(which g++)
-DCMAKE_C_COMPILER=$(which gcc)
-DWRAP_PYTHON=ON
-DPYTHON_INCLUDE_DIR=/home/talmo/anaconda/include/python2.7/
-DPYTHON_INCLUDE_DIR2=/home/talmo/anaconda/include/python2.7
-DPYTHON_LIBRARY=/home/talmo/anaconda/lib/libpython2.7.so
-DPYTHON_LIBRARY_DEBUG=/home/talmo/anaconda/lib/libpython2.7.so
-DPYTHON_LIBRARY_RELEASE=/home/talmo/anaconda/lib/libpython2.7.so
../SimpleElastix-SimpleElastix/SuperBuild
make CXX=$(which g++) CC=$(which gcc) -j6
Now it works :)
from simpleelastix.
Hello,
I've tried to compiled under ubuntu 14.04 x64 as well, running into a similar error:
[...]
[ 26%] Built target ITKJPEG-all
[ 26%] Generating tif_fax3sm.c
/bin/sh: 1: ./itkmkg3states: Permission denied
make[5]: *** [Modules/ThirdParty/TIFF/src/itktiff/tif_fax3sm.c] Error 126
make[4]: *** [Modules/ThirdParty/TIFF/src/itktiff/CMakeFiles/itktiff.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
[ 38%] Built target itkhdf5
[ 51%] Built target itkvnl
[ 67%] Built target itkv3p_netlib
make[3]: *** [all] Error 2
make[2]: *** [ITK-prefix/src/ITK-stamp/ITK-install] Error 2
make[1]: *** [CMakeFiles/ITK.dir/all] Error 2
make: *** [all] Error 2
I've googled around already, but I do not a have a clue what to change.
I would appreciate any help.
Thanks in advance!
from simpleelastix.
Related Issues (20)
- RuntimeError: Exception thrown in SimpleITK Elastix HOT 1
- AffineDTITransform does not return the CenterOfRotationPoint
- windows user :thank you very much
- Gradient based optimizer: how to control learning rate HOT 2
- Rigid transformation warping with "TransformixImageFilter"
- error of compiling on linux
- Fatal error LNK1181
- Error while installing SimpleElastix on Windows. HOT 1
- Shearing matrix composition in Affine DTI 3D Transform
- Failed to build on Win10 HOT 3
- affine registration outcome measurement
- A lot of console output even after turning it off HOT 1
- Registration with initial transform obtained using SimpleITK/etc. (.tfm file) HOT 1
- The ElastixImageFilter stuck when using iterative InitialTransformParameterFileName.
- Unable to create/compile/build SimpleElastix C++ dynamic or static library in 32bit or 64-bit.
- Trouble understanding basic usage
- Is there a way to save the transform to a .tfm file?
- AttributeError: module 'SimpleITK' has no attribute 'VesselnessMeasureImageFilter'
- Use only corresponding points based transformation
- SimpleElastix no longer maintained, use SimpleITK or ITKElastix!
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 simpleelastix.