CMake errors in config/FindBoost on debian etch

Hi,

After a svn up ( rtt-1.10 branch ) this morning, I get some CMake
errors when configuring rtt (default configuration):

orocos RTT version (1.10.1)
No orocos-rtt.cmake file loaded, using default settings.See
orocos-rtt.default.cmake
-- CMAKE_VERSION: 2.6.0
CMake Error at config/FindBoost.cmake:282 (if):
if had incorrect arguments: NOT "${version}" VERSION_LESS
"${Boost_FIND_VERSION}" (Unknown arguments specified).
Call Stack (most recent call first):
config/check_depend.cmake:48 (find_package)
CMakeLists.txt:76 (INCLUDE)

CMake Error at config/FindBoost.cmake:285 (elseif):
elseif An ELSEIF command was found outside of a proper IF ENDIF
structure.
Call Stack (most recent call first):
config/check_depend.cmake:48 (find_package)
CMakeLists.txt:76 (INCLUDE)

CMake Error at config/FindBoost.cmake:289 (endif):
endif An ENDIF command was found outside of a proper IF ENDIF
structure.
Or its arguments did not match the opening IF command.
Call Stack (most recent call first):
config/check_depend.cmake:48 (find_package)
CMakeLists.txt:76 (INCLUDE)

I'm using the CMake version of debian etch backports.

CMake errors in config/FindBoost on debian etch

On Fri, Nov 6, 2009 at 18:39, Steven Kauffmann
<steven [dot] kauffmann [..] ...>wrote:

> Hi,
>
> After a svn up ( rtt-1.10 branch ) this morning, I get some CMake
> errors when configuring rtt (default configuration):
>
> orocos RTT version (1.10.1)
> No orocos-rtt.cmake file loaded, using default settings.See
> orocos-rtt.default.cmake
> -- CMAKE_VERSION: 2.6.0
> CMake Error at config/FindBoost.cmake:282 (if):
> if had incorrect arguments: NOT "${version}" VERSION_LESS
> "${Boost_FIND_VERSION}" (Unknown arguments specified).
>

This line is correct though. Any chance of getting a more recent version
than 2.6.0 ? Could you remove the config/FindBoost.cmake file and re-run the
cmake from a fresh build dir? I can disable the 'RTT' FindBoost.cmake macro
for cmake versions < 2.6.2 or you could mail me your
/usr/share/cmake/Modules/FindBoost.cmake file and we can see what the diff
is.

Peter

CMake errors in config/FindBoost on debian etch

On Fri, Nov 6, 2009 at 10:19 PM, Peter Soetens <peter [..] ...> wrote:
> On Fri, Nov 6, 2009 at 18:39, Steven Kauffmann <steven [dot] kauffmann [..] ...>
> wrote:
>>
>> Hi,
>>
>> After a svn up ( rtt-1.10 branch ) this morning, I get some CMake
>> errors when configuring rtt (default configuration):
>>
>> orocos RTT version  (1.10.1)
>> No orocos-rtt.cmake file loaded, using default settings.See
>> orocos-rtt.default.cmake
>> -- CMAKE_VERSION: 2.6.0
>> CMake Error at config/FindBoost.cmake:282 (if):
>>  if had incorrect arguments: NOT "${version}" VERSION_LESS
>>  "${Boost_FIND_VERSION}" (Unknown arguments specified).
>
> This line is correct though. Any chance of getting a more recent version
> than 2.6.0 ? Could you remove the config/FindBoost.cmake file and re-run the
> cmake from a fresh build dir? I can disable the 'RTT' FindBoost.cmake macro
> for cmake versions < 2.6.2 or you could mail me your
> /usr/share/cmake/Modules/FindBoost.cmake file and we can see what the diff
> is.

I prefer to install cmake using deb packages but a more recent version
than 2.6.0 for etch is not available in the debian repository.

After removing the config/FindBoost.cmake file the CMake errors are
gone and I'm able to build RTT.

I have attached my FindBoost.cmake file.

Steven

CMake errors in config/FindBoost on debian etch

On Mon, Nov 9, 2009 at 10:19, Steven Kauffmann
<steven [dot] kauffmann [..] ...>wrote:

> On Fri, Nov 6, 2009 at 10:19 PM, Peter Soetens <peter [..] ...>
> wrote:
> > On Fri, Nov 6, 2009 at 18:39, Steven Kauffmann <
> steven [dot] kauffmann [..] ...>
> > wrote:
> >>
> >> Hi,
> >>
> >> After a svn up ( rtt-1.10 branch ) this morning, I get some CMake
> >> errors when configuring rtt (default configuration):
> >>
> >> orocos RTT version (1.10.1)
> >> No orocos-rtt.cmake file loaded, using default settings.See
> >> orocos-rtt.default.cmake
> >> -- CMAKE_VERSION: 2.6.0
> >> CMake Error at config/FindBoost.cmake:282 (if):
> >> if had incorrect arguments: NOT "${version}" VERSION_LESS
> >> "${Boost_FIND_VERSION}" (Unknown arguments specified).
> >
> > This line is correct though. Any chance of getting a more recent version
> > than 2.6.0 ? Could you remove the config/FindBoost.cmake file and re-run
> the
> > cmake from a fresh build dir? I can disable the 'RTT' FindBoost.cmake
> macro
> > for cmake versions < 2.6.2 or you could mail me your
> > /usr/share/cmake/Modules/FindBoost.cmake file and we can see what the
> diff
> > is.
>
> I prefer to install cmake using deb packages but a more recent version
> than 2.6.0 for etch is not available in the debian repository.
>
> After removing the config/FindBoost.cmake file the CMake errors are
> gone and I'm able to build RTT.
>
> I have attached my FindBoost.cmake file.
>

I commited a hack that moves away the RTT FindBoost file if cmake < 2.6.2.
In that case, it uses the installed version.

Peter

CMake errors in config/FindBoost on debian etch

On Mon, Nov 9, 2009 at 10:19, Steven Kauffmann
<steven [dot] kauffmann [..] ...>wrote:

> On Fri, Nov 6, 2009 at 10:19 PM, Peter Soetens <peter [..] ...>
> wrote:
> > On Fri, Nov 6, 2009 at 18:39, Steven Kauffmann <
> steven [dot] kauffmann [..] ...>
> > wrote:
> >>
> >> Hi,
> >>
> >> After a svn up ( rtt-1.10 branch ) this morning, I get some CMake
> >> errors when configuring rtt (default configuration):
> >>
> >> orocos RTT version (1.10.1)
> >> No orocos-rtt.cmake file loaded, using default settings.See
> >> orocos-rtt.default.cmake
> >> -- CMAKE_VERSION: 2.6.0
> >> CMake Error at config/FindBoost.cmake:282 (if):
> >> if had incorrect arguments: NOT "${version}" VERSION_LESS
> >> "${Boost_FIND_VERSION}" (Unknown arguments specified).
> >
> > This line is correct though. Any chance of getting a more recent version
> > than 2.6.0 ? Could you remove the config/FindBoost.cmake file and re-run
> the
> > cmake from a fresh build dir? I can disable the 'RTT' FindBoost.cmake
> macro
> > for cmake versions < 2.6.2 or you could mail me your
> > /usr/share/cmake/Modules/FindBoost.cmake file and we can see what the
> diff
> > is.
>
> I prefer to install cmake using deb packages but a more recent version
> than 2.6.0 for etch is not available in the debian repository.
>
> After removing the config/FindBoost.cmake file the CMake errors are
> gone and I'm able to build RTT.
>
> I have attached my FindBoost.cmake file.
>

Ok. There seems to be a major change in the FindBoost.cmake macro between
2.6.0 and 2.6.2. It looks like VERSION_EQUAL etc. were only introduced in
2.6.2.

I'll see what I can do, but this is annoying.

Peter

CMake errors in config/FindBoost on debian etch

On Mon, Nov 9, 2009 at 11:22 AM, Peter Soetens <peter [..] ...>wrote:

