# Building 0.6.1 on windows

**URL:** <https://discuss.avogadro.cc/t/building-0-6-1-on-windows/891>\
**Category:** Development\
**Created:** [March 10, 2008, 2:10am UTC](https://discuss.avogadro.cc/t/building-0-6-1-on-windows/891 "2008-03-10T02:10:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Vandermeersch](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/tim_vandermeersch/32/3479_2.png) [@Tim\_Vandermeersch](https://discuss.avogadro.cc/u/Tim_Vandermeersch)\
**Post date:** [March 10, 2008, 2:10am UTC](https://discuss.avogadro.cc/t/building-0-6-1-on-windows/891/1 "2008-03-10T02:10:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tim\_Vandermeersch](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/tim_vandermeersch/32/3479_2.png) [@Tim\_Vandermeersch](https://discuss.avogadro.cc/u/Tim_Vandermeersch)\
**Post date:** [March 10, 2008, 2:46pm UTC](https://discuss.avogadro.cc/t/building-0-6-1-on-windows/891/2 "2008-03-10T14:46:32Z")

</div>

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 ==========

---

<div class="post-metadata">

**Author:** ![Donald\_Ephraim\_Curti](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/donald_ephraim_curti/32/280_2.png) [@Donald\_Ephraim\_Curti](https://discuss.avogadro.cc/u/Donald_Ephraim_Curti)\
**Post date:** [March 10, 2008, 3:27pm UTC](https://discuss.avogadro.cc/t/building-0-6-1-on-windows/891/3 "2008-03-10T15:27:41Z")

</div>

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](mailto: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](http://SF.net) email is sponsored by: Microsoft  
> Defy all challenges. Microsoft(R) Visual Studio 2008.  
> [http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/](http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/)
> 
> * * *
> 
> Avogadro-devel mailing list  
> [Avogadro-devel@lists.sourceforge.net](mailto:Avogadro-devel@lists.sourceforge.net)  
> [avogadro-devel List Signup and Options](https://lists.sourceforge.net/lists/listinfo/avogadro-devel)

---

<div class="post-metadata">

**Author:** ![Tim\_Vandermeersch](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/tim_vandermeersch/32/3479_2.png) [@Tim\_Vandermeersch](https://discuss.avogadro.cc/u/Tim_Vandermeersch)\
**Post date:** [March 10, 2008, 11:34pm UTC](https://discuss.avogadro.cc/t/building-0-6-1-on-windows/891/4 "2008-03-10T23:34:23Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![mhanwell](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/mhanwell/32/16_2.png) [@mhanwell](https://discuss.avogadro.cc/u/mhanwell)\
**Post date:** [March 11, 2008, 12:13pm UTC](https://discuss.avogadro.cc/t/building-0-6-1-on-windows/891/5 "2008-03-11T12:13:08Z")

</div>

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](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
