OpenSees 2.2.2 compile

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

did you get the source from the .zip or svn .. if a tarball can you try using svn to see if you get the same results. can you post the results either way so i know whether i need to go get a copy of visual studio or if i just need to update the .zip

thanks.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

i just downloaded a trial version of visual studio 2010 on an XP machine .. handler compiled fine .. OpenSees failed to compile because quickMain failed .. i took quickMain out of the project dependencies and it compiled and linked fine.

if it is not quickMian post the error messages.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

try adding the handler.lib file to the libraries that get linked at compile time .. somewhere in the linker option of the OpenSees and OpenSeesTK projects properties .. it should already be there, but you can add it again (try the start and the end)
etahmasebi
Posts: 11
Joined: Tue Sep 14, 2010 7:16 pm
Location: Lehigh University

Re: OpenSees 2.2.2 compile

Post by etahmasebi »

Hi Frank,
I am getting kind of the same linking error. I downloaded .zip source code and tried to compile it in VC++ 2010 and 2008 and got the same error in both versions. Here's the error:

24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol __imp__Tcl_GetInt referenced in function _ops_getintinput_
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol __imp__Tcl_GetDouble referenced in function _ops_getdoubleinput_
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: class UniaxialMaterial * __thiscall TclModelBuilder::getUniaxialMaterial(int)" (?getUniaxialMaterial@TclModelBuilder@@QAEPAVUniaxialMaterial@@H@Z) referenced in function _ops_getmaterial_
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: class NDMaterial * __thiscall TclModelBuilder::getNDMaterial(int)" (?getNDMaterial@TclModelBuilder@@QAEPAVNDMaterial@@H@Z) referenced in function "class NDMaterial * __cdecl OPS_GetNDMaterial(int)" (?OPS_GetNDMaterial@@YAPAVNDMaterial@@H@Z)
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: class SectionForceDeformation * __thiscall TclModelBuilder::getSection(int)" (?getSection@TclModelBuilder@@QAEPAVSectionForceDeformation@@H@Z) referenced in function "class SectionForceDeformation * __cdecl OPS_GetSectionForceDeformation(int)" (?OPS_GetSectionForceDeformation@@YAPAVSectionForceDeformation@@H@Z)
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: class CrdTransf2d * __thiscall TclModelBuilder::getCrdTransf2d(int)" (?getCrdTransf2d@TclModelBuilder@@QAEPAVCrdTransf2d@@H@Z) referenced in function "class CrdTransf2d * __cdecl OPS_GetGetCrdTransf2d(int)" (?OPS_GetGetCrdTransf2d@@YAPAVCrdTransf2d@@H@Z)
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: class CrdTransf3d * __thiscall TclModelBuilder::getCrdTransf3d(int)" (?getCrdTransf3d@TclModelBuilder@@QAEPAVCrdTransf3d@@H@Z) referenced in function "class CrdTransf3d * __cdecl OPS_GetGetCrdTransf3d(int)" (?OPS_GetGetCrdTransf3d@@YAPAVCrdTransf3d@@H@Z)
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: int __thiscall TclModelBuilder::getNDF(void)const " (?getNDF@TclModelBuilder@@QBEHXZ) referenced in function _ops_getndf__
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: int __thiscall TclModelBuilder::getNDM(void)const " (?getNDM@TclModelBuilder@@QBEHXZ) referenced in function _ops_getndm_
24>.\..\..\bin/quickMain.exe : fatal error LNK1120: 9 unresolved externals

.
.
.

========== Build: 25 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

would you please help me on this?
Thanks
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: OpenSees 2.2.2 compile

Post by fmk »

use svn to download the latest code

[url]
http://opensees.berkeley.edu/OpenSees/developer/svn.php
[/url]
etahmasebi
Posts: 11
Joined: Tue Sep 14, 2010 7:16 pm
Location: Lehigh University

Re: OpenSees 2.2.2 compile

Post by etahmasebi »

fmk wrote:
> use svn to download the latest code
>
> [url]
> http://opensees.berkeley.edu/OpenSees/developer/svn.php
> [/url]

