Compiling V 1.7.4 - Help

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

Moderators: silvia, selimgunay, Moderators

Post Reply
juanoviedo
Posts: 38
Joined: Wed Jul 11, 2007 1:46 am
Location: Hokkaido University - Japan

Compiling V 1.7.4 - Help

Post by juanoviedo »

Hello Silvia and Frank!
Thank you very much for your previous help, but unfortunately I still have a little problem.
I would like to ask you whether you could help me with the implementation of the Takeda Hysteresis rules (coded by your Japanese OPENSEES co-developers). I already have the files with the code but I certainly have not succeeded in compiling and linking.
Before tryin to compile the new material(Takeda) I have been trying to compile the downloadable file "stable.Zip" from your web page.
I have followed the instructions but I get this error message:

*******

--------------------Configuration: actor - Win32 Release--------------------
Compiling...
FEM_ObjectBrokerAllClasses.cpp
..\..\..\src\tcl\TclFeViewer.h(45) : fatal error C1083: Cannot open include file: 'tcl.h': No such file or directory
Error executing cl.exe.

openSees.exe - 1 error(s), 0 warning(s)


********
I am using Microsoft Visual C++ 6.0 as compiler.
I will appreciate so much your help on this matter as the Takeda model might be of much interest for many people.

Best Regards,
Juan Andrés Oviedo A.
Graduate School of Engineering
Hokkaido University
Sapporo, Japan
rjaeger
Posts: 102
Joined: Thu Aug 31, 2006 9:57 pm
Location: UC Davis

Post by rjaeger »

Hello,

This means that you either do not have TCL installed on your computer or it is not in the correct directory. If you haven't already, download the ActiveTCL TCL distribution http://www.activestate.com/Products/act ... tures.plex

Be sure to install to C:\Program Files\Tcl and then try compiling again. If you already have Tcl installed, it'd probably just be easier to remove it and reinstall it to the directory I mentioned above.

-Robbie
juanoviedo
Posts: 38
Joined: Wed Jul 11, 2007 1:46 am
Location: Hokkaido University - Japan

But same problem

Post by juanoviedo »

Hello Robbie!
Thank you very much for you comment, I understood your idea.

I have already installed the TCL in the proper directory. I have deleted it and installed again but still does not work. Do you have another idea for the reason of my problem?
The same error message keeps appearing. What should I do?


Regards,
Juan Andrés Oviedo A.
Graduate School of Engineering
Hokkaido University
Sapporo, Japan
juanoviedo
Posts: 38
Joined: Wed Jul 11, 2007 1:46 am
Location: Hokkaido University - Japan

a favor

Post by juanoviedo »

Hello Silvia and Frank!
Thank you very much for your previous help, but unfortunately I still have a little problem.
I would like to ask you whether you could help me with the implementation of the Takeda Hysteresis rules (coded by your Japanese OPENSEES co-developers). I already have the files with the code but I certainly have not succeeded in compiling and linking.
Before tryin to compile the new material(Takeda) I have been trying to compile the downloadable file "stable.Zip" from your web page.
I have followed the instructions and placed the Tcl in the correct directory but I get this error message:

*******

--------------------Configuration: actor - Win32 Release--------------------
Compiling...
FEM_ObjectBrokerAllClasses.cpp
..\..\..\src\tcl\TclFeViewer.h(45) : fatal error C1083: Cannot open include file: 'tcl.h': No such file or directory
Error executing cl.exe.

openSees.exe - 1 error(s), 0 warning(s)


********
I am using Microsoft Visual C++ 6.0 as compiler.
I will appreciate so much your help on this matter as the Takeda model might be of much interest for many people.

Best Regards,
Juan Andrés Oviedo A.
Graduate School of Engineering
Hokkaido University
Sapporo, Japan
rjaeger
Posts: 102
Joined: Thu Aug 31, 2006 9:57 pm
Location: UC Davis

