Errors in building Opensim core 4.4.1 from source (C++) code

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Milan Chandarana
Posts: 6
Joined: Wed Aug 05, 2020 1:17 am

Errors in building Opensim core 4.4.1 from source (C++) code

Post by Milan Chandarana » Fri Feb 23, 2024 5:43 am

Hi Guys,

I am currently in the process of compiling the OpenSim 4.4.1 C++ source code on Windows, utilizing Visual Studio 2019 and CMAKE.

I have encountered a few errors during the final build, as attached in the screenshot.

I would greatly appreciate any guidance on addressing these issues!!

Thanking You,
Milan Chandarana
Attachments
Error_VS-2019.JPG
Error_VS-2019.JPG (352.26 KiB) Viewed 1126 times

Tags:

User avatar
Nicholas Bianco
Posts: 1050
Joined: Thu Oct 04, 2012 8:09 pm

Re: Errors in building Opensim core 4.4.1 from source (C++) code

Post by Nicholas Bianco » Fri Feb 23, 2024 12:01 pm

Hi Milan,

Is this in a fresh build environment? If you've built the Java bindings from another OpenSim commit in the same build folder, I recommend deleting the "Bindings" folder under opensim-core-build and trying again.

-Nick

User avatar
Milan Chandarana
Posts: 6
Joined: Wed Aug 05, 2020 1:17 am

Re: Errors in building Opensim core 4.4.1 from source (C++) code

Post by Milan Chandarana » Sat Feb 24, 2024 11:24 am

Hi Nick,

Thank you very much for your prompt response.

As per your suggestion I was able to built solution for all run, by removing Binding folder and previous versions.

Although, encountered following errors (attached) while building RunTestParallel.
What could be the reason?

Best regards,
Milan Chandarana
Attachments
Error1_VS-2019.JPG
Error1_VS-2019.JPG (150.71 KiB) Viewed 996 times

User avatar
Nicholas Bianco
Posts: 1050
Joined: Thu Oct 04, 2012 8:09 pm

Re: Errors in building Opensim core 4.4.1 from source (C++) code

Post by Nicholas Bianco » Sat Feb 24, 2024 12:27 pm

Hi Milan,

Did you remove the Bindings folder under the build directory or the source directory?

-Nick

User avatar
Milan Chandarana
Posts: 6
Joined: Wed Aug 05, 2020 1:17 am

Re: Errors in building Opensim core 4.4.1 from source (C++) code

Post by Milan Chandarana » Sun Feb 25, 2024 2:34 am

Hi Nick,

I removed Binding folder just from Built-directory (opensim-core-built).

Best regards,
Milan

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: Errors in building Opensim core 4.4.1 from source (C++) code

Post by Ayman Habib » Thu Feb 29, 2024 2:14 pm

Hi Milan,

If you plan to use the Java bindings then you need to rerun CMake so that these bindings are recreated and then build the whole project, at that point the java test cases should build and pass. If however you have no intention to use the bindings then you should turn these off at CMake and configure, and at that point the solution will not try to build or test the bindings and you should have a clean test result.

Hope this helps,
-Ayman

POST REPLY