>
>
> On Mon, Nov 9, 2009 at 10:19, Steven Kauffmann <steven [dot] kauffmann [..] ...
> > wrote:
>
>> On Fri, Nov 6, 2009 at 10:19 PM, Peter Soetens <peter [..] ...>
>> wrote:
>> > On Fri, Nov 6, 2009 at 18:39, Steven Kauffmann <
>> steven [dot] kauffmann [..] ...>
>> > wrote:
>> >>
>> >> Hi,
>> >>
>> >> After a svn up ( rtt-1.10 branch ) this morning, I get some CMake
>> >> errors when configuring rtt (default configuration):
>> >>
>> >> orocos RTT version (1.10.1)
>> >> No orocos-rtt.cmake file loaded, using default settings.See
>> >> orocos-rtt.default.cmake
>> >> -- CMAKE_VERSION: 2.6.0
>> >> CMake Error at config/FindBoost.cmake:282 (if):
>> >> if had incorrect arguments: NOT "${version}" VERSION_LESS
>> >> "${Boost_FIND_VERSION}" (Unknown arguments specified).
>> >
>> > This line is correct though. Any chance of getting a more recent version
>> > than 2.6.0 ? Could you remove the config/FindBoost.cmake file and re-run
>> the
>> > cmake from a fresh build dir? I can disable the 'RTT' FindBoost.cmake
>> macro
>> > for cmake versions < 2.6.2 or you could mail me your
>> > /usr/share/cmake/Modules/FindBoost.cmake file and we can see what the
>> diff
>> > is.
>>
>> I prefer to install cmake using deb packages but a more recent version
>> than 2.6.0 for etch is not available in the debian repository.
>>
>> After removing the config/FindBoost.cmake file the CMake errors are
>> gone and I'm able to build RTT.
>>
>> I have attached my FindBoost.cmake file.
>>
>
> Ok. There seems to be a major change in the FindBoost.cmake macro between
> 2.6.0 and 2.6.2. It looks like VERSION_EQUAL etc. were only introduced in
> 2.6.2.
>

It has been documented that 2.6.0 was not a very good release [citation
needed, it exists, but could not find it right now]. Upgrading to at least
2.6.2 should help relieve you pain.

Adolfo.

> I'll see what I can do, but this is annoying.
>
> Peter
>
>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
>

CMake errors in config/FindBoost on debian etch

On Mon, Nov 9, 2009 at 10:19 AM, Steven Kauffmann
<steven [dot] kauffmann [..] ...> wrote:
> On Fri, Nov 6, 2009 at 10:19 PM, Peter Soetens <peter [..] ...> wrote:
>> On Fri, Nov 6, 2009 at 18:39, Steven Kauffmann <steven [dot] kauffmann [..] ...>
>> wrote:
>>>
>>> Hi,
>>>
>>> After a svn up ( rtt-1.10 branch ) this morning, I get some CMake
>>> errors when configuring rtt (default configuration):
>>>
>>> orocos RTT version  (1.10.1)
>>> No orocos-rtt.cmake file loaded, using default settings.See
>>> orocos-rtt.default.cmake
>>> -- CMAKE_VERSION: 2.6.0
>>> CMake Error at config/FindBoost.cmake:282 (if):
>>>  if had incorrect arguments: NOT "${version}" VERSION_LESS
>>>  "${Boost_FIND_VERSION}" (Unknown arguments specified).
>>
>> This line is correct though. Any chance of getting a more recent version
>> than 2.6.0 ? Could you remove the config/FindBoost.cmake file and re-run the
>> cmake from a fresh build dir? I can disable the 'RTT' FindBoost.cmake macro
>> for cmake versions < 2.6.2 or you could mail me your
>> /usr/share/cmake/Modules/FindBoost.cmake file and we can see what the diff
>> is.
>
> I prefer to install cmake using deb packages but a more recent version
> than 2.6.0 for etch is not available in the debian repository.
>
> After removing the config/FindBoost.cmake file the CMake errors are
> gone and I'm able to build RTT.
>
> I have attached my FindBoost.cmake file.

Now it's attached.

> Steven
>