[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] trying to do a debug build
From: |
Matt D |
Subject: |
Re: [Discuss-gnuradio] trying to do a debug build |
Date: |
Tue, 03 Sep 2013 11:14:48 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 |
On 09/03/2013 10:43 AM, Martin Braun (CEL) wrote:
> On Tue, Sep 03, 2013 at 10:35:56AM -0400, Tom Rondeau wrote:
>>> address@hidden:~/src/gnuradio/build$ cmake ../
>>> -DCMAKE_BUILD_TYPE=Debug
>>>
>>> now i get:
>>>
>>> CMake Error at CMakeLists.txt:22 (message): Prevented in-tree
>>> build. This is bad practice. -- Configuring incomplete, errors
>>> occurred!
>>>
>>> i am still missing something here.
>>
>> Ok, so it looks like you've copied the source into your build
>> directory or something. At least, there's something wrong with
>> your directories, the location of the source code, or where
>> you're building from.
>
> This can also happen when you called cmake directly from the source
> dir at one point. If this is the case, you will have some files in
> your source dir (src/gnuradio) which shouldn't be there. If you
> haven't touched anything, the easiest way to get rid of these is
>
> $ git clean -xdf
>
> If you don't want to do that, clear out anything from the source
> dir related to cmake *except* for the directory cmake/ and the
> file CMakeLists.txt.
>
> MB
>
Hi,
the only other file in src/gnuradio is CMakeCache.txt so i deleted it.
then ran
cmake ../-DCMAKE_BUILD_TYPE=Debug
in build directory. it is building now. So is all well?