Build Avogadro in Windows from source. MinGW or MSVC?

Dear all,

I am trying to build the developer version of Avogadro in Windows, but I am
not sure if I have to use MSVC or MinGW, and the corresponding version of
Qt. I have build it in UNIX with ccmake-2.8.11 and it works like a charm. I
have introduced modifications to the Gaussian calculation interface, for
example. Avogadro is a very nice project.

Could sombody, please, tell me which version of Qt in windows to use, and
if I need to build it using MinGW or MSVC? I would really appreciate it.

Thank you everybody.

Carlos Salgado

On Mon, Nov 16, 2015 at 7:13 AM, Carlos Salgado <
carlos.salgado.c.s@gmail.com> wrote:

Dear all,

I am trying to build the developer version of Avogadro in Windows, but I
am not sure if I have to use MSVC or MinGW, and the corresponding version
of Qt. I have build it in UNIX with ccmake-2.8.11 and it works like a
charm. I have introduced modifications to the Gaussian calculation
interface, for example. Avogadro is a very nice project.

Could sombody, please, tell me which version of Qt in windows to use, and
if I need to build it using MinGW or MSVC? I would really appreciate it.

It’s been a while since I’ve built avogadro on windows, but the
instructions point to MSVC:

http://avogadro.cc/wiki/Compiling_on_Windows

Hope this helps,
Dave

On Mon, Nov 16, 2015 at 7:13 AM, Carlos Salgado
carlos.salgado.c.s@gmail.com wrote:

Dear all,

I am trying to build the developer version of Avogadro in Windows, but I am
not sure if I have to use MSVC or MinGW, and the corresponding version of
Qt. I have build it in UNIX with ccmake-2.8.11 and it works like a charm. I
have introduced modifications to the Gaussian calculation interface, for
example. Avogadro is a very nice project.

Could sombody, please, tell me which version of Qt in windows to use, and if
I need to build it using MinGW or MSVC? I would really appreciate it.

I have been building Avogadro 1.1.x on Windows with MSVC 2008, and I
think 2010 more recently, using the latest Qt 4.8 binaries at the
time. That should work, my hard drive failed on that machine so I need
to get this spun up again. For Avogadro 2 I use Qt (5.3 I think last
time, want to try with 5.5) using MSVC 2010.

They both have superbuilds that can make it easier to get all of the
dependencies, or you can get them for yourself.

Hope that helps.

Marcus

Hi Carlos,

If you just want to build Avogadro then you can skip chemkit
altogether. The simplest way to do this is to build the avogadroapp
target - it will only build dependencies directly required by the
avogadroapp external project.

Hope that helps.

Marcus

Marcus D. Hanwell, Ph.D.
Technical Leader, Kitware Inc.
(518) 881-4937

On Wed, Nov 18, 2015 at 10:54 AM, Carlos Salgado
carlos.salgado.c.s@gmail.com wrote:

Thank you Mr. Hanwell,

I think this is exactly what I needed. I am trying to compile Avogadro2 with
the OpenChemistry superbuilds with MSVC2012 and Qt-5.4.1. When linking
chemkit to boost, I am experiencing several troubles like:
"error LNK2019: unresolved external symbol “class
boost::system::error_category…”
This problem seems to be related with the address-model or the architecture
boost is compiled with.

I will heed your advice and build Avogadro2 with the same specifications
that you have told me. Avogadro is an extremely nice tool!

Thank you.

Carlos Salgado

2015-11-18 16:13 GMT+01:00 Marcus D. Hanwell mhanwell@gmail.com:

On Mon, Nov 16, 2015 at 7:13 AM, Carlos Salgado
carlos.salgado.c.s@gmail.com wrote:

Dear all,

I am trying to build the developer version of Avogadro in Windows, but I
am
not sure if I have to use MSVC or MinGW, and the corresponding version
of
Qt. I have build it in UNIX with ccmake-2.8.11 and it works like a
charm. I
have introduced modifications to the Gaussian calculation interface, for
example. Avogadro is a very nice project.

Could sombody, please, tell me which version of Qt in windows to use,
and if
I need to build it using MinGW or MSVC? I would really appreciate it.

I have been building Avogadro 1.1.x on Windows with MSVC 2008, and I
think 2010 more recently, using the latest Qt 4.8 binaries at the
time. That should work, my hard drive failed on that machine so I need
to get this spun up again. For Avogadro 2 I use Qt (5.3 I think last
time, want to try with 5.5) using MSVC 2010.

They both have superbuilds that can make it easier to get all of the
dependencies, or you can get them for yourself.

Hope that helps.

Marcus