University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

Build failure | General SmartBody Discussion | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Build failure
July 20, 2012
8:25 pm
Avatar
mkeysman
Guest
Guests

On downloading Smartbody and attempting to build it in Visual C++ 2010, the sbm-fltkd.exe file fails to build. I get three LNK2019 errors declaring calls to
RetargetViewer::setSkeletonName, RetargetViewer::setCharacterName and RetargetViewer::RetargetViewer, as called from FltkViewer::processDragAndDrop, have unresolved external symbols. Can you suggest ways to fix this?

With gratitude,
Michael Keysman

July 20, 2012
8:46 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

I just checked in r3582 to fix this. Can you update and try again?

Ari

July 21, 2012
3:50 pm
Avatar
mkeysman
Guest
Guests

Dear Ari,

The build still failed. Here is the output from Visual Studio:

3>------ Build started: Project: sbm-fltk-1.3, Configuration: Debug Win32 ------

3>.\obj\sbm_debug\RetargetViewer.obj : warning LNK4042: object specified more than once; extras ignored

3> Creating library ..\bin\sbm-fltkd.lib and object ..\bin\sbm-fltkd.exp
3>fltk_viewer.obj : error LNK2019: unresolved external symbol "public: void __thiscall RetargetViewer::setSkeletonName(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?setSkeletonName@RetargetViewer@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: void __thiscall FltkViewer::processDragAndDrop(class std::basic_string<char,struct std::char_traits,class std::allocator >,float,float)" (?processDragAndDrop@FltkViewer@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MM@Z)

3>fltk_viewer.obj : error LNK2019: unresolved external symbol "public: void __thiscall RetargetViewer::setCharacterName(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?setCharacterName@RetargetViewer@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: void __thiscall FltkViewer::processDragAndDrop(class std::basic_string<char,struct std::char_traits,class std::allocator >,float,float)" (?processDragAndDrop@FltkViewer@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MM@Z)

3>fltk_viewer.obj : error LNK2019: unresolved external symbol "public: __thiscall RetargetViewer::RetargetViewer(int,int,int,int,char *)" (??0RetargetViewer@@QAE@HHHHPAD@Z) referenced in function "public: void __thiscall FltkViewer::processDragAndDrop(class std::basic_string<char,struct std::char_traits,class std::allocator >,float,float)" (?processDragAndDrop@FltkViewer@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MM@Z)

3>..\bin\sbm-fltkd.exe : fatal error LNK1120: 3 unresolved externals
========== Build: 0 succeeded, 1 failed, 14 up-to-date, 2 skipped ==========

MK

July 21, 2012
8:56 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

That error looks like one that I was getting with a slightly older revision. Are you sure that you are updated to the latest version?

You can try deleting the file smartbody/core/smartbody/sbm/visualc9/sbm-fltk.vcxproj and update from svn again (at this moment, r3585 is the latest one).

Ari

July 22, 2012
6:47 pm
Avatar
mkeysman
Guest
Guests

I did one better; completely reloading the whole package. Now I get

\obj\sbm_debug\RetargetViewer.obj : warning LNK4042: object specified more than once; extras ignored

error as well. If I delete

from the sbm-fltk.vcxproj file the LNK4042 warning does not occur but the three LNK4019 still occur. The build fails in either case.

MK

July 22, 2012
6:54 pm
Avatar
mkeysman
Guest
Guests

I did one better; completely reloading the whole package. Now I get

\obj\sbm_debug\RetargetViewer.obj : warning LNK4042: object specified more than once; extras ignored

error as well. If I delete

from the sbm-fltk.vcxproj file the LNK4042 warning does not occur but the three LNK4019 still occur. The build fails in either case.

MK

July 22, 2012
6:56 pm
Avatar
mkeysman
Guest
Guests

I did one better; completely reloading the whole package. Now I get

\obj\sbm_debug\RetargetViewer.obj : warning LNK4042: object specified more than once; extras ignored

error as well. If I delete

ClCompile Include="..\src\retargetviewer\RetargetViewer.h"

from the sbm-fltk.vcxproj file the LNK4042 warning does not occur but the three LNK4019 still occur. The build fails in either case.

MK

I apologoze for taking so long to get this right.

July 22, 2012
7:33 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Ok, I think I figured out the problem. The project files for sbmfltk in vs2010 were a little screwed up. Can you update one more time and try it? r3586

Ari

July 22, 2012
9:42 pm
Avatar
mkeysman
Guest
Guests

Changed the error type. I get:

1>------ Build started: Project: sbm-fltk-1.3, Configuration: Debug Win32 ------
1> fltk_viewer.cpp
1>fltk_viewer.obj : error LNK2001: unresolved external symbol "public: void __thiscall RetargetViewer::setSkeletonName(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?setSkeletonName@RetargetViewer@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>fltk_viewer.obj : error LNK2001: unresolved external symbol "public: void __thiscall RetargetViewer::setCharacterName(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?setCharacterName@RetargetViewer@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>fltk_viewer.obj : error LNK2001: unresolved external symbol "public: __thiscall RetargetViewer::RetargetViewer(int,int,int,int,char *)" (??0RetargetViewer@@QAE@HHHHPAD@Z)
1>..\bin\sbm-fltkd.exe : fatal error LNK1120: 3 unresolved externals
========== Build: 0 succeeded, 1 failed, 7 up-to-date, 0 skipped ==========

July 23, 2012
3:37 am
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

I tested a fresh checkout, but wasn't getting the errors that you are reporting.
What version of Visual Studio are you using (Help->About Microsoft Visual Studio). I'm using Version 10.0.30319.1

The error seems to indicate that the file RetargetViewer.cpp isn't being recognized, or perhaps there are special configurations associated with it that are causing problems Does that file exist in the sbm-fltk-1.3 project under the retargetviewer/ folder? You can try removing it then adding it again (smartbody/core/smartbody/sbm/src/retargetviewer).
I would also make sure that the smartbody/core/smartbody/sbm/visualc9/obj directory has been removed completely first.

If after trying these things you are still having problems, I can instant message with you tomorrow and perhaps we can figure out what is happening.

Ari
,

July 23, 2012
2:56 pm
Avatar
mkeysman
Guest
Guests

Hi Ari,

Remove and Add back worked. I have build. So many thanks for your help!

MK

Forum Timezone: America/Los_Angeles

Top Posters:

jwwalker: 80

jyambao: 52

rbaral: 47

adiaz: 30

WargnierP: 29

lucky7456969: 28

mbarros: 28

avida.matt: 26

JonathanW: 24

laguerre: 23

Member Stats:

Guest Posters: 67

Members: 101796

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 462

Posts: 2407