Thank you very much for your reply Frank. I downloaded the source code from svn but still getting the same errors! What I'm doing is opening opensees2005.sln by VC++ 2010, setting OpenSees as start-up project and building the solution. Am I doing something wrong or missing a step?
Thanks,
.
.
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol __imp__Tcl_GetInt referenced in function _ops_getintinput_
24>material.lib(TclNewTemplate3Dep.obj) : error LNK2001: unresolved external symbol __imp__Tcl_GetInt
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol __imp__Tcl_GetDouble referenced in function _ops_getdoubleinput_
24>material.lib(TclNewTemplate3Dep.obj) : error LNK2001: unresolved external symbol __imp__Tcl_GetDouble
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: class UniaxialMaterial * __thiscall TclModelBuilder::getUniaxialMaterial(int)" (?getUniaxialMaterial@TclModelBuilder@@QAEPAVUniaxialMaterial@@H@Z) referenced in function _ops_getmaterial_
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: class NDMaterial * __thiscall TclModelBuilder::getNDMaterial(int)" (?getNDMaterial@TclModelBuilder@@QAEPAVNDMaterial@@H@Z) referenced in function "class NDMaterial * __cdecl OPS_GetNDMaterial(int)" (?OPS_GetNDMaterial@@YAPAVNDMaterial@@H@Z)
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: class SectionForceDeformation * __thiscall TclModelBuilder::getSection(int)" (?getSection@TclModelBuilder@@QAEPAVSectionForceDeformation@@H@Z) referenced in function "class SectionForceDeformation * __cdecl OPS_GetSectionForceDeformation(int)" (?OPS_GetSectionForceDeformation@@YAPAVSectionForceDeformation@@H@Z)
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: int __thiscall TclModelBuilder::getNDF(void)const " (?getNDF@TclModelBuilder@@QBEHXZ) referenced in function _ops_getndf__
24>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: int __thiscall TclModelBuilder::getNDM(void)const " (?getNDM@TclModelBuilder@@QBEHXZ) referenced in function _ops_getndm_
24>material.lib(TclNewTemplate3Dep.obj) : error LNK2019: unresolved external symbol __imp__Tcl_SplitList referenced in function "class MaterialParameter * __cdecl EvaluateMaterialParameter(void *,struct Tcl_Interp *,char const *)" (?EvaluateMaterialParameter@@YAPAVMaterialParameter@@PAXPAUTcl_Interp@@PBD@Z)
24>material.lib(TclNewTemplate3Dep.obj) : error LNK2019: unresolved external symbol __imp__Tcl_Free referenced in function "void __cdecl cleanup(char const * *)" (?cleanup@@YAXPAPBD@Z)
24>.\..\..\bin/quickMain.exe : fatal error LNK1120: 9 unresolved externals
.
.
.
========== Rebuild All: 25 succeeded, 1 failed, 0 skipped ==========
akis
Posts: 2
Joined: Sat Mar 05, 2011 2:47 am
Location: dd

Re: OpenSees 2.2.2 compile

Post by akis »

did you solve your problems with compiling 2.2.2 with VC++2010express on windows 7-x64?

I included handler.lib in the linker of the project, I got an opensees.exe which runs fine but at the same time I am getting the following erros :

1>------ Build started: Project: quickMain, Configuration: Release Win32 ------
2>------ Build started: Project: OpenSees, Configuration: Release Win32 ------
1>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol __imp__Tcl_GetInt referenced in function _ops_getintinput_
1>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol __imp__Tcl_GetDouble referenced in function _ops_getdoubleinput_
1>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: class UniaxialMaterial * __thiscall TclModelBuilder::getUniaxialMaterial(int)" (?getUniaxialMaterial@TclModelBuilder@@QAEPAVUniaxialMaterial@@H@Z) referenced in function _ops_getmaterial_
1>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: class NDMaterial * __thiscall TclModelBuilder::getNDMaterial(int)" (?getNDMaterial@TclModelBuilder@@QAEPAVNDMaterial@@H@Z) referenced in function "class NDMaterial * __cdecl OPS_GetNDMaterial(int)" (?OPS_GetNDMaterial@@YAPAVNDMaterial@@H@Z)
1>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: class SectionForceDeformation * __thiscall TclModelBuilder::getSection(int)" (?getSection@TclModelBuilder@@QAEPAVSectionForceDeformation@@H@Z) referenced in function "class SectionForceDeformation * __cdecl OPS_GetSectionForceDeformation(int)" (?OPS_GetSectionForceDeformation@@YAPAVSectionForceDeformation@@H@Z)
1>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: class CrdTransf2d * __thiscall TclModelBuilder::getCrdTransf2d(int)" (?getCrdTransf2d@TclModelBuilder@@QAEPAVCrdTransf2d@@H@Z) referenced in function "class CrdTransf2d * __cdecl OPS_GetGetCrdTransf2d(int)" (?OPS_GetGetCrdTransf2d@@YAPAVCrdTransf2d@@H@Z)
1>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: class CrdTransf3d * __thiscall TclModelBuilder::getCrdTransf3d(int)" (?getCrdTransf3d@TclModelBuilder@@QAEPAVCrdTransf3d@@H@Z) referenced in function "class CrdTransf3d * __cdecl OPS_GetGetCrdTransf3d(int)" (?OPS_GetGetCrdTransf3d@@YAPAVCrdTransf3d@@H@Z)
1>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: int __thiscall TclModelBuilder::getNDF(void)const " (?getNDF@TclModelBuilder@@QBEHXZ) referenced in function _ops_getndf__
1>element.lib(elementAPI.obj) : error LNK2019: unresolved external symbol "public: int __thiscall TclModelBuilder::getNDM(void)const " (?getNDM@TclModelBuilder@@QBEHXZ) referenced in function _ops_getndm_
1>.\..\..\bin/quickMain.exe : fatal error LNK1120: 9 unresolved externals
2> OpenSees2005.vcxproj -> C:\KARAVASILIS\OPENSEES\OPENSEES2.2.2\OpenSees\Win32\proj\openSees\.\..\..\bin\OpenSees.exe
========== Build: 1 succeeded, 1 failed, 24 up-to-date, 0 skipped ==========

Frank, any help with the above and how thet can affect my executions?

Thanks
T.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: OpenSees 2.2.2 compile

Post by fmk »

ignore these errors .. the application quickMain failed to compile, OpenSees and OpenSeesTk should have compiled .. i will remove quickMain from the VC2005 solution.
civilengr_tahir
Posts: 26
Joined: Sat Aug 15, 2009 6:42 am
Location: Bangkok
Contact:

OpenSees 2.2.2 compile

Post by civilengr_tahir »

Hi fmk..
i am having the sam problem as akis and I have included handler.lib in the linker of the project, but i am not getting opensees.exe file. There are still same linking error as got by akis. Can you please help me on this issue.
Post Reply