[Insight-developers] Preventing In-Source Builds
Bill Lorensen
bill.lorensen at gmail.com
Sat Oct 16 13:59:46 EDT 2010
What feature are we giving up?
I spent about 10 e-mails with a vtk users who had screwed up his vtk
repository with in-source builds. He had downloaded a tar file of the
source. I have seen similar problems in the itk and vtk lists.
Bill
On Sat, Oct 16, 2010 at 1:54 PM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
> Bill,
>
> In the modified version that I just emailed to Kent
> and the list, there are more specific instructions
> on how to remove the offending files, by using
> "git clean -d -f "
>
> I'm a bit concerned that we just give up on an entire
> feature (in-source building) based on the case that
> some users may misuse it.
>
>
> ...but...
> anyways, at this point we have bigger
> problems in our plates.
>
>
> Luis
>
>
> -------------------------------------------------------------------------
> On Sat, Oct 16, 2010 at 12:06 PM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
>>
>> The error tells you explicitly what to do.
>> # ITK should not be configured & built in the ITK source directory
>> # You must run cmake in a build directory.
>> # For example:
>> # mkdir ITK-Sandbox ; cd ITK-sandbox
>> # git clone git://itk.org/ITK.git # or download & unpack the source
>> tarball
>> # mkdir ITK-build ; cd ITK-build ; ccmake ../ITK
>> # NOTE: CMake will have created several files & directories
>> # in your source tree. run 'git status' to find them and
>> # remove them.
>>
>>
>> On Sat, Oct 16, 2010 at 11:28 AM, David Doria <daviddoria at gmail.com>
>> wrote:
>> > On Sat, Oct 16, 2010 at 11:17 AM, Bill Lorensen
>> > <bill.lorensen at gmail.com> wrote:
>> >> Folks,
>> >>
>> >> Kent Williams has created ITK cmake modifications to block in-source
>> >> builds. As you know, doing cmake in the source tree pollutes the
>> >> source tree with cmake, build and configured .h files. The only way to
>> >> recover is to blow away the source tree and recreate it.
>> >>
>> >> New users often do this and have trouble recovering.
>> >>
>> >> I tried Kent's solution and it works great.
>> >>
>> >> Is there any reason why one would want to have an in source build?
>> >>
>> >> I propose that we push Kent's changes to save our users headaches in
>> >> the future.
>> >>
>> >> Bill
>> >
>> > What is the error produced when a user runs
>> >
>> > cmake .
>> >
>> > from the source directory?
>> >
>> > What happens if the user runs ccmake . from the source directory? Is
>> > the error presented when you press 'c' for configure? Is there a way
>> > to stop them before that? (If you spend a few minutes setting up
>> > options and then realize you can't do this, that may be annoying.)
>> >
>> > The error should definitely detail how you SHOULD do it, not just say
>> > something like "error: in source builds not allowed". This is not as
>> > useful to a new user as something more along the lines of "Error: you
>> > have tried to build ITK in the same directory as the source code. This
>> > is called an "in source build" and is strongly not recommended. Please
>> > create a 'bin' directory outside of the ITK source directory and
>> > re-run cmake from that directory with 'cmake .../yourITKsource"
>> >
>> > Thoughts?
>> >
>> > David
>> >
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-developers
>
>
More information about the Insight-developers
mailing list