Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No ITK #108

Open
mcbrs1a opened this issue Nov 8, 2017 · 12 comments
Open

No ITK #108

mcbrs1a opened this issue Nov 8, 2017 · 12 comments

Comments

@mcbrs1a
Copy link

mcbrs1a commented Nov 8, 2017

I run cmake ..

then when trying to isntall ITK, don't get the:

/home/myname/Software/gerardus/cpp/src/third-party/InsightToolkit-4.3.1/bin directory

ITK also doesn't download

@rcasero
Copy link
Collaborator

rcasero commented Nov 8, 2017

Why doesn't ITK download, what error do you get?

@mcbrs1a
Copy link
Author

mcbrs1a commented Nov 8, 2017 via email

@rcasero
Copy link
Collaborator

rcasero commented Nov 8, 2017

So did you run the first cmake ..? After which you should have got a message saying

 -- ******************************************************************************
 -- ITK built successfully. Now you need to install it manually. For that, run
 --    pushd "/home/myname/Software/gerardus/cpp/src/third-party/InsightToolkit-4.3.1/bin"
 --    sudo make install; popd
 -- If ITK installed successfully, you can then run
 --    cmake ..
 -- again to finish configuring Gerardus.
 -- ******************************************************************************

as it says here

https://github.com/vigente/gerardus/wiki/Build-instructions#instructions-for-linux-and-mac-users

@mcbrs1a
Copy link
Author

mcbrs1a commented Nov 8, 2017 via email

@rcasero
Copy link
Collaborator

rcasero commented Nov 8, 2017

Did you do something manually, or did you change anything in the CMakeLists.txt by hand?

@rcasero
Copy link
Collaborator

rcasero commented Nov 8, 2017

Or do do have an ITK already installed in your system?

@mcbrs1a
Copy link
Author

mcbrs1a commented Nov 8, 2017

No I did nothing, im doing a new clone and running cmake ..

yes I have /usr/local/itk do I just delete that?

@rcasero
Copy link
Collaborator

rcasero commented Nov 8, 2017

The current version of gerardus checks whether ITK is already installed in the system, as you can see here

if(NOT ITK_FOUND)

If it can find an ITK already installed, then it will not try to download and build another one. The reason for this is that downloading and building ITK is slow, so you only want to do it once.

To run gerardus programs/functions, you want to let it download and build ITK, so that it's built with a g++ version that is compatible with Matlab.

Unfortunately, this means that the gerardus ITK cannot coexist with another ITK in your system.

So yes, basically if you want to build gerardus, you need to delete the other ITK.

@mcbrs1a
Copy link
Author

mcbrs1a commented Nov 8, 2017

Ok, its strange though how it was downloading previously; i've removed /usr/local/itk but still don't get the download. The only other place I have is whereis itk

/usr/src/WrapITK/itk.swg

Do I need to remove this also?

@rcasero
Copy link
Collaborator

rcasero commented Nov 8, 2017

Even if you remove ITK physically, your cmake cache may still say that it was found. Try rm -rf build/* in the gerardus directory. Also, when you installed ITK, you may have installed ITK libraries somewhere else that was not /usr/local/itk.

@mcbrs1a
Copy link
Author

mcbrs1a commented Nov 8, 2017

so is there nothing I can do? Can gerardus only be used by people who have never installled ITK before?

@mcbrs1a
Copy link
Author

mcbrs1a commented Nov 8, 2017

Ok I deleted /usr/local/cmake/itk4.3 and it seems to be working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants