Building OCL with RTT installed in non standard location

Hi

Trying to build OCL.

I buildt RTT succesfully and set
-DCMAKE_INSTALL_PREFIX=/home/hugo/orocos/distro

I then do make install and it works.

When I go to build OCL then I run into problems that OCL is not found.

$ env | grep CMAKE
CMAKE_LIBRARY_PATH=/home/hugo/orocos/distro/lib
CMAKE_INCLUDE_PATH=/home/hugo/orocos/distro/include

but when I do make .

I get:

Orocos Component Library version (1.10.1)
No orocos-ocl.cmake file loaded, using default settings.See
orocos-ocl.default.cmake
Setting build type to 'OCL'
-- Found Doxygen: /usr/bin/doxygen
Found Doxygen -- documentation can be built
-- Detecting RTT
Searching RTT in /usr/local:
-- Looking for orocos-rtt >= 1.1.0 -- not found
-- Looking for orocos-rtt >= 1.0.0 -- not found
CMake Error at config/FindOrocosRTT.cmake:151 (MESSAGE):
Can't find Orocos Real-Time Toolkit (orocos-rtt.pc)
Call Stack (most recent call first):
CMakeLists.txt:143 (INCLUDE)

-----

Help

-H

Building OCL with RTT installed in non standard location

Hi Hugo,

See the orocos-ocl/INSTALL document. You need to set OROCOS_INSTALL
seperately to the place where RTT is installed.

Peter

On Sun, Jan 31, 2010 at 20:02, Hugo Garcia <hugo [dot] a [dot] garcia [..] ...> wrote:
> Hi
>
> Trying to build OCL.
>
> I buildt RTT succesfully and set
>  -DCMAKE_INSTALL_PREFIX=/home/hugo/orocos/distro
>
> I then do make install and it works.
>
> When I go to build OCL then I run into problems that OCL is not found.
>
> $ env | grep CMAKE
> CMAKE_LIBRARY_PATH=/home/hugo/orocos/distro/lib
> CMAKE_INCLUDE_PATH=/home/hugo/orocos/distro/include
>
> but when I do make .
>
> I get:
>
> Orocos Component Library version  (1.10.1)
> No orocos-ocl.cmake file loaded, using default settings.See
> orocos-ocl.default.cmake
> Setting build type to 'OCL'
> -- Found Doxygen: /usr/bin/doxygen
> Found Doxygen -- documentation can be built
> -- Detecting RTT
> Searching RTT in /usr/local:
> -- Looking for orocos-rtt >= 1.1.0 -- not found
> -- Looking for orocos-rtt >= 1.0.0 -- not found
> CMake Error at config/FindOrocosRTT.cmake:151 (MESSAGE):
>  Can't find Orocos Real-Time Toolkit (orocos-rtt.pc)
> Call Stack (most recent call first):
>  CMakeLists.txt:143 (INCLUDE)
>
> -----
>
> Help
>
> -H
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

Building OCL with RTT installed in non standard location

Hi

I did that too last night but it didn't quite work?

By RTT install do you mean where I untared the source distribution of
RTT or the directory where 'make install" points too whcih in my case
would be /home/hugo/orocos/distro' where the /include /lib and /share
are?? This point is not clear and is where I got stuck.

-H

