Hi, all:
I tried to compile OpenSees in visual studio 2008, but I met some errors. I used Win7-64 bit and installed 32-bit Tcl. The following are the errors:
Error 967 fatal error C1083: Cannot open include file: 'tetgen.h': No such file or directory d:\opensees\rev 5621\src\element\pfemelement\pfemmesher3d.h 41 element
Error 968 fatal error C1083: Cannot open include file: 'triangle.h': No such file or directory d:\opensees\rev 5621\src\element\pfemelement\pfemmesher2d.h 44 element
Error 1776 error BK1506 : cannot open file '..\..\obj\element\debug\FourNodeQuadUP.sbr': No such file or directory BSCMAKE element
Error 1804 fatal error LNK1181: cannot open input file 'element.lib' OpenSees OpenSees
Error 1812 fatal error LNK1181: cannot open input file 'element.lib' OpenSeesTk OpenSeesTk
Error 1819 fatal error LNK1181: cannot open input file 'element.lib' quickMain quickMain
By the way, I searched the two files indicated here, 'tetgen.h' and 'triangle.h'. They are in the folder but in a different sub-folder.
And when I followed what indicated here:http://opensees.berkeley.edu/community/ ... cl#p100850
the errors became a lot more (520 total), and looks like:
Error 1809 error LNK2019: unresolved external symbol _Tcl_SetVar referenced in function _Tcl_AppInit tclAppInit.obj OpenSees
Error 1810 error LNK2001: unresolved external symbol _Tcl_SetVar tclMain.obj OpenSees
Error 1811 error LNK2019: unresolved external symbol _Tcl_Init referenced in function _Tcl_AppInit tclAppInit.obj OpenSees
Error 1812 error LNK2001: unresolved external symbol _Tcl_LinkVar tclMain.obj OpenSees
Error 1813 error LNK2019: unresolved external symbol _Tcl_Eval referenced in function "void __cdecl g3TclMain(int,char * *,int (__cdecl*)(struct Tcl_Interp *),int,int)" (?g3TclMain@@YAXHPAPADP6AHPAUTcl_Interp@@@ZHH@Z) tclMain.obj OpenSees
Error 1814 error LNK2019: unresolved external symbol __imp__Tk_MainLoop referenced in function "void __cdecl Tk_MainOpenSees(int,char * *,int (__cdecl*)(struct Tcl_Interp *),struct Tcl_Interp *)" (?Tk_MainOpenSees@@YAXHPAPADP6AHPAUTcl_Interp@@@Z1@Z) tkMain.obj OpenSeesTk
Error 1815 error LNK2019: unresolved external symbol _Tcl_GetStringFromObj referenced in function "void __cdecl g3TclMain(int,char * *,int (__cdecl*)(struct Tcl_Interp *),int,int)" (?g3TclMain@@YAXHPAPADP6AHPAUTcl_Interp@@@ZHH@Z) tclMain.obj OpenSees
Error 1816 error LNK2019: unresolved external symbol _Tcl_DStringInit referenced in function "void __cdecl Tk_MainOpenSees(int,char * *,int (__cdecl*)(struct Tcl_Interp *),struct Tcl_Interp *)" (?Tk_MainOpenSees@@YAXHPAPADP6AHPAUTcl_Interp@@@Z1@Z) tkMain.obj OpenSeesTk
Would you please tell me if there is some changes I could do for it?
Thank you and best wishes.
Building Opensees R5621
Moderators: silvia, selimgunay, Moderators
Building Opensees R5621
Baozai
Re: Building Opensees R5621
did you get the revision of OpenSees using svn that corresponds to the latest release,
http://opensees.berkeley.edu/OpenSees/developer/svn.php
http://opensees.berkeley.edu/OpenSees/developer/svn.php
Re: Building Opensees R5621
No, Frank. I will try the newest revision. But I built this version successfully in a Win 8 PC, I don't know the reason why...
By the way, I have another question regarding to the Node.cpp file. I saw the following in setTrialDisp, but I really didn't get why make the disp vector in the following way, would you please explain the code for getting disp[i+2*numberDOF] and disp[i+3*numberDOF]? Thank you.
for (int i=0; i<numberDOF; i++) {
double tDisp = newTrialDisp(i);
disp[i+2*numberDOF] = tDisp - disp[i+numberDOF];
disp[i+3*numberDOF] = tDisp - disp[i];
disp[i] = tDisp;
}
By the way, I have another question regarding to the Node.cpp file. I saw the following in setTrialDisp, but I really didn't get why make the disp vector in the following way, would you please explain the code for getting disp[i+2*numberDOF] and disp[i+3*numberDOF]? Thank you.
for (int i=0; i<numberDOF; i++) {
double tDisp = newTrialDisp(i);
disp[i+2*numberDOF] = tDisp - disp[i+numberDOF];
disp[i+3*numberDOF] = tDisp - disp[i];
disp[i] = tDisp;
}
Baozai