Re: But same problem

Post by rjaeger »

Hello Juan,

I'm sorry that my suggestion did not work. If you have TCL installed to the correct directory already, the opensees visual c project may have the TCL directory incorrectly configured. Unfortunately, I'm not familiar with Visual C++ 6.0 so I cannot tell you exactly where the setting is, but I can give you an idea of what to look for. In Visual C++ 2005 express, I can right-click the OpenSees project under the solution explorer and select 'Properties'. I then go to 'Configuration Properties', 'C/C++', and then 'Command line'. You should see something like this at the top of the command line input:
/Od /I "..\..\..\src\system_of_eqn\linearSOE\diagonal" /I "c:\Program Files\tcl\include" /I

You should make sure that the path for TCL\include is the correct one for your system. I hope that helps.

-Robbie
juanoviedo wrote:Hello Robbie!
Thank you very much for you comment, I understood your idea.

I have already installed the TCL in the proper directory. I have deleted it and installed again but still does not work. Do you have another idea for the reason of my problem?
The same error message keeps appearing. What should I do?


Regards,
juanoviedo
Posts: 38
Joined: Wed Jul 11, 2007 1:46 am
Location: Hokkaido University - Japan

Thanks

Post by juanoviedo »

Hello Robbie!!
Once again thanks for your help and interest!!
Eventhough the compilers are not the same, it's quite similar.
I have double-triple checked the path and it is as is supposed to be.
Still does not work. The same error message.

If you had another option or opinion, I would appreciate so much you let me know.

Once again, thanks for you help.
Regards,
Juan Andrés Oviedo A.
Graduate School of Engineering
Hokkaido University
Sapporo, Japan
rjaeger
Posts: 102
Joined: Thu Aug 31, 2006 9:57 pm
Location: UC Davis

Post by rjaeger »

Hello Juan,

I'm sorry that my suggestions have not worked yet. There must be somewhere else within the project that tcl is being called and you will need to try and find it to fix this issue.

One last possibility is that you can try adding the TCL directories to the list for Visual C. (Again for me in my version)Go to the tools pulldown menu, select 'options'. Go to 'Projects and solutions' and then 'VC++ directories'. On the right, there is a pulldown for each of the different types of files (include files, library files, etc). Select 'include files' and add the c:\program files\tcl\include directory to this list by clicking the icon that looks like a folder with a star on it. Then go to the library files pulldown and add c:\program files\tcl\lib to the list. I'm not sure if it matters but try cleaning the project before you try recompiling. Good luck.

I just did a quick search on compiling errors and it appears that visual c 6.0 isn't too good of a compiler (at least for opensees). If you don't get charged too much to download programs, I suggest you try Visual c++ 2005 express (it is a free download from microsoft). You can get it here: http://msdn2.microsoft.com/en-us/express/aa700735.aspx

You will also need to download the platform SDK for your computer (there will be a link for it after you have started downloading visual c++ express). I'm not sure if it's required but I also downloaded service pack 1 for visual c++ express which is available on the same page as the platform SDK.

-Robbie
juanoviedo
Posts: 38
Joined: Wed Jul 11, 2007 1:46 am
Location: Hokkaido University - Japan

Again

Post by juanoviedo »

Hello Robbie!
Once again here asking your help!

Thanks for the last mail. I downloaded the Visual C++ 2005 Express and the SDK as you told me. I checked the paths for the tcl, included the paths c:\program files\tcl\include and c:\program files\tcl\lib to each list you told me in the "VC++ directories".
Sorry to tell you that nothing!. Still errors when compiling. I tried to build each project separately and I found that four project have error messages: Element - Material - OpenSeestk - QuickMain.
At each compilation there were many "warning" messages.
The common error is C4335 and LNK1181

About the command line, I have a quite different start..

/Od /I "..\..\..\src\package" /I "..\..\..\OTHER\SuperLU_3.0\SRC" /I "..\..\..\src\system_of_eqn\linearSOE\diagonal" /I "..\..\..\src\damage" /I "..\..\..\src\material\uniaxial\py" /I "..\..\..\src\reliability\fesensitivity" /I "..\..\..\src\reliability\tcl" /I "..\..\..\src\coordTransformation" /I "..\..\..\src\material\section\repres\section" /I "..\..\..\src\analysis\algorithm\equiSolnAlgo" /I "..\..\..\src\system_of_eqn\eigenSOE" /I "..\..\..\src\analysis\algorithm\eigenAlgo" /I "..\..\..\src\material\nD" /I "..\..\..\src\material\uniaxial" /I "..\..\..\src\handler" /I "..\..\..\src\tcl" /I "..\..\..\src\actor\objectBroker" /I "..\..\..\src\system_of_eqn\linearSOE\umfGEN" /I "..\..\..\src\system_of_eqn\linearSOE\fullGEN" /I "..\..\..\src\system_of_eqn\linearSOE\sparseGEN" /I "..\..\..\src\system_of_eqn\linearSOE\bandSPD" /I "..\..\..\src\system_of_eqn\linearSOE\bandGEN" /I "..\..\..\src\element\nonlinearBeamColumn\tcl\repres\section" /I "..\..\..\src\matrix" /I "..\..\..\src\recorder" /I "..\..\..\src\graph\numberer" /I "..\..\..\src\material\section" /I "..\..\..\src\graph\graph" /I "..\..\..\src\element\beam2d" /I "..\..\..\src\element\beam3d" /I "..\..\..\src\system_of_eqn" /I "..\..\..\src\system_of_eqn\linearSOE" /I "..\..\..\src\system_of_eqn\linearSOE\profileSPD" /I "..\..\..\src\system_of_eqn\linearSOE\sparseSYM" /I "..\..\..\src\domain\pattern" /I "..\..\..\src\analysis\analysis" /I "..\..\..\src\analysis\integrator" /I "..\..\..\src\analysis\numberer" /I "..\..\..\src\analysis\handler" /I "..\..\..\src\renderer" /I "..\..\..\src\material" /I "..\..\..\src\analysis\algorithm" /I "..\..\..\src\convergenceTest" /I "..\..\..\src\analysis\model\simple" /I "..\..\..\src\domain\load" /I "..\..\..\src\analysis\model" /I "..\..\..\src\element\truss" /I "..\..\..\src\actor\channel" /I "..\..\..\src\utility" /I "..\..\..\src\actor\actor" /I "..\..\..\src\modelbuilder" /I "..\..\..\src\modelbuilder\tcl" /I "..\..\..\src\domain\constraints" /I "..\..\..\src\domain\component" /I "..\..\..\src\element" /I "..\..\..\src\domain\node" /I "..\..\..\src\domain\domain" /I "..\..\..\src\tagged\storage" /I "..\..\..\src" /I "..\..\..\src\tagged" /I "..\..\..\src\reliability\domain" /I "..\..\..\src\reliability\domain\components" /I "..\..\..\src\reliability\domain\distributions" /I "..\..\..\src\reliability\analysis" /I "..\..\..\src\reliability\analysis\analysis" /I "..\..\..\src\reliability\analysis\curvature" /I "..\..\..\src\reliability\analysis\designPoint" /I "..\..\..\src\reliability\analysis\direction" /I "..\..\..\src\reliability\analysis\gFunction" /I "..\..\..\src\reliability\analysis\misc" /I "..\..\..\src\reliability\analysis\randomNumber" /I "..\..\..\src\reliability\analysis\sensitivity" /I "..\..\..\src\reliability\analysis\stepSize" /I "..\..\..\src\reliability\analysis\transformation" /I "..\..\..\src\nDarray" /I "..\..\..\src\system_of_eqn\linearSOE\cg" /I "..\..\..\src\system_of_eqn\linearSOE\itpack" /I "..\..\..\other\superlu_mt" /I "..\..\..\src\database" /I "..\..\..\src\element\updatedLagrangianBeamColumn" /I "..\..\..\src\material\yieldSurface\yieldSurfaceBC" /I "..\..\..\src\material\yieldSurface\evolution" /I "..\..\..\src\material\yieldSurface\plasticHardeningMaterial" /I "..\..\..\src\reliability\domain\modulatingFunction" /I "..\..\..\src\reliability\domain\spectrum" /I "..\..\..\src\reliability\domain\filter" /I "..\..\..\src\reliability\analysis\hessianApproximation" /I "..\..\..\src\reliability\analysis\convergenceCheck" /I "..\..\..\src\reliability\analysis\meritFunction" /I "..\..\..\src\reliability\analysis\rootFinding" /I "c:\Program Files\tcl" /I "c:\Program Files\tcl\include" /D "_DEBUG" /D "_WGL" /D "_RELIABILITY" /D "_WIN32" /D "_FORTRAN" /D "WIN32" /D "_CONSOLE" /D "BUILD_tcl" /D "_TCL84" /D "_VC6" /D "_VC80_UPGRADE=0x0600" /D "_MBCS" /FD /EHsc /RTC1 /MTd /Fp".\..\..\obj\openSees\debug/openSees.pch" /Fo".\..\..\obj\openSees\debug/" /Fd".\..\..\obj\openSees\debug/" /FR".\..\..\obj\openSees\debug\\" /W3 /nologo /c /ZI /TP /errorReport:prompt