On Mon, Feb 1, 2010 at 09:15, Peter Soetens <peter [..] ...> wrote:
> Hi Hugo,
>
> See the orocos-ocl/INSTALL document. You need to set OROCOS_INSTALL
> seperately to the place where RTT is installed.
>
> Peter
>
> On Sun, Jan 31, 2010 at 20:02, Hugo Garcia <hugo [dot] a [dot] garcia [..] ...> wrote:
>> Hi
>>
>> Trying to build OCL.
>>
>> I buildt RTT succesfully and set
>>  -DCMAKE_INSTALL_PREFIX=/home/hugo/orocos/distro
>>
>> I then do make install and it works.
>>
>> When I go to build OCL then I run into problems that OCL is not found.
>>
>> $ env | grep CMAKE
>> CMAKE_LIBRARY_PATH=/home/hugo/orocos/distro/lib
>> CMAKE_INCLUDE_PATH=/home/hugo/orocos/distro/include
>>
>> but when I do make .
>>
>> I get:
>>
>> Orocos Component Library version  (1.10.1)
>> No orocos-ocl.cmake file loaded, using default settings.See
>> orocos-ocl.default.cmake
>> Setting build type to 'OCL'
>> -- Found Doxygen: /usr/bin/doxygen
>> Found Doxygen -- documentation can be built
>> -- Detecting RTT
>> Searching RTT in /usr/local:
>> -- Looking for orocos-rtt >= 1.1.0 -- not found
>> -- Looking for orocos-rtt >= 1.0.0 -- not found
>> CMake Error at config/FindOrocosRTT.cmake:151 (MESSAGE):
>>  Can't find Orocos Real-Time Toolkit (orocos-rtt.pc)
>> Call Stack (most recent call first):
>>  CMakeLists.txt:143 (INCLUDE)
>>
>> -----
>>
>> Help
>>
>> -H
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>>
>
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Building OCL with RTT installed in non standard location

Hugo Garcia wrote:
> Hi
>
> I did that too last night but it didn't quite work?
>
> By RTT install do you mean where I untared the source distribution of
> RTT or the directory where 'make install" points too whcih in my case
> would be /home/hugo/orocos/distro' where the /include /lib and /share
> are?? This point is not clear and is where I got stuck.

Its where the make install points to.

Regards,
Sagar

Building OCL with RTT installed in non standard location

Hi all

Ruben and I found out that the INSTALL document does not mention the
-DCMAKE_INSTALL_PREFIX to be set as an argument for CMake for non
standard installation locations of RTT or other dependencies. It only
mentiones OROCOS_INSTALL but it does not specify the OROCOS_INSTALL as
a CMake argument. I thought it was a shell environment variable and
thus my error in building.

Correction to INSTALL doc:

Mention set cmake -DOROCOS_INSTALL=[instalation path created by RTT
make install]

alternative

Mention cmake -DCMAKE_INSTALL_PREFIX=[path to installation]

-H

On Mon, Feb 1, 2010 at 09:55, Sagar Behere <sagar [dot] behere [..] ...> wrote:
> Hugo Garcia wrote:
>>
>> Hi
>>
>> I did that too last night but it didn't quite work?
>>
>> By RTT install do you mean where I untared the source distribution of
>> RTT or the directory where 'make install" points too whcih in my case
>> would be /home/hugo/orocos/distro' where the /include /lib and /share
>> are?? This point is not clear and is where I got stuck.
>
> Its where the make install points to.
>
> Regards,
> Sagar
>

Building OCL with RTT installed in non standard location

On Feb 1, 2010, at 08:14 , Hugo Garcia wrote:

> Hi all
>
> Ruben and I found out that the INSTALL document does not mention the
> -DCMAKE_INSTALL_PREFIX to be set as an argument for CMake for non
> standard installation locations of RTT or other dependencies. It only
> mentiones OROCOS_INSTALL but it does not specify the OROCOS_INSTALL as
> a CMake argument. I thought it was a shell environment variable and
> thus my error in building.
>
> Correction to INSTALL doc:
>
> Mention set cmake -DOROCOS_INSTALL=[instalation path created by RTT
> make install]
>
> alternative
>
> Mention cmake -DCMAKE_INSTALL_PREFIX=[path to installation]
>
> -H
>
>
> On Mon, Feb 1, 2010 at 09:55, Sagar Behere <sagar [dot] behere [..] ...> wrote:
>> Hugo Garcia wrote:
>>>
>>> Hi
>>>
>>> I did that too last night but it didn't quite work?
>>>
>>> By RTT install do you mean where I untared the source distribution of
>>> RTT or the directory where 'make install" points too whcih in my case
>>> would be /home/hugo/orocos/distro' where the /include /lib and /share
>>> are?? This point is not clear and is where I got stuck.
>>
>> Its where the make install points to.
>>
>> Regards,
>> Sagar

It might be worth mod'ing the OCL cmake logic to try CMAKE_INSTALL_PREFIX if OROCOS_INSTALL is not set?
Stephen