Home › Forum › SOFA › Building SOFA › [SOLVED] Missing lib files
Tagged: SOFA_2106, VS2017, Windows_10
- This topic has 6 replies, 5 voices, and was last updated 2 years, 12 months ago by Julien D..
-
AuthorPosts
-
14 July 2021 at 13:37 #20027NerioDevBlocked
I am trying to compile SOFA to be used in another engine.
After following the steps how to build SOFA on windows and generated the project files using CMake.Opening the project:
Project already contains an item named ‘SofaBase’
Project already contains an item named ‘SofaFramework’While compiling it with Visual Studio 2017 it gives me the error SofaBase.lib and SofaGui.lib.
Error LNK1181 cannot open input file ‘..\..\..\..\lib\Release\SofaBase.lib’
The SofaGui.lib I can drop but I do think I need the SofaBase.lib.
How can I let CMake generate the SofaBase.lib.30 August 2021 at 17:10 #20260marco.ferroBlockedHi NerioDev,
Did you end up with a solution for the mentioned issue? I’m currently addressing exactly the same one (but with Visual Studio 2019) and I’m not able to build all the generated projects due to the missing generation of some .lib files like SofaBase.lib. In addition, at the opening of the project, apart from SofaBase and SofaFramework, I also got that same warning for SofaGui and SofaSimulation.
Did you find out the reasons for that and the way to solve it?
ThanksMarco
1 September 2021 at 11:34 #20278TimesBlockedHi @NerioDev and @marco-ferro ,
The solution that worked for me was to download the sofa binary (the one that’s already compiled) and then copy the missing libs from there to “..\lib\Release” in your build folder. Hope that helps
7 October 2021 at 10:21 #20538HugoKeymasterHi @NerioDev and @marco-ferro ,
Sorry for the very late reply.
Have the solution proposed by @akthetimes worked for you?If it did not, I am sure @guillaumeparan could help on this.
If it did, I would be pleased to have some insights of your achievements. Anyway it could be nice to highlight them at the SOFA Week 2021 Symposium!Best wishes,
Hugo
10 November 2021 at 13:57 #20760Julien D.BlockedHello you all,
I’ve tried to install sofa v21.06 on another computer that the one I’m using right now, with Windows 140 and using Visual Studio 2019 too !
I am going to try right now the solution proposed by @akTheTimes.
I also have an error while building in-tree sofaPython3 on Sofa v21, with still mission library files and also I have a pybind11 atritbute error.
Have a good day
10 November 2021 at 14:30 #20761Julien D.BlockedOkie, so to install Sofa21.06, I have copied the files SofaBase.lib and SofaGui.lib from the binaries of sofa to my sofa/build folder.
It allows me to finish compiling sofa successfully !
However, when I try to compile SofaPython3, I also have to add SofaPython3.lib to sofa\build\lib\release and Core.lib in ..\sofa\build\lib\python3\site-packages\Sofa\libraries. But when I do this very last operation, I have lots of errors like
Erreur LNK2019 symbole externe non résolu "__declspec(dllimport) void __cdecl sofapython3::PrintTo(struct sofapython3::PythonTestData const &,class std::basic_ostream<char,struct std::char_traits<char> > *)" (__imp_?PrintTo@sofapython3@@YAXAEBUPythonTestData@1@PEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) référencé dans la fonction "public: virtual void __cdecl testing::internal::ParameterizedTestSuiteInfo<class anonymous namespace::Sofa>::RegisterTests(void)" (?RegisterTests@?$ParameterizedTestSuiteInfo@VSofa@?A0x5ffb74db@@@internal@testing@@UEAAXXZ) Bindings.Sofa.Tests D:\Utilisateurs\jducrocq\Documents\Librairies\sofa\build\applications\plugins\SofaPython3\bindings\Sofa\tests\PythonModule_Sofa_test.obj 1
which i don’t understand at all !
I also still have the same error
Erreur C2011 'pybind11::attribute_error' : redéfinition du type 'class' Bindings.Sofa.Core D:\Utilisateurs\jducrocq\Documents\Librairies\sofa\src\applications\plugins\SofaPython3\bindings\Sofa\src\SofaPython3\Sofa\Core\Binding_BaseData.cpp 37
which I don’t know how to solve either.
I hope that my experience would help others facing similar issues.
Have a great day !
21 November 2021 at 19:17 #20839 -
AuthorPosts
- You must be logged in to reply to this topic.