Certainly, I do not know what else to try. I wil keep on trying.
Any other suggestion is more than well welcome.

Thanks, indeed!
Regards,
Juan Andrés Oviedo A.
Graduate School of Engineering
Hokkaido University
Sapporo, Japan
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

you could try copying the files from the tcl include directory and putting them in OpenSees/SRC. if that works it just shows that the path variable is not set to the correct directory.
koduru
Posts: 33
Joined: Tue Jun 06, 2006 11:41 am
Location: U of A

Post by koduru »

Hello Robbie,

I have tried to compile v. 1.7.4 with VC++ 2005 express (I have also installed platform SDK). However, I have strange errors as following

c:\documents and settings\owner\opensees\src\element\dispbeamcolumnint\fibersection2dint.h : error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format

I have not encountered these errors when compiling with VC++ 6.0. Did you have any experience with errors as above??

Thanks,
Smitha


rjaeger wrote: If you don't get charged too much to download programs, I suggest you try Visual c++ 2005 express (it is a free download from microsoft). You can get it here: http://msdn2.microsoft.com/en-us/express/aa700735.aspx

You will also need to download the platform SDK for your computer (there will be a link for it after you have started downloading visual c++ express). I'm not sure if it's required but I also downloaded service pack 1 for visual c++ express which is available on the same page as the platform SDK.

-Robbie
rjaeger
Posts: 102
Joined: Thu Aug 31, 2006 9:57 pm
Location: UC Davis

Post by rjaeger »

Hi,

I have found the same thing and all you need to do to fix them is double click on the file path (on the same line as the error message in output) and it will open that file. When it opens, it will say something is incorrect, do you want to reformat it for windows - choose yes and be sure to save the file. You'll have to do it for about 6-10 files.

-Robbie
koduru
Posts: 33
Joined: Tue Jun 06, 2006 11:41 am
Location: U of A

Post by koduru »

rjaeger wrote:Hi,

I have found the same thing and all you need to do to fix them is double click on the file path (on the same line as the error message in output) and it will open that file. When it opens, it will say something is incorrect, do you want to reformat it for windows - choose yes and be sure to save the file. You'll have to do it for about 6-10 files.

-Robbie
Thanks a lot! I found the files in dispBeamColumnInt folder having this problem.

Smitha
Post Reply