Compiling in MS Visual from TortoiseSVN

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

Moderators: silvia, selimgunay, Moderators

Post Reply
murray710
Posts: 16
Joined: Thu Aug 04, 2011 9:14 am
Location: Northeastern University

Compiling in MS Visual from TortoiseSVN

Post by murray710 »

I’m trying to compile the newest version of OpenSees in Microsoft Visual Studio 2008. I downloaded the code through TortoiseSVN (which I am very new to) and doing an ‘SVN Checkout’ from the URL “svn://opensees.berkeley.edu/usr/local/svn/OpenSees/trunk OpenSees”. I noticed that if I try a ‘Fully Recursive’ download, I get an error that the URL doesn't exist, so I instead grab just the ‘trunk’ folder, since I don’t want the old versions anyways. Doing this allows me to download the folder without issues.

I open the ‘OpenSees.sln’ file from the Win32 folder in Visual Studio and Build the Solution, but I get the following 5 errors:

Error 552 fatal error C1083: Cannot open include file: 'TwoNodeLink.h': No such file or directory c:\documents and settings\ju.murray\mydocuments\opensees_builds\2014_0303\trunk\src\actor\objectbroker\fem_objectbrokerallclasses.cpp 234 actor
Error 555 error BK1506 : cannot open file '..\..\obj\actor\debug\FEM_ObjectBrokerAllClasses.sbr': No such file or directory BSCMAKE actor
Error 1418 fatal error LNK1181: cannot open input file 'actor.lib' quickMain quickMain
Error 1419 fatal error LNK1181: cannot open input file 'actor.lib' OpenSeesTk OpenSeesTk
Error 1422 fatal error LNK1181: cannot open input file 'actor.lib' OpenSees OpenSees

Any idea why I am getting these messages? It appears that the solution thinks that files are missing that it needs (actor.lib, TwNodeLink.h, and FEM_ObjectBrokerAllClasses.sbr), but I grabbed the entire source code from the SVN repository, so I'm not sure why they would be missing.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Compiling in MS Visual from TortoiseSVN

Post by fmk »

you probably need to download the version corresponding to the last official release .. most of those with checkin priviledges use linux and don't bother updating the windows projects when they make changes.
rev 5621 (i think the option in tortoise is to update to revision) which you get say when you right click on the OpenSees folder and then select the tortoise looking folder which provides for additional svn commansd.
murray710
Posts: 16
Joined: Thu Aug 04, 2011 9:14 am
Location: Northeastern University

Re: Compiling in MS Visual from TortoiseSVN

Post by murray710 »

Thanks Frank. I was able to use TortoiseSVN to grab revision 5621, but I am still getting errors (albeit different ones) when compiling in Visual Studio. I've tried VS 2008 and 2013. Also, I deleted my entire download and checked out rev 5621 from scratch, but got the same errors when compiling. I assume switching to Linux would not be a quick process and would have a steep learning curve considering that I have never used it before. I'm not sure how else to approach this problem.

I have successfully built older versions of OpenSees before in VS 2008, but it was prior to using SVN to grab the source code (it was a version uploaded via zip file on the website).
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Compiling in MS Visual from TortoiseSVN

Post by fmk »

i updated the svn repository yesterday as i was slipping in a new version to remedy some bugs people had found.

make sure to use the OpenSees.sln .. what are the errors you are getting?
luiscanhotoneves
Posts: 1
Joined: Wed Apr 02, 2014 4:35 am

Re: Compiling in MS Visual from TortoiseSVN

Post by luiscanhotoneves »

The build of March 7th worked fine, except for a reference to TwoNodeLink.h which does not exits. A couple of comments along the code seemed to have solved this

Luis
Post Reply