rtt-2.4 build fails on windows

Hi all,

I checked out toolchain-2.4 today an tried to build it under windows (MSVC-8). The build failed and I got lots of messages like the one down:

 1>c:\orocos\orocos-toolchain-2.4.0\rtt\rtt\os\oro_msvc/oro_arch.h(25) : error C2664: 
 'oro_atomic_add' : cannot convert parameter 1 from 'int' to 'oro_atomic_t *'
 1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast 
 or function-style cast
Ciao Joerg

rtt-2.4 build fails on windows

On Tue, Jun 21, 2011 at 12:50 PM, <joerg [..] ...> wrote:
>

peter wrote:
On Mon, Jun 20, 2011 at 5:17 PM,  <joerg [..] ...> wrote:
>>
>> Hi all,
>>
>> I checked out toolchain-2.4 today an tried to build it under windows
>> (MSVC-8).
>> The build failed and I got lots of messages like the one down:
>>
>>  1>c:\orocos\orocos-toolchain-2.4.0\rtt\rtt\os\oro_msvc/oro_arch.h(25) :
>> error C2664:
>>  'oro_atomic_add' : cannot convert parameter 1 from 'int' to 'oro_atomic_t
>> *'
>>  1> Conversion from integral type to pointer type requires
>> reinterpret_cast, C-style cast
>>  or function-style cast
>
> Hmm. I had seen that too and thought I fixed it:
> 8889e5f56c4c1ace4fd2d5c5d1afb000bace7d1f and
> 1bae55d28f2940d27719cb4bdd01f174eeeb8f08
>
> So this is on the toolchain-2.4 branch but not in the 2.4.0 release.
> It was fixed after the release.
>
> Peter
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

>
>
> I checked out the release-2.4 again an could not compile and install RTT.
> However, now OCL is making trouble...
> The CMakeLists.txt contains two time a path "c:\...."
> IF (MSVC)
>   SET(CMAKE_INSTALL_PREFIX
>     "C:/Program Files/orocos" CACHE PATH "Orocos install prefix" FORCE
>     )
>  ENDIF(MSVC)
>
> and
>
> set(RTT_HINTS "c:\Program Files\orocos") # Look here .....
>
> After setting the path in both places to "c:/Program Files/orocos" I came a
> bit further..

Yep, it must be forward slashes in cmake ....

> But Cmake complained now with:
>
>  Orocos Component Library version  (2.4.0)
>  Orocos-RTT found in c:/Program
> Files/orocos/lib/cmake/orocos-rtt/orocos-rtt-win32- libraries.cmake
>  CMake Error at c:/Program
> Files/orocos/lib/cmake/orocos-rtt/orocos-rtt-config.cmake:211  (message):
>  Could not find the following required OROCOS-RTT plugins: c:/Program
>  Files/orocos.  You may want to append the plugins folder location to the
>  RTT_COMPONENT_PATH environment variable.  E.g., if the plugin is located at
>  /path/to/plugins/libfoo-plugin.so, add /path/to to RTT_COMPONENT_PATH
>  Call Stack (most recent call first):
>  CMakeLists.txt:164 (find_package)
>
> Configuring incomplete, errors occurred!
>
> The CMakeCache.txt contains a strange line which does not look right to me..
>
> //Path to a library.
> "OROCOS-RTT_C:/PROGRAM FILES/OROCOS_LIBRARY":FILEPATH=OROCOS-RTT_C:/PROGRAM
> FILES/OROCOS_LIBRARY-NOTFOUND
>
> Cmake was not able complete the generation process, means no build :-(
>
> I have attached the CMakeCache.txt
> Any Ideas what it could be?

Update to latest ocl/toolchain-2.4, clear your cmake cache file and
try again :-) The line you found contained 2 errors...

Thanks for reporting,
Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Re: rtt-2.4 build fails on windows

peter wrote:
On Tue, Jun 21, 2011 at 12:50 PM, <joerg [..] ...> wrote: >
peter wrote:
On Mon, Jun 20, 2011 at 5:17 PM, <joerg [..] ...> wrote: >> >> Hi all, >> >> I checked out toolchain-2.4 today an tried to build it under windows >> (MSVC-8). >> The build failed and I got lots of messages like the one down: >> >> 1>c:\orocos\orocos-toolchain-2.4.0\rtt\rtt\os\oro_msvc/oro_arch.h(25) : >> error C2664: >> 'oro_atomic_add' : cannot convert parameter 1 from 'int' to 'oro_atomic_t >> *' >> 1> Conversion from integral type to pointer type requires >> reinterpret_cast, C-style cast >> or function-style cast >> Hmm. I had seen that too and thought I fixed it: > 8889e5f56c4c1ace4fd2d5c5d1afb000bace7d1f and > 1bae55d28f2940d27719cb4bdd01f174eeeb8f08 >> So this is on the toolchain-2.4 branch but not in the 2.4.0 release. > It was fixed after the release. >> Peter > -- > Orocos-Users mailing list > Orocos-Users [..] ... > http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users >
>> > I checked out the release-2.4 again an could not compile and install RTT. > However, now OCL is making trouble... > The CMakeLists.txt contains two time a path "c:\...." > IF (MSVC) > SET(CMAKE_INSTALL_PREFIX > "C:/Program Files/orocos" CACHE PATH "Orocos install prefix" FORCE > ) > ENDIF(MSVC) >> and >> set(RTT_HINTS "c:\Program Files\orocos") # Look here ..... >

