Git Product home page Git Product logo

Comments (2)

talmo avatar talmo commented on July 18, 2024

OK so, figured it out:

  1. 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 to SimpleElastix and just added in the auth for the svn.

  2. It seems like there's an issue with cmake(?) or something but it was incorrectly using cc and c++ instead of gcc and g++ 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
  1. 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.

 avatar commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.