Page 1 of 2

Compiling on Windows

Posted: Wed Apr 20, 2016 5:34 pm
by arai
Hi !

I am compiling on Windows.
environment:
source 2016-04-06(clone day),windows7 64,cmake 3.4.3,visual studio 2010

I had a next error during CMAKE configuration .

The C compiler identification is MSVC 16.0.40219.1
The CXX compiler identification is MSVC 16.0.40219.1
Check for working C compiler using: Visual Studio 10 2010 Win64
Check for working C compiler using: Visual Studio 10 2010 Win64 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 10 2010 Win64
Check for working CXX compiler using: Visual Studio 10 2010 Win64 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done

CMake Error at CMake/SimVascularDependentOptions.cmake:35 (check_library_exists):
Unknown CMake command "check_library_exists".
Call Stack (most recent call first):
CMakeLists.txt:56 (include)


The cause of this error, seems to be the lack of some libraries.
How solve the error?

(Addition ;
there is nosite http://simvascular.ucsd.edu/sv_lib)

Best !

Re: Compiling on Windows

Posted: Wed Apr 20, 2016 5:46 pm
by adam
Hi Arai,

This is a bug on Windows that should be fixed in the next couple of days. An include in the main CMakeLists.txt file needs to be moved higher.

We have a binary install for Windows, so if you are just looking to use SimVascular, you should be able to download that if you want!

SimVascular Development Team

Re: Compiling on Windows

Posted: Wed Apr 20, 2016 10:54 pm
by arai
Thanks Adam!

I downloaded binary and tried a tutorial. I felt Simvascular is a great program !
I would like to compile the code and add my own features.
So I will wait until bug fixes.

Thank you

Re: Compiling on Windows

Posted: Thu Apr 21, 2016 4:55 pm
by adam
Hi Arai,

The source code was updated with this bug fix. Note that the cmake system is typically tested and working on mac and linux. We don't often test on Windows, so I imagine you could be running into more issues. I will hopefully take a look at the build system on Windows in the next week. In the meantime, if you have access to a mac or linux machine, I would suggest trying to build there first.

When you get around to adding your own features, you are more than welcome to contribute back to the project by creating a pull request and trying to contribute the code.

Thanks!

SimVascular Development Team

Re: Compiling on Windows

Posted: Thu Apr 28, 2016 12:58 am
by arai
Hi !
I was able to configure successfully.
Thanks Adam.

I started to superbuild.

My efforts

1. TCL Project
I got an error in downloading the tcltk source. So, I downloaded and built tcltk(8.5.18) manually.
I added them to the target directory
(~ / kw/vtk/wrapping/tcl, ~/externals/TclTk).

2. I was able to build the VTK Project and the ITK Project.

3. SV Project
However, I got the following error during the next vcxproj.

c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(135):
fatal error C1189: #error : "No Target Architecture"
[C:\sv160423bin3\build\Source\Common\Utils\lib_simvascular_utils.vcxproj]

I am searching the the cause of this error.

4. Using the old version of source
I tried to superbuild using the old version source (git clone = 2015-12-27).
Superbuild was completed without error, and UI started normally.
Also I was able to build flowsolvers(svpre, svsolver, svpost).

I would like to build using the latest version ,so I would be happy to take the suggestions.

Thanks !

Re: Compiling on Windows

Posted: Thu Apr 28, 2016 12:30 pm
by adam
Hi, sounds like you are close, and I'm glad you were able to get an older version to compile.

We are in the process of updating the url for tcl. If you give me your email, I will send the location of the url where you should be able to get a built version of tcl8.6. However, you built an older version of SimVascular, so this probably isn't the issue.

Do any of the libraries for SV get built?

Thanks,

SimVascular Development Team

Re: Compiling on Windows

Posted: Thu Apr 28, 2016 12:30 pm
by adam
And what compilers are you using?

Re: Compiling on Windows

Posted: Thu Apr 28, 2016 4:05 pm
by arai
Hi !
Thank you for replying

If new url for TCL-downloading is available,we will be very happy.
So please make new url.

>what compilers are you using?
C compiler : Visual Studio 10 2010 Win64
Fortran : Intel Visual Fortran XE 2015 64bit

and I compiled by MSvs2010 release-64 mode.

>Do any of the libraries for SV get built?

I attached the message which SV outputted on start up.
Is it OK?
I just built using CMAKE superbuild mode.

-------------
SimVascular: 2.0 (dev build)
Copyright (c) 2014-2015 The Regents of the University of California.
All Rights Reserved.

Tcl: 8.5.18
vtk: 6.2.0
TetGen: 1.5.1
itk: 4.8.0

simvascular_parasolid dll: couldn't load library "lib_simvascular_parasolid.dll"
: this library or a dependent library could not be found in library path
simvascular meshsim discrete dll: couldn't load library "lib_simvascular_meshsim
_discrete.dll": this library or a dependent library could not be found in librar
y path
meshsim_mesh dll: couldn't load library "lib_simvascular_meshsim_mesh.dll": this
library or a dependent library could not be found in library path
simvascular meshsim adaptor dll: couldn't load library "lib_simvascular_meshsim_
adaptor.dll": this library or a dependent library could not be found in library
path
Optional Runtimes:
Tkcximage: unavailable

Re: Compiling on Windows

Posted: Thu Apr 28, 2016 5:16 pm
by adam
The new url is in a pull request I just merged into the master. So, the current code should have that.

We recommend using VS 2013, but VS 2010 should work as well.

So, you were able to get it to build now?

Those messages are showing up because you are building the source code and not creating a distribution. This is just telling you you don't have libraries built for meshsim and parasolid, which are both commercial components. You shouldn't have these, so these messages are fine.

SimVascular starts up okay then, or no?

Thanks!

Re: Compiling on Windows

Posted: Thu Apr 28, 2016 7:47 pm
by arai
Thank you Adam !

I'll try to build the new source by vs2013 or later versions.

And about SV I built (using 2010VS), SV was able load the sample data and display the point cloud.
it seems to work fine.