Building 0.6.1 on windows

Hi,

At the moment avogadro.dll and avogadro.exe compile. Most of the
tools, engines and extension also compile. The drawtool, iso.cpp,
select extension, ribbon engine do not. I’ll try to get them working
tomorrow.

Tim

Below are some link errors, Does any one has an idea how to solve
this? There are the last problems before a full 0.6.1 win release.

Tim

drawtool:

1>------ Build started: Project: avogadro-lib, Configuration: Release
Win32 ------
1>Creating manifest…
1>Build log was saved at
"file://c:\avogadro\avogadro-0.6.1\build\libavogadro\src\avogadro-lib.dir\Release\BuildLog.htm"
1>avogadro-lib - 0 error(s), 0 warning(s)
2>------ Build started: Project: drawtool, Configuration: Release Win32 ------
2>Linking…
2> Creating library Release\drawtool.lib and object Release\drawtool.exp
2>drawtool.obj : error LNK2019: unresolved external symbol “public:
bool __thiscall OpenBabel::OBBuilder::Build(class OpenBabel::OBMol &)”
(?Build@OBBuilder@OpenBabel@@QAE_NAAVOBMol@2@@Z) referenced in
function “public: void __thiscall Avogadro::DrawTool::gen3D(void)”
(?gen3D@DrawTool@Avogadro@@QAEXXZ)
2>drawtool.obj : error LNK2019: unresolved external symbol “public:
__thiscall OpenBabel::OBBuilder::~OBBuilder(void)”
(??1OBBuilder@OpenBabel@@QAE@XZ) referenced in function
__unwindfunclet$??0DrawTool@Avogadro@@QAE@PAVQObject@@@Z$0
2>drawtool.obj : error LNK2019: unresolved external symbol “public:
__thiscall OpenBabel::OBBuilder::OBBuilder(void)”
(??0OBBuilder@OpenBabel@@QAE@XZ) referenced in function “public:
__thiscall Avogadro::DrawTool::DrawTool(class QObject *)”
(??0DrawTool@Avogadro@@QAE@PAVQObject@@@Z)
2>drawtool.obj : error LNK2019: unresolved external symbol “public:
__thiscall Avogadro::PeriodicTableView::PeriodicTableView(class
QWidget *)” (??0PeriodicTableView@Avogadro@@QAE@PAVQWidget@@@Z)
referenced in function “public: virtual class QWidget * __thiscall
Avogadro::DrawTool::settingsWidget(void)”
(?settingsWidget@DrawTool@Avogadro@@UAEPAVQWidget@@XZ)
2>Release\drawtool.dll : fatal error LNK1120: 4 unresolved externals
2>Build log was saved at
"file://c:\avogadro\avogadro-0.6.1\build\libavogadro\src\tools\drawtool.dir\Release\BuildLog.htm"
2>drawtool - 5 error(s), 0 warning(s)
========== Build: 1 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

orbital & surface engine:

1>------ Build started: Project: avogadro-lib, Configuration: Release
Win32 ------
1>Creating manifest…
1>Build log was saved at
"file://c:\avogadro\avogadro-0.6.1\build\libavogadro\src\avogadro-lib.dir\Release\BuildLog.htm"
1>avogadro-lib - 0 error(s), 0 warning(s)
2>------ Build started: Project: orbitalengine, Configuration: Release
Win32 ------
2>Linking…
2> Creating library Release\orbitalengine.lib and object
Release\orbitalengine.exp
2>orbitalengine.obj : error LNK2019: unresolved external symbol
"public: __thiscall ColorButton::ColorButton(class QWidget *)"
(??0ColorButton@@QAE@PAVQWidget@@@Z) referenced in function “public:
void __thiscall Ui_OrbitalSettingsWidget::setupUi(class QWidget *)”
(?setupUi@Ui_OrbitalSettingsWidget@@QAEXPAVQWidget@@@Z)
2>orbitalengine.obj : error LNK2019: unresolved external symbol
"public: void __thiscall ColorButton::setColor(class QColor const &)"
(?setColor@ColorButton@@QAEXABVQColor@@@Z) referenced in function
"public: virtual class QWidget * __thiscall
Avogadro::OrbitalEngine::settingsWidget(void)"
(?settingsWidget@OrbitalEngine@Avogadro@@UAEPAVQWidget@@XZ)
2>Release\orbitalengine.dll : fatal error LNK1120: 2 unresolved externals
2>Build log was saved at
"file://c:\avogadro\avogadro-0.6.1\build\libavogadro\src\engines\orbitalengine.dir\Release\BuildLog.htm"
2>orbitalengine - 3 error(s), 0 warning(s)
========== Build: 1 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

Hrm…

It seems like something isn’t getting exported. In windows you have to
do an AVO_EXPORT or something like that (check global.h). It should be
default but maybe not.

Oh, it might be that those are new OB functions that aren’t getting
exported… It’s probably not related to Avo, it’s probably that your
OpenBabel.dll is not exporting the functions / classes it needs to.


Donald

(Mon, Mar 10, 2008 at 03:46:32PM +0100) Tim Vandermeersch tim.vandermeersch@gmail.com:

Below are some link errors, Does any one has an idea how to solve
this? There are the last problems before a full 0.6.1 win release.

Tim

drawtool:

