OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Problems with CMake Script


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgCompute [osgCompute]
View previous topic :: View next topic  
Author Message
Jona
Newbie


Joined: 20 Aug 2011
Posts: 11

PostPosted: Sat Nov 26, 2011 9:50 pm    Post subject:
Problems with CMake Script
Reply with quote

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]
Back to top
View user's profile Send private message
Mick
User


Joined: 11 Mar 2009
Posts: 31

PostPosted: Tue Nov 29, 2011 1:43 pm    Post subject:
Re: Problems with CMake Script
Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgCompute [osgCompute] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts WG: CMake Updates for DicomTK zonk Submission 3 Fri May 12, 2017 10:46 am View latest post
No new posts Forum problems SMesserschmidt General 2 Wed Apr 12, 2017 7:24 am View latest post
No new posts OSG 3.4 and Qt 5 cmake problem. Found... Elias Tarasov General 1 Mon Apr 10, 2017 12:26 pm View latest post
No new posts CMake Updates for DicomTK zonk Submission 0 Fri Apr 07, 2017 12:19 pm View latest post
No new posts Update to FindCollada.cmake zonk Submission 12 Tue Apr 04, 2017 8:54 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP