Page 1 of 1

Starting OpenSim Developers' Guide

Posted: Mon Jun 28, 2010 10:57 am
by nelaraby
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,

RE: Starting OpenSim Developers' Guide

Posted: Mon Jun 28, 2010 10:59 am
by aymanh
Hi,

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

Thanks,
-Ayman

RE: Starting OpenSim Developers' Guide

Posted: Mon Jun 28, 2010 11:19 am
by nelaraby
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.


RE: Starting OpenSim Developers' Guide

Posted: Mon Jun 28, 2010 11:31 am
by maha
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

RE: Starting OpenSim Developers' Guide

Posted: Mon Jun 28, 2010 12:09 pm
by nelaraby
I will try that. Thank you for your help.

RE: Starting OpenSim Developers' Guide

Posted: Fri Jul 02, 2010 10:29 am
by andher
¿Which are the binary files generated?

RE: Starting OpenSim Developers' Guide

Posted: Fri Jul 02, 2010 10:48 am
by aymanh
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

RE: Starting OpenSim Developers' Guide

Posted: Sat Jul 03, 2010 7:19 pm
by andher
thank you, it was really useful