1>------ Build started: Project: avogadro-lib, Configuration: Release
Win32 ------
1>Creating manifest…
1>Build log was saved at
"file://c:\avogadro\avogadro-0.6.1\build\libavogadro\src\avogadro-lib.dir\Release\BuildLog.htm"
1>avogadro-lib - 0 error(s), 0 warning(s)
2>------ Build started: Project: drawtool, Configuration: Release Win32 ------
2>Linking…
2> Creating library Release\drawtool.lib and object Release\drawtool.exp
2>drawtool.obj : error LNK2019: unresolved external symbol “public:
bool __thiscall OpenBabel::OBBuilder::Build(class OpenBabel::OBMol &)”
(?Build@OBBuilder@OpenBabel@@QAE_NAAVOBMol@2@@Z) referenced in
function “public: void __thiscall Avogadro::DrawTool::gen3D(void)”
(?gen3D@DrawTool@Avogadro@@QAEXXZ)
2>drawtool.obj : error LNK2019: unresolved external symbol “public:
__thiscall OpenBabel::OBBuilder::~OBBuilder(void)”
(??1OBBuilder@OpenBabel@@QAE@XZ) referenced in function
__unwindfunclet$??0DrawTool@Avogadro@@QAE@PAVQObject@@@Z$0
2>drawtool.obj : error LNK2019: unresolved external symbol “public:
__thiscall OpenBabel::OBBuilder::OBBuilder(void)”
(??0OBBuilder@OpenBabel@@QAE@XZ) referenced in function “public:
__thiscall Avogadro::DrawTool::DrawTool(class QObject *)”
(??0DrawTool@Avogadro@@QAE@PAVQObject@@@Z)
2>drawtool.obj : error LNK2019: unresolved external symbol “public:
__thiscall Avogadro::PeriodicTableView::PeriodicTableView(class
QWidget *)” (??0PeriodicTableView@Avogadro@@QAE@PAVQWidget@@@Z)
referenced in function “public: virtual class QWidget * __thiscall
Avogadro::DrawTool::settingsWidget(void)”
(?settingsWidget@DrawTool@Avogadro@@UAEPAVQWidget@@XZ)
2>Release\drawtool.dll : fatal error LNK1120: 4 unresolved externals
2>Build log was saved at
"file://c:\avogadro\avogadro-0.6.1\build\libavogadro\src\tools\drawtool.dir\Release\BuildLog.htm"
2>drawtool - 5 error(s), 0 warning(s)
========== Build: 1 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

orbital & surface engine:

1>------ Build started: Project: avogadro-lib, Configuration: Release
Win32 ------
1>Creating manifest…
1>Build log was saved at
"file://c:\avogadro\avogadro-0.6.1\build\libavogadro\src\avogadro-lib.dir\Release\BuildLog.htm"
1>avogadro-lib - 0 error(s), 0 warning(s)
2>------ Build started: Project: orbitalengine, Configuration: Release
Win32 ------
2>Linking…
2> Creating library Release\orbitalengine.lib and object
Release\orbitalengine.exp
2>orbitalengine.obj : error LNK2019: unresolved external symbol
"public: __thiscall ColorButton::ColorButton(class QWidget *)"
(??0ColorButton@@QAE@PAVQWidget@@@Z) referenced in function “public:
void __thiscall Ui_OrbitalSettingsWidget::setupUi(class QWidget *)”
(?setupUi@Ui_OrbitalSettingsWidget@@QAEXPAVQWidget@@@Z)
2>orbitalengine.obj : error LNK2019: unresolved external symbol
"public: void __thiscall ColorButton::setColor(class QColor const &)"
(?setColor@ColorButton@@QAEXABVQColor@@@Z) referenced in function
"public: virtual class QWidget * __thiscall
Avogadro::OrbitalEngine::settingsWidget(void)"
(?settingsWidget@OrbitalEngine@Avogadro@@UAEPAVQWidget@@XZ)
2>Release\orbitalengine.dll : fatal error LNK1120: 2 unresolved externals
2>Build log was saved at
"file://c:\avogadro\avogadro-0.6.1\build\libavogadro\src\engines\orbitalengine.dir\Release\BuildLog.htm"
2>orbitalengine - 3 error(s), 0 warning(s)
========== Build: 1 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========


This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft® Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-devel

Hi,

Avogadro 0.6.1 now compiles on windows. It required some changes to
both openbabel and avogadro. I’ll commit them as soon as possible.

The installer can be found here:
http://home.scarlet.be/timvdm/avogadro-0.6.1-win32.exe (I can’t add
files on the sf page I think)

Does anyone know the license for VC++ 2005 express edition? (Just want
to make sure we can distribute the build)

This is form the VC++ 2005 express FAQ:
Can I use Express Editions for commercial use?
Yes, there are no licensing restrictions for applications built
using the Express Editions.

So I assume it is allowed.

Tim

Tim Vandermeersch wrote:

Avogadro 0.6.1 now compiles on windows. It required some changes to
both openbabel and avogadro. I’ll commit them as soon as possible.

The installer can be found here:
http://home.scarlet.be/timvdm/avogadro-0.6.1-win32.exe (I can’t add
files on the sf page I think
Hi Tim,

The license looks like it will be no problem. I have put the installer
up now. Thanks for getting it built. I checked my blog and actually had
a comment from someone who had shown Avogadro to the other people in his
lab and they were all really impressed but he couldn’t find the latest
Windows version and so it was great timing to be able to put it up there
for him.

Thanks,

Marcus