Home › Forum › SOFA › Getting Started › [SOLVED] Error in building SOFA using cmake
- This topic has 12 replies, 4 voices, and was last updated 8 years, 5 months ago by Hugo.
-
AuthorPosts
-
5 January 2016 at 05:47 #5266ASHBlocked
The error i got when i tried to build sofa using cmake 3.4.0
CMake Error at cmake/postProject.cmake:58 (target_link_libraries):
Utility target “eigen” must not be used as the target of a
target_link_libraries call.
Call Stack (most recent call first):
extlibs/eigen-3.2.1/CMakeLists.txt:11 (include)MY System is 32 bit
installed qt version is qt 4.8.3
using visual studio 20085 January 2016 at 07:01 #5267CarrezBlockedHi Ash.
Hmmm… what is your SOFA git revision? postProject.cmake was deleted from master branch in october, when all the cmake scripts were rewritten. Are you on branch 15.06 or 15.09 for example ?
BTW, CMake 3.4 works flawlessly with today’s master branch (cmake 3.4.1 for me)
5 January 2016 at 07:27 #5268CarrezBlockedI just checked out the 15.03 version and ran cmake, and I the same problem, except it is only a warning for me (?)
— Adding project ‘eigen’
CMake Warning (dev) at cmake/postProject.cmake:58 (target_link_libraries):
Policy CMP0039 is not set: Utility targets may not have link dependencies.
Run “cmake –help-policy CMP0039” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.Utility target “eigen” should not be used as the target of a
target_link_libraries call.
Call Stack (most recent call first):
extlibs/eigen-3.2.1/CMakeLists.txt:11 (include)
This warning is for project developers. Use -Wno-dev to suppress it.… perhaps this warning/error difference is due to the fact I am on OSX and you on Windows.
Please, tell me your git revision ?
5 January 2016 at 09:00 #5269ASHBlockedI am attaching the link from which i downloaded the zip file
https://github.com/vancegroup-mirrors/sofa-framework.git5 January 2016 at 09:41 #5270GuillaumeKeymasterHi Ash,
This is a very old and unofficial copy of SOFA sources !
Are you sure you want to use this ?I highly suggest you to use one of our versions (last one is 15.12) available here : https://www.sofa-framework.org/download/
Regards,
Guillaume.5 January 2016 at 10:11 #5272ASHBlockedHai
I already downloaded SOFA framework ,modules, application and dependencies from the above recommended site. Problem with me is, i dont have clear idea of making cmakelists.txt for building SOFA using cmake .
Thank you all for your response5 January 2016 at 11:00 #5273ASHBlockedCan anyone guide me in preparing the Cmakelist.txt for building SOFA
Thanks in advance5 January 2016 at 14:17 #5290CarrezBlockedI am not sure to understand what you mean by “preparing the Cmakelist.txt for building SOFA”
You don’t have to make the cmakelists yourself, they are provided with the code.
Simply follow this page:
https://www.sofa-framework.org/support/doc/build-on-windows/20 January 2016 at 14:46 #5353GuillaumeKeymasterHi Ash,
How are you dealing with your problem ?
Did you manage to build SOFA ?Regards,
Guillaume.20 January 2016 at 16:09 #5356ASHBlockedHi ,
Not yet done with sofa building.But i need to build it as soon as possible . error is still with cmake option saying that cmakelists.txt not found.
what i done for building sofa so far
my system 32 bit
visual studio 2008
installed qt 4.8.3
installed cmake
i cloned that git repository -version sofa 1.0 rcl and also windows dependencies.i didnot find any cmakelists.txt in that cloned files .i wil send the screen shot of error if needed.
Now i am using the binary version of SOFA ,but i need to built it by myself with sensable plugin.i dont know what makes me away from building SOFA .
Thanks in advance21 January 2016 at 09:33 #5359HugoKeymasterHi Ash,
That was my next advice : using the binaries.
Good that you already did.
We are going to write some documentation about how to build a plugin when you’re using the binaries. Did you face any trouble on this step?Thank you for sharing and do not hesitate to ask any further questions.
Cheers,
Hugo
2 May 2016 at 11:15 #6653HugoKeymaster6 June 2016 at 14:40 #7028HugoKeymasterDear @allenasha,
With no news about this topic, I will have to close the thread.
Do not hesitate to react if there is any news / infos about this.Cheers,
Hugo
-
AuthorPosts
- You must be logged in to reply to this topic.