> After setting the path in both places to "c:/Program Files/orocos" I came a > bit further..

Yep, it must be forward slashes in cmake ....

> But Cmake complained now with: >> Orocos Component Library version (2.4.0) > Orocos-RTT found in c:/Program > Files/orocos/lib/cmake/orocos-rtt/orocos-rtt-win32- libraries.cmake > CMake Error at c:/Program > Files/orocos/lib/cmake/orocos-rtt/orocos-rtt-config.cmake:211 (message): > Could not find the following required OROCOS-RTT plugins: c:/Program > Files/orocos. You may want to append the plugins folder location to the > RTT_COMPONENT_PATH environment variable. E.g., if the plugin is located at > /path/to/plugins/libfoo-plugin.so, add /path/to to RTT_COMPONENT_PATH > Call Stack (most recent call first): > CMakeLists.txt:164 (find_package) >> Configuring incomplete, errors occurred! >> The CMakeCache.txt contains a strange line which does not look right to me.. >> //Path to a library. > "OROCOS-RTT_C:/PROGRAM FILES/OROCOS_LIBRARY":FILEPATH=OROCOS-RTT_C:/PROGRAM > FILES/OROCOS_LIBRARY-NOTFOUND >> Cmake was not able complete the generation process, means no build :-( >

> I have attached the CMakeCache.txt > Any Ideas what it could be?

Update to latest ocl/toolchain-2.4, clear your cmake cache file and try again :-) The line you found contained 2 errors...

Thanks for reporting, Peter -- Orocos-Users mailing list Orocos-Users [..] ... http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

where did you apply the fix?? I checked out release-2.4 and have still the same line in the CMakeLists.txt

Ciao Joerg


Computer are like air conditioner, they stop working properly when opening windows

rtt-2.4 build fails on windows

On Mon, Jun 20, 2011 at 5:17 PM, <joerg [..] ...> wrote:
> Hi all,
>
> I checked out toolchain-2.4 today an tried to build it under windows (MSVC-8).
> The build failed and I got lots of messages like the one down:
>
>  1>c:\orocos\orocos-toolchain-2.4.0\rtt\rtt\os\oro_msvc/oro_arch.h(25) : error C2664:
>  'oro_atomic_add' : cannot convert parameter 1 from 'int' to 'oro_atomic_t *'
>  1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast
>  or function-style cast

Hmm. I had seen that too and thought I fixed it:
8889e5f56c4c1ace4fd2d5c5d1afb000bace7d1f and
1bae55d28f2940d27719cb4bdd01f174eeeb8f08

So this is on the toolchain-2.4 branch but not in the 2.4.0 release.
It was fixed after the release.

Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Re: rtt-2.4 build fails on windows

peter wrote:
On Mon, Jun 20, 2011 at 5:17 PM, <joerg [..] ...> wrote: > Hi all, >> I checked out toolchain-2.4 today an tried to build it under windows (MSVC-8). > The build failed and I got lots of messages like the one down: >

> 1>c:\orocos\orocos-toolchain-2.4.0\rtt\rtt\os\oro_msvc/oro_arch.h(25) : error C2664: > 'oro_atomic_add' : cannot convert parameter 1 from 'int' to 'oro_atomic_t *' > 1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast > or function-style cast

Hmm. I had seen that too and thought I fixed it: 8889e5f56c4c1ace4fd2d5c5d1afb000bace7d1f and 1bae55d28f2940d27719cb4bdd01f174eeeb8f08

So this is on the toolchain-2.4 branch but not in the 2.4.0 release. It was fixed after the release.

Peter -- Orocos-Users mailing list Orocos-Users [..] ... http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

I checked out the release-2.4 again an could not compile and install RTT. However, now OCL is making trouble... The CMakeLists.txt contains two time a path "c:\...."

 IF (MSVC)
    SET(CMAKE_INSTALL_PREFIX
      "C:/Program Files/orocos" CACHE PATH "Orocos install prefix" FORCE
      )
  ENDIF(MSVC)
and

 set(RTT_HINTS "c:\Program Files\orocos") # Look here .....
After setting the path in both places to "c:/Program Files/orocos" I came a bit further.. But Cmake complained now with:

  Orocos Component Library version  (2.4.0)
  Orocos-RTT found in c:/Program Files/orocos/lib/cmake/orocos-rtt/orocos-rtt-win32- libraries.cmake
  CMake Error at c:/Program Files/orocos/lib/cmake/orocos-rtt/orocos-rtt-config.cmake:211 
  (message):
  Could not find the following required OROCOS-RTT plugins: c:/Program
  Files/orocos.  You may want to append the plugins folder location to the
  RTT_COMPONENT_PATH environment variable.  E.g., if the plugin is located at
  /path/to/plugins/libfoo-plugin.so, add /path/to to RTT_COMPONENT_PATH
  Call Stack (most recent call first):
  CMakeLists.txt:164 (find_package)

 Configuring incomplete, errors occurred!
The CMakeCache.txt contains a strange line which does not look right to me..

 //Path to a library.
 "OROCOS-RTT_C:/PROGRAM FILES/OROCOS_LIBRARY":FILEPATH=OROCOS-RTT_C:/PROGRAM FILES/OROCOS_LIBRARY-NOTFOUND
Cmake was not able complete the generation process, means no build :-(

I have attached the CMakeCache.txt Any Ideas what it could be?


Computer are like air conditioner, they stop working properly when opening windows

rtt-2.4 build fails on windows

On Tue, Jun 21, 2011 at 4:47 PM, <joerg [..] ...> wrote:
>

peter wrote:
On Tue, Jun 21, 2011 at 12:50 PM,  <joerg [..] ...> wrote:
>>
peter wrote:
On Mon, Jun 20, 2011 at 5:17 PM,  <joerg [..] ...> wrote:
>>>
>>> Hi all,
>>>
>>> I checked out toolchain-2.4 today an tried to build it under windows
>>> (MSVC-8).
>>> The build failed and I got lots of messages like the one down:
>>>
>>>  1>c:\orocos\orocos-toolchain-2.4.0\rtt\rtt\os\oro_msvc/oro_arch.h(25) :
>>> error C2664:
>>>  'oro_atomic_add' : cannot convert parameter 1 from 'int' to 'oro_atomic_t
>>> *'
>>>  1> Conversion from integral type to pointer type requires
>>> reinterpret_cast, C-style cast
>>>  or function-style cast
>>
>> Hmm. I had seen that too and thought I fixed it:
>> 8889e5f56c4c1ace4fd2d5c5d1afb000bace7d1f and
>> 1bae55d28f2940d27719cb4bdd01f174eeeb8f08
>>
>> So this is on the toolchain-2.4 branch but not in the 2.4.0 release.
>> It was fixed after the release.
>>
>> Peter
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>>

>>
>>
>> I checked out the release-2.4 again an could not compile and install RTT.
>> However, now OCL is making trouble...
>> The CMakeLists.txt contains two time a path "c:\...."
>> IF (MSVC)
>>   SET(CMAKE_INSTALL_PREFIX
>>     "C:/Program Files/orocos" CACHE PATH "Orocos install prefix" FORCE
>>     )
>>  ENDIF(MSVC)
>>
>> and
>>
>> set(RTT_HINTS "c:\Program Files\orocos") # Look here .....
>>
>> After setting the path in both places to "c:/Program Files/orocos" I came a
>> bit further..
>
> Yep, it must be forward slashes in cmake ....
>
>> But Cmake complained now with:
>>
>>  Orocos Component Library version  (2.4.0)
>>  Orocos-RTT found in c:/Program
>> Files/orocos/lib/cmake/orocos-rtt/orocos-rtt-win32- libraries.cmake
>>  CMake Error at c:/Program
>> Files/orocos/lib/cmake/orocos-rtt/orocos-rtt-config.cmake:211  (message):
>>  Could not find the following required OROCOS-RTT plugins: c:/Program
>>  Files/orocos.  You may want to append the plugins folder location to the
>>  RTT_COMPONENT_PATH environment variable.  E.g., if the plugin is located at
>>  /path/to/plugins/libfoo-plugin.so, add /path/to to RTT_COMPONENT_PATH
>>  Call Stack (most recent call first):
>>  CMakeLists.txt:164 (find_package)
>>
>> Configuring incomplete, errors occurred!
>>
>> The CMakeCache.txt contains a strange line which does not look right to me..
>>
>> //Path to a library.
>> "OROCOS-RTT_C:/PROGRAM FILES/OROCOS_LIBRARY":FILEPATH=OROCOS-RTT_C:/PROGRAM
>> FILES/OROCOS_LIBRARY-NOTFOUND
>>
>> Cmake was not able complete the generation process, means no build :-(
>>
>> I have attached the CMakeCache.txt
>> Any Ideas what it could be?
>
> Update to latest ocl/toolchain-2.4, clear your cmake cache file and
> try again :-) The line you found contained 2 errors...
>
> Thanks for reporting,
> Peter
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

>
> where did you apply the fix??
> I checked out release-2.4 and have still the same line in the CMakeLists.txt

$ git push origin toolchain-2.4
Counting objects: 5, done.
Delta compression using up to 12 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 349 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
=> Syncing Gitorious... [OK]
To git@gitorious.org:/orocos-toolchain/ocl.git
   bb9bda4..570776b  toolchain-2.4 -> toolchain-2.4

It's definately on gitorious. although the site seems to be down right now...

Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users