Page 1 of 1

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

Posted: Fri Feb 23, 2024 5:43 am
by milan00988
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

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

Posted: Fri Feb 23, 2024 12:01 pm
by nbianco
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

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

Posted: Sat Feb 24, 2024 11:24 am
by milan00988
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

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

Posted: Sat Feb 24, 2024 12:27 pm
by nbianco
Hi Milan,

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

-Nick

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

Posted: Sun Feb 25, 2024 2:34 am
by milan00988
Hi Nick,

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

Best regards,
Milan

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

Posted: Thu Feb 29, 2024 2:14 pm
by aymanh
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