Compatibility CMake - VS2015 - OpenSim - MatLab

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Robert Steidl
Posts: 16
Joined: Tue Nov 24, 2015 3:03 am

Compatibility CMake - VS2015 - OpenSim - MatLab

Post by Robert Steidl » Tue Dec 06, 2016 2:54 am

Dear Team SimTK,

i have tried to set up a Simulation using CMake, VS and OpenSim - but I didn't get that at first! I have used CMake GUI (3.7.1), VS 2015 (64-bit) & OpenSim 3.3 (64-Bit)! After a tiny web-research I found the recommendation to use VS 2010 Express and OpenSim in 32-Bit version!

After I have de- & re-installed the VS 2010 32-Bit and the Open Sim 3.3 32-Bit Version, the compiling and set up of the Simulation works fine! But now, I want to implement MatLab and unfortunately I have it in 64-Bit version - which doesn't interact with the OpenSim 32-Bit version!

So my question - is there a 64-Bit workline of the products which is currently working? Hope you can help me,

greetings from Vienna,
Robert

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Compatibility CMake - VS2015 - OpenSim - MatLab

Post by jimmy d » Tue Dec 06, 2016 1:50 pm

You can compile the OpenSim source as a 64-bit package. 32- or 64- come down to your compiler. If you build from source you keep your whole project in 64.

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

Re: Compatibility CMake - VS2015 - OpenSim - MatLab

Post by Ayman Habib » Tue Dec 06, 2016 2:13 pm

Hi Robert,

Actually VisualStudio 2015 is the only version that can compile the sources of OpenSim 3.3. As James suggested you should build the whole stack of libraries as 64 bit if you're planning to use it in 64 bit Matlab.

Please let us know what problems you run into, if any. In general you don't even need to build from sources to use the API from Matlab you can use a distribution as described here http://simtk-confluence.stanford.edu:80 ... ith+Matlab

The info you found about using VS 2010 is stale and likely refers to earlier releases.

Hope this helps,
-Ayman

User avatar
Robert Steidl
Posts: 16
Joined: Tue Nov 24, 2015 3:03 am

Re: Compatibility CMake - VS2015 - OpenSim - MatLab

Post by Robert Steidl » Wed Dec 07, 2016 5:02 am

Hy James, Hy Ayman,

thank you for your suggestions - I finally got it work using CMake 3.7.1, VS 2015 and OpenSim 3.3 with 64-bit Versions! I actually found the problem - while installing OpenSim I ticked "Add OpenSim to System path for all users" - but at the end of the installation I got the message: "Path is too long" - is this a commonly known issue?

Today I added the Path manually - and there it is - everything works fine!

Using MatLab is my final way - I only want to get into this issue with the Tutorial for better understanding!

Robert

User avatar
Thomas Uchida
Posts: 1768
Joined: Wed May 16, 2012 11:40 am

Re: Compatibility CMake - VS2015 - OpenSim - MatLab

Post by Thomas Uchida » Wed Dec 07, 2016 3:44 pm

I got the message: "Path is too long" - is this a commonly known issue?
This is a "feature" of Windows. Depending on which version of Windows you are using, there may be a limit of 260 characters for any single path (https://msdn.microsoft.com/en-us/librar ... px#maxpath) and a limit of 2047 characters for the system PATH variable (https://software.intel.com/en-us/articl ... h-variable). Note: if the system PATH variable exceeds 2047 characters, it may be truncated when you reboot.

POST REPLY