Re: Building tensor lib in Visual Studio 2010

16 views
Skip to first unread message

Juan Jose Garcia-Ripoll

unread,
Oct 28, 2013, 12:24:15 PM10/28/13
to Ioannis Tsingalis, libt...@googlegroups.com

On Sat, Oct 26, 2013 at 9:09 PM, Ioannis Tsingalis <itsin...@gmail.com> wrote:
I am Win 7 user and I am wondering if it is possible for someone to build this library in Visual Studio 2010 or it is too complicated? Does anyone has experience on this?

It has not been implemented yet, as Ulf pointed out. The problem is not that it is impossible, but the simple fact that currently all makefiles have been built using GNU Autoconf. Porting these makefiles is a couple of weeks work.

Juanjo

--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain) 
http://juanjose.garciaripoll.googlepages.com

Ulf Lorenz

unread,
Oct 28, 2013, 3:23:47 PM10/28/13
to libt...@googlegroups.com
On Mon, 28 Oct 2013 17:24:15 +0100
Juan Jose Garcia-Ripoll <juanjose.g...@gmail.com> wrote:

> On Sat, Oct 26, 2013 at 9:09 PM, Ioannis Tsingalis
> <itsin...@gmail.com>wrote:
>
> > I am Win 7 user and I am wondering if it is possible for someone to
> > build this library in Visual Studio 2010 or it is too complicated?
> > Does anyone has experience on this?
> >
>
> It has not been implemented yet, as Ulf pointed out. The problem is
> not that it is impossible, but the simple fact that currently all
> makefiles have been built using GNU Autoconf. Porting these makefiles
> is a couple of weeks work.

An alternative might be to cross-compile on a Unix machine, at least
for people that only want to use the library, not work on it. However,
I last did this around ten years ago, and could not do it for lack of
Windows. What I do remember is that it was a bit of a pain but doable (I
never managed to get dynamic libraries to work, and you had to compile
every tiny library, because Windows does not have the /usr/lib concept
with installable packages).

If there is sufficient interest and it seems useful to pursue, I might
at least have a look into that, though.


Ulf

Juan Jose Garcia-Ripoll

unread,
Oct 29, 2013, 2:13:21 PM10/29/13
to Ulf Lorenz, libt...@googlegroups.com

On Mon, Oct 28, 2013 at 8:23 PM, Ulf Lorenz <u...@wavepacket.org> wrote:
An alternative might be to cross-compile on a Unix machine, at least
for people that only want to use the library, not work on it

I believe I did not express myself properly: the library works on Windows, but not with Visual Studio, but with Cygwin or Mingw. When you cross-compile, you are using mingw on linux to build a Windows executable -- there is no need for that: just download mingw and use it on Windows instead.

The problem comes when using the library in Microsoft's compiler. A possible idea is then to build the library using mingw on Windows and link it with the MSVC project. However, because C++ backends may differ between mingw and Visual Studio, that is something I would not advise.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages