Starting OpenSim Developers' Guide

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Nashwa Elaraby
Posts: 13
Joined: Fri Apr 09, 2010 8:00 am

Starting OpenSim Developers' Guide

Post by Nashwa Elaraby » Mon Jun 28, 2010 10:57 am

Hi,

I am starting to work on the OpenSim Developers' guide to create an opensim model. I get an error when I try to build a solution on visual C++.

I have read your comment that it is a known bug, but I could not understand the workaround mentioned in the developers' forum.

I would really appreciate it, if you could please explain the solution for that error step by step.

Thank you,

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

RE: Starting OpenSim Developers' Guide

Post by Ayman Habib » Mon Jun 28, 2010 10:59 am

Hi,

Can you please explain the specific error your getting or the comment you're referring to?

Thanks,
-Ayman

User avatar
Nashwa Elaraby
Posts: 13
Joined: Fri Apr 09, 2010 8:00 am

RE: Starting OpenSim Developers' Guide

Post by Nashwa Elaraby » Mon Jun 28, 2010 11:19 am

This is the message I get on Visual C++,

1>------ Build started: Project: ZERO_CHECK, Configuration: RelWithDebInfo Win32 ------
1>Checking Build System
1>CMake does not need to re-run because CMakeFiles/generate.stamp is up-to-date.
1>Build log was saved at "file://c:\Program Files\OpenSim 2.0\sdk\APIExamples\ExampleMainSolution\ZERO_CHECK.dir\RelWithDebInfo\BuildLog.htm"
1>ZERO_CHECK - 0 error(s), 0 warning(s)
2>------ Build started: Project: Example Main, Configuration: RelWithDebInfo Win32 ------
2>Compiling...
2>TugOfWar1_CreateModel.cpp
2>Compiling manifest to resources...
2>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
2>Copyright (C) Microsoft Corporation. All rights reserved.
2>Linking...
2>LINK : C:\Program Files\OpenSim 2.0\sdk\APIExamples\ExampleMainSolution\RelWithDebInfo\TugOfWar1_CreateModel.exe not found or not built by the last incremental link; performing full link
2>Embedding manifest...
2>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
2>Copyright (C) Microsoft Corporation. All rights reserved.
2>Build log was saved at "file://c:\Program Files\OpenSim 2.0\sdk\APIExamples\ExampleMainSolution\TugOfWar1_CreateModel.dir\RelWithDebInfo\BuildLog.htm"
2>Example Main - 0 error(s), 0 warning(s)
========== Build: 2 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========


But I get then a RegSvr32 error window saying:

To register a module you must provide a binary name.


User avatar
Maha Abbassi
Posts: 16
Joined: Mon May 17, 2010 5:40 am

RE: Starting OpenSim Developers' Guide

Post by Maha Abbassi » Mon Jun 28, 2010 11:31 am

I got the same error when I started working on the developers guide, I replaced "RegSvr32" with the generated binary and it was fine then.

Did you try to run the binairies generated by the code in the build folder you specified (to make sure that there's something wrong with the binaries)?

-Maha

User avatar
Nashwa Elaraby
Posts: 13
Joined: Fri Apr 09, 2010 8:00 am

RE: Starting OpenSim Developers' Guide

Post by Nashwa Elaraby » Mon Jun 28, 2010 12:09 pm

I will try that. Thank you for your help.

User avatar
Andres Hernández
Posts: 6
Joined: Tue Apr 13, 2010 9:11 am

RE: Starting OpenSim Developers' Guide

Post by Andres Hernández » Fri Jul 02, 2010 10:29 am

¿Which are the binary files generated?

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

RE: Starting OpenSim Developers' Guide

Post by Ayman Habib » Fri Jul 02, 2010 10:48 am

Andres,

This depends on how you set your project, ususally the name is the same as the .cpp file used to create it (e.g. TugOfWar1_CreateModel.exe).

Cheers,
-Ayman

User avatar
Andres Hernández
Posts: 6
Joined: Tue Apr 13, 2010 9:11 am

RE: Starting OpenSim Developers' Guide

Post by Andres Hernández » Sat Jul 03, 2010 7:19 pm

thank you, it was really useful

POST REPLY