[ITK Community] How to recompile only one module
Michka Popoff
michkapopoff at gmail.com
Thu Nov 7 15:48:46 EST 2013
I am still not able to do it.
The command make help gives me the list, so that's ok.
If I modify code in the source directory (putting some wrong stuff to break the compilation), for example in :
/Modules/Filtering/ImageGrid/include/itkTileImageFilter.h or .hxx
And then I used make like this : make ITKImageGrid-all (at the root of the build dir) or make in the module dir itself, and I get :
Built target ITKImageGrid-all
Does not seem to me that make detected something has changed. I can even delete the files from the source dir, make does not complain.
I tried with make clean && make, no difference.
If I do the same operation on a VTK build, which has a similar structure, it works and make detects the changes.
On 3 nov. 2013, at 23:11, Matt McCormick <matt.mccormick at kitware.com> wrote:
> Hi Michka,
>
> "make help" from the top of the build tree will list all build
> targets. This can be piped to grep to find the target of interest.
> The "-all" targets will build both the library and the tests -- the
> target with out the "-all" will just build the library and its
> dependencies. Another approach is to "cd" into the "test" directory
> for the module in the build tree and run "make" from there.
>
> Thanks,
> Matt
>
>
> On Sat, Nov 2, 2013 at 4:47 PM, Michka Popoff <michkapopoff at gmail.com> wrote:
>> Hi
>>
>> I successfully built ITK in a folder. I then made some modifications to a ITK module, in the source dir.
>> I thought I could use the make command from the module's build folder (like I already did in VTK), to only recompile the current module.
>>
>> But it's only going through the files to see if everything is already built, and the it's telling me : Built target NameOfTheModule
>>
>> My question is : How do I recompile only one module / one file ?
>>
>> My question may seem obvious for c++/ITK developers, but as a Phytonist I can not figure it out ...
>>
>> Thanks in advance
>>
>> Michka
>> _______________________________________________
>> Community mailing list
>> Community at itk.org
>> http://public.kitware.com/cgi-bin/mailman/listinfo/community
More information about the Community
mailing list