API Developer's Guide

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Michael Samaan
Posts: 12
Joined: Wed Jan 13, 2010 11:38 am

API Developer's Guide

Post by Michael Samaan » Fri Mar 19, 2010 8:29 am

I have tried to follow the example in the API Developer's Guide (Section 3.2) to build a body position analysis from the template. I have followed all instructions as stated yet when I try to configure the settings in CMake (v2.6), I received various errors that I have listed below. Has anyone had the same difficulties? Is there a way to fix these errors? Thanks!

1) "bcc32" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.

2) Internal CMake error, TryCompile configure of cmake failed

3) CMake error at C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32
(MESSAGE): The C compiler "bcc32" is not able to compile a simple test program.
It failes with the following output:
CMake will not be able to correctly generate this project.
Call Stack(most recent call first): CMakeLists.txt:1(Project)

4) Your CXX compiler: "bcc32" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler
path or name

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

RE: API Developer's Guide

Post by Ayman Habib » Fri Mar 19, 2010 12:09 pm

Michael,

What C++ compiler are you using? Seems that CMake is finding Borland bcc compiler that is not installed properly. This compiler is not supported. Please use VisualStudio version 8.0 or later on Windows.

If you have VisualStudio installed, then CMake is not finding it. You either need to add it to your path, fix its installation or re-install it. I've seen cases where installing VisualStudio after CMake is installed was problematic, so you may be able to uninstall then reinstall CMake 2.6 (or later) instead since it's much less invasive than VisualStudio installation.

Please let me know how that goes,
-Ayman

User avatar
Michael Samaan
Posts: 12
Joined: Wed Jan 13, 2010 11:38 am

RE: API Developer's Guide

Post by Michael Samaan » Mon Mar 22, 2010 2:58 pm

Ayman,
I have uninstalled and reinstalled CMake. I have added a path for both the CMAKE_C_COMPILER and the CMAKE_CXX_COMPILER entries. When I press configure, CMake goes onto process something yet does not produce or show any types of results or errors. Is it possible that I may have added the wrong path to the above entries? I am not sure as to which exact file path I should direct these entries to as I have tried quite a few different paths and none of these work.

Mike

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

RE: API Developer's Guide

Post by Ayman Habib » Mon Mar 22, 2010 4:56 pm

Michael,

What version of Visual Studio and CMake do you have?
We recommend CMake versions 2.4.8, 2.6 (2.8 appears to work too).

-Ayman

User avatar
Michael Samaan
Posts: 12
Joined: Wed Jan 13, 2010 11:38 am

RE: API Developer's Guide

Post by Michael Samaan » Tue Mar 23, 2010 8:00 am

Ayman,
I am using Visual Basic 2008 express edition and CMake 2.8.

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

RE: API Developer's Guide

Post by Ayman Habib » Tue Mar 23, 2010 9:16 am

Dear Michael,

Visual Basic will not work, you need Visual Studio (C++) 2008 or later. Express versions had some issues dealing with libraries built using Visual Studio Professional but that's way downstream.

Please let us know how it goes after installing Visual Studio C++ (and reinstalling CMake afterwards to make sure CMake finds the C++ compiler).

-Ayman

-Ayman

User avatar
Michael Samaan
Posts: 12
Joined: Wed Jan 13, 2010 11:38 am

RE: API Developer's Guide

Post by Michael Samaan » Thu Mar 25, 2010 12:51 pm

Ayman,
I have installed Visual Studio 2008 and CMake 2.8
The files were compiled successfully in CMake but now I am getting errors in Visual Studio when I try to build the solution. The error I receive is pasted below.

Thanks

1>------ Build started: Project: Libraries - MyAnalysis, Configuration: Release Win32 ------
1>Compiling...
1>MyAnalysis.cpp
1>..\MyAnalysis.cpp(490) : error C2039: 'getStep' : is not a member of 'OpenSim::Model'
1> C:\Program Files\OpenSim 2.0\sdk\include\OpenSim/Simulation/Model/Model.h(90) : see declaration of 'OpenSim::Model'
1>Build log was saved at "file://c:\Documents and Settings\samaan\Desktop\plugin\plugin build\MyAnalysis.dir\Release\BuildLog.htm"
1>Libraries - MyAnalysis - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

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

RE: API Developer's Guide

Post by Ayman Habib » Tue Mar 30, 2010 1:24 am

Hi Michael,

Yes, that's a known bug that was introduced in 2.0.1. Please check the developers' forum message below for a workaround..

https://simtk.org/forum/message.php?msg_id=3371

and let me know how that goes,

Good Luck,
-Ayman

User avatar
Huseyin Celik
Posts: 4
Joined: Thu Sep 10, 2009 5:41 pm

RE: API Developer's Guide

Post by Huseyin Celik » Sun Apr 11, 2010 10:23 pm

Dear Ayman Habib:

I have a similar problem. Could you update the files? Thanks in advance.

Huseyin Celik


POST REPLY