Jona Newbie
Joined: 20 Aug 2011 Posts: 11
|
Posted: Sat Nov 26, 2011 9:50 pm Post subject: Problems with CMake Script |
|
|
Hi,
I'm currently using osgCompute for a multispectral image analysing program but I discovered some problems with the CMake Files.
First of all, the installing Taget doesn't work:
Quote:
|
1> -- Up-to-date: C:\Visual Studio 2010\Projects\Libs\osgCompute\install/lib/osgComputed.lib
1> CMake Error at src/osgCompute/cmake_install.cmake:47 (FILE):
1> file INSTALL cannot find "C:/Visual Studio
1> 2010/Projects/Libs/osgCompute/VC/bin/Debug/../osgComputed.dll".
1> Call Stack (most recent call first):
1> src/cmake_install.cmake:32 (INCLUDE)
1> cmake_install.cmake:32 (INCLUDE)
|
The file was build, but is in VC/bin/Debug/osgComputed.dll and not in VC/bin/Debug/../osgComputed.dll (mind the ../).
I tried to find the problem in the cmake file, but I got a bit confused about how the installing actually works. Maybe some of you guys can help me with that.
Then I tried the findosgcompute Module in my application. But it has a pretty obvious bug in finding the osgCompute Include directory:
Code:
|
OSGCOMPUTE_FIND_PATH (OSGCOMPUTE osgCompute/Context)
|
There is no such file as 'Context' in the subversion repository (rev 476). Replacing that by 'osgCompute/Computation' works well (I think Computation should be the most basic include file, as it is the only that that the Endianess Example includes).
And I have another suggestion: Now there is just 'include' as a PATH_SUFFIX. I would like to add 'osgCompute/include' as another possible Prefix. The intention is, that under Windows I have a Directory calles "Libs" where I put all the libraries. This directory is in my PATH enviroment variable. If Cmake would see osgCompute/include as a possible prefix I would not need a PATH entry for each library if have installed. I think that other users have a similar folder structure, so it would be very convenient for windows users. I also don't see a real downside of adding another Prefix (well and of course also two for the library searching, osgCompute/lib and osgCompute/lib64).
It is not a must have, but I think it would be nice.
Thank you!
Cheers,
Jonathan
[edit] I have created a patch file, which contains a solution for the second problem and my suggestion:
http://pastebin.com/V0SYpgEK
[/edit] |
|
Mick User
Joined: 11 Mar 2009 Posts: 31
|
Posted: Tue Nov 29, 2011 1:43 pm Post subject: Re: Problems with CMake Script |
|
|
Hi Jonathan,
thanks for your post.
Jona wrote:
|
First of all, the installing Taget doesn't work:
Quote:
|
1> -- Up-to-date: C:\Visual Studio 2010\Projects\Libs\osgCompute\install/lib/osgComputed.lib
1> CMake Error at src/osgCompute/cmake_install.cmake:47 (FILE):
1> file INSTALL cannot find "C:/Visual Studio
1> 2010/Projects/Libs/osgCompute/VC/bin/Debug/../osgComputed.dll".
1> Call Stack (most recent call first):
1> src/cmake_install.cmake:32 (INCLUDE)
1> cmake_install.cmake:32 (INCLUDE)
|
The file was build, but is in VC/bin/Debug/osgComputed.dll and not in VC/bin/Debug/../osgComputed.dll (mind the ../).
I tried to find the problem in the cmake file, but I got a bit confused about how the installing actually works. Maybe some of you guys can help me with that.
|
Actually, I'm not quite sure if we tested under MSVC 2010. Strange... Did the install-script work before? Do you use the current SVN version? I will try to get a VS 2010 machine and do some testing...
Jona wrote:
|
Then I tried the findosgcompute Module in my application. But it has a pretty obvious bug in finding the osgCompute Include directory:
Code:
|
OSGCOMPUTE_FIND_PATH (OSGCOMPUTE osgCompute/Context)
|
There is no such file as 'Context' in the subversion repository (rev 476). Replacing that by 'osgCompute/Computation' works well (I think Computation should be the most basic include file, as it is the only that that the Endianess Example includes).
|
Thanks - of course you are right. I just updated the FIND-scripts which should find the new lib (osgCudaStats) too.
Best regards,
Mick _________________ SVT Group |
|