# Building Synfig on Windows (Konstantin's report)

**URL:** https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527
**Category:** Building synfig
**Tags:** false-positive, virustotal
**Created:** [June 22, 2013, 5:50pm UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527 "2013-06-22T17:50:36Z")
**Posts on this page:** 17
**Page:** 4

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [August 1, 2013, 6:28am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/61 "2013-08-01T06:28:57Z")

</div>

> [@](#):
>
> Only problem I encountered so far is Cairo giving me some troubles with certain lst.files.

Cairo has several bugs and limitations in this release. The upcoming 0.64.1 will have many of them fixed. Importing anything but png will fail though.  
-G

---

<div class="post-metadata">

### Author: ![KonstantinDmitriev](https://forums.synfig.org/user_avatar/forums.synfig.org/konstantindmitriev/32/3_2.png) [@KonstantinDmitriev](https://forums.synfig.org/u/KonstantinDmitriev)
#### Post date: [August 1, 2013, 6:35am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/62 "2013-08-01T06:35:59Z")

</div>

> [@Genete](#):
>
> Congratulations!  
> Tested the install options and works fine.  
> Resize looks to be fixed in Windows XP 32 bits.  
> Played a few minutes with pirates.sif and didn’t crashed (single thread disabled). It still crashing randomly in other cases, even a simple file, like usual ![:mrgreen:](https://forums.synfig.org/uploads/default/original/1X/15680453330e74f929b585a237613f0bdf61e069.gif "Mr. Green")  
> With pirates I did -Cairo and Software, single thread disabled:  
> Zoom in and immediately start to resize the canvas window. I can see the tiles being rendered meanwhile resizing, everything updated with continuous feedback. I repeated this with different zooms, Cairo, Software and nothing, it didn’t hang. 😃😃😃  
> -G

Great to know! Thank you for testing, Carlos!

Well, maybe it’s ok to officially release 0.64.0 for Windows today, what do you think?

We still have [issue #459](http://www.synfig.org/issues/thebuggenie/synfig/issues/459) not fixed, but it was in Synfig for years before, so I think we can postpone it for further release.

---

<div class="post-metadata">

### Author: ![Darkspace\_be](https://forums.synfig.org/user_avatar/forums.synfig.org/darkspace_be/32/71_2.png) [@Darkspace\_be](https://forums.synfig.org/u/Darkspace_be)
#### Post date: [August 1, 2013, 6:39am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/63 "2013-08-01T06:39:43Z")

</div>

Hi!  
No problems at all with pirates.sif on Windows 7. And no random crashes related to single thread disabling so far either (been working since 6.30u this morning with single thread diasbled without one crash. Maybe Murphy is on my side today)  
Greetz!

---

<div class="post-metadata">

### Author: ![KonstantinDmitriev](https://forums.synfig.org/user_avatar/forums.synfig.org/konstantindmitriev/32/3_2.png) [@KonstantinDmitriev](https://forums.synfig.org/u/KonstantinDmitriev)
#### Post date: [August 1, 2013, 6:44am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/64 "2013-08-01T06:44:43Z")

</div>

Just a note - I haven’t touched anything related with Single thread mode. So this is just a luck I think. 🙂

---

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [August 1, 2013, 6:46am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/65 "2013-08-01T06:46:49Z")

</div>

> [@Zelgadis](#):
>
> Well, maybe it’s ok to officially release 0.64.0 for Windows today, what do you think?
> 
> We still have [issue #459](http://www.synfig.org/issues/thebuggenie/synfig/issues/459) not fixed, but it was in Synfig for years before, so I think we can postpone it for further release.

I think it is the right moment. That would allow you to focus on other things and we can release 0.64.1 for all platforms.  
Fantastic!!!  
-G

---

<div class="post-metadata">

### Author: ![KonstantinDmitriev](https://forums.synfig.org/user_avatar/forums.synfig.org/konstantindmitriev/32/3_2.png) [@KonstantinDmitriev](https://forums.synfig.org/u/KonstantinDmitriev)
#### Post date: [August 1, 2013, 6:04pm UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/66 "2013-08-01T18:04:24Z")

</div>

So, it’s officially here now! - [synfig.org/cms/en/news/synfi … available/](http://www.synfig.org/cms/en/news/synfig-studio-0.64.0-for-windows-is-available/)

BTW, with the last build I also managed to fix the issue #459. Enjoy!

---

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [August 1, 2013, 9:26pm UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/67 "2013-08-01T21:26:06Z")

</div>

Cogratulations! And for the bug #459 too!  
-G

---

<div class="post-metadata">

### Author: ![Darkspace\_be](https://forums.synfig.org/user_avatar/forums.synfig.org/darkspace_be/32/71_2.png) [@Darkspace\_be](https://forums.synfig.org/u/Darkspace_be)
#### Post date: [August 2, 2013, 4:53am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/68 "2013-08-02T04:53:12Z")

</div>

Hi!  
Great work and well done! 😃  
Greetz!

---

<div class="post-metadata">

### Author: ![KonstantinDmitriev](https://forums.synfig.org/user_avatar/forums.synfig.org/konstantindmitriev/32/3_2.png) [@KonstantinDmitriev](https://forums.synfig.org/u/KonstantinDmitriev)
#### Post date: [August 2, 2013, 1:14pm UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/69 "2013-08-02T13:14:09Z")

</div>

Thank you!

> [@Genete](#):
>
> And for the bug #459 too!

Yes. 🙂 I believe Glib::locale\_from\_utf8() should be used in more places (in load/saving routines, for example), but I have postponed this for later.

My possible further steps in that area:

- Migrate from MinGW to more modern Mingw-W64 toolchain (within the same cygwin environment). That would allow to try the 64bit build.
- Also, Mingw-W64 toolchain is used in Fedora, so I can get back to finishing the idea of compiling/debugging Windows version of Synfig in Linux.

---

<div class="post-metadata">

### Author: ![KonstantinDmitriev](https://forums.synfig.org/user_avatar/forums.synfig.org/konstantindmitriev/32/3_2.png) [@KonstantinDmitriev](https://forums.synfig.org/u/KonstantinDmitriev)
#### Post date: [August 3, 2013, 9:10am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/70 "2013-08-03T09:10:45Z")

</div>

Today I have built the latest development version - [dl.dropboxusercontent.com/u/155 … 130803.exe](https://dl.dropboxusercontent.com/u/15516795/synfigstudio-0.64.0-20130803.exe)

Please note: This is a development version, which mean it might be unstable. Use at your own risk.

---

<div class="post-metadata">

### Author: ![pixelgeek](https://forums.synfig.org/user_avatar/forums.synfig.org/pixelgeek/32/10_2.png) [@pixelgeek](https://forums.synfig.org/u/pixelgeek)
#### Post date: [August 5, 2013, 11:04pm UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/71 "2013-08-05T23:04:20Z")

</div>

Note that while you may not have done anything to explicitly ‘fix’ multi-threading, the fact that you’re using a different compiler and not the MSYS environment, may be enough that it now works as it does under Linux. Yes?

When I get a chance I’d like to be able to duplicate your Fedora cross compile setup. My last attempt was woefully deficient.

---

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [August 6, 2013, 5:53am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/72 "2013-08-06T05:53:07Z")

</div>

> [@Zelgadis](#):
>
> Today I have built the latest development version - [dl.dropboxusercontent.com/u/155 … 130803.exe](https://dl.dropboxusercontent.com/u/15516795/synfigstudio-0.64.0-20130803.exe)
> 
> Please note: This is a development version, which mean it might be unstable. Use at your own risk.

According to this:  
[synfig.org/cms/en/news/virus … ows-builds](http://www.synfig.org/cms/en/news/virus-alarm-on-windows-builds)  
I think you should remove the above link availability.  
-G

---

<div class="post-metadata">

### Author: ![KonstantinDmitriev](https://forums.synfig.org/user_avatar/forums.synfig.org/konstantindmitriev/32/3_2.png) [@KonstantinDmitriev](https://forums.synfig.org/u/KonstantinDmitriev)
#### Post date: [August 6, 2013, 11:42am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/73 "2013-08-06T11:42:32Z")

</div>

> [@pixelgeek](#):
>
> Note that while you may not have done anything to explicitly ‘fix’ multi-threading, the fact that you’re using a different compiler and not the MSYS environment, may be enough that it now works as it does under Linux. Yes?
> 
> When I get a chance I’d like to be able to duplicate your Fedora cross compile setup. My last attempt was woefully deficient.

Hi, pixelgeek!  
The latest successful builds are NOT built on Fedora.  
They are built in Windows using the MINGW toolchain. The only difference is that I’m running this toolchain in the Cygwin environment ([cygwin.com/](http://www.cygwin.com/)). Cygwin gives many advantages:

- You can install all required (precompiled) components using the setup tool
- You get all Linux build toolchain in place
- You can work in the Cygwin environment much like the same as you work in Linux  
The build script is commited in the synfig source tree - [github.com/morevnaproject/synfi … w-build.sh](https://github.com/morevnaproject/synfig/blob/master/autobuild/synfigstudio-cygwin-mingw-build.sh)  
Notice I have wrote some usage notes at the top of the script.

> [@Genete](#):
>
> According to this:  
> [synfig.org/cms/en/news/virus … ows-builds](http://www.synfig.org/cms/en/news/virus-alarm-on-windows-builds)  
> I think you should remove the above link availability.

Done.

[size=150]Important announcement:[/size]  
We have received reports that our Windows binaries of Synfig are infected with a virus. While we investigating the issue the binaries are temporarily taken offline. Sorry for inconvenience.

---

<div class="post-metadata">

### Author: ![KonstantinDmitriev](https://forums.synfig.org/user_avatar/forums.synfig.org/konstantindmitriev/32/3_2.png) [@KonstantinDmitriev](https://forums.synfig.org/u/KonstantinDmitriev)
#### Post date: [August 7, 2013, 5:53am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/74 "2013-08-07T05:53:20Z")

</div>

OK, the investigation of the “virus alarm” issue is done, here’s my report.

Step 1. First of all I have tested the synfig installation bundle on the different PC  
with the latest version of Avast Free antivirus installed. Result: no threats found.  
avast-scan-cropped.png  
Then I have installed Synfig and scanned the synfig folder. No alarm.

Step 2. There was [one report](https://forums.synfig.org/t/solved-a-error-message-with-antivirus-and-synfig-0-64/2606/1) about the antivirus complaining on libgdk-win32-2.0-0.dll file.  
This file is part of CygPort’s mingw-gtk package, version 2.24.12-1.

I wanted to be sure that file is unmodified since the time it was installed.  
So I’ve downloaded the original package from [here](http://mirrors.kernel.org/sources.redhat.com/cygwinports/noarch/release/mingw-gtk2.0/mingw-gtk2.0-2.24.12-1.tar.bz2) and run an md5sum check for the downloaded version and installed one.

$ md5sum /var/run/media/zelgadis/Windows7\_OS/Program\ Files\ (x86)/Synfig/bin/libgdk-win32-2.0-0.dll  
c108435ed7f1b1583c108f3e0d0a00f4 /var/run/media/zelgadis/Windows7\_OS/Program Files (x86)/Synfig/bin/libgdk-win32-2.0-0.dll

$ md5sum ~/Downloads/mingw-gtk2.0-2.24.12-1/usr/i686-pc-mingw32/sys-root/mingw/bin/libgdk-win32-2.0-0.dll  
c108435ed7f1b1583c108f3e0d0a00f4 /home/zelgadis/Downloads/mingw-gtk2.0-2.24.12-1/usr/i686-pc-mingw32/sys-root/mingw/bin/libgdk-win32-2.0-0.dll

Result: the file is unchanged and the same as provided in CygPorts package.

All operations in step 2 were made from my Linux OS, to exclude the possibility of beign affected by (potentially existing) virus.

Step 3. I’ve booted into my build host and run [online virus check by ESet](http://www.eset.com/us/online-scanner/).

 ![avast-scan-cropped.png](https://forums.synfig.org/uploads/default/original/2X/0/0f2d7407879c2186dd340dd769ac7ed7f786345b.png)  
Result: No threats found.

Step 4. I’ve booted back in Linux and downloaded [Kaspersky Rescue Disk iso image](http://www.kaspersky.ru/virusscanner).  
I have burned the iso image onto CD, booted from it, and launched the virus scan for all hard drives.

Result: No threats found.

Step 5. After all that I booted back into Linux and used online virus scan services to check Synfig binaries.

- [virustotal.com/en/](https://www.virustotal.com/en/)  
\*\* Result: [1 of 38 antiviruses reported a threat found](https://www.virustotal.com/en/file/8f8342201220920a653d38b6946ca6648091a236d7250e35edf88b980cc34fe6/analysis/1375853974/). Antivirus name is Antiy-AVL. All the rest claim the file is clean.
- [virscan.org/](http://www.virscan.org/) (doesn’t support files larger than 20Mb, so I’ve scanned libgdk-win32-2.0-0.dll file only)  
\*\* Result: [No threats found](http://r.virscan.org/report/e12aa1c4dfb2b379ec02740c312fe58d.html)

[size=150]CONCLUSION: After all those tests I can safely classify the virus infection reports as false alarm. I’m putting the Windows binaries are back online.[/size]

Such an incident is another signal to migrate our build toolchain into Fedora’s crosscompile environment. I really don’t like all those “possibilities to have virus”. If we will build Windows binaries on Linux, then the probability of virus infection cases is close to zero.

---

<div class="post-metadata">

### Author: ![John\_Smith](https://forums.synfig.org/user_avatar/forums.synfig.org/john_smith/32/3662_2.png) [@John\_Smith](https://forums.synfig.org/u/John_Smith)
#### Post date: [August 11, 2013, 5:04am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/75 "2013-08-11T05:04:49Z")

</div>

With the Windows now done will it be possible to see Windows versions of the development snapshots [synfig.org/cms/en/download/development](http://www.synfig.org/cms/en/download/development)

---

<div class="post-metadata">

### Author: ![John\_Smith](https://forums.synfig.org/user_avatar/forums.synfig.org/john_smith/32/3662_2.png) [@John\_Smith](https://forums.synfig.org/u/John_Smith)
#### Post date: [August 21, 2013, 11:02am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/76 "2013-08-21T11:02:27Z")

</div>

Can I get some info on whether it would be possible for the develpment snapshots of Synfig to have windows versions? [synfig.org/cms/en/download/development](http://www.synfig.org/cms/en/download/development)  
That seems like the most important priority right now for Synfig’s growth.

---

<div class="post-metadata">

### Author: ![KonstantinDmitriev](https://forums.synfig.org/user_avatar/forums.synfig.org/konstantindmitriev/32/3_2.png) [@KonstantinDmitriev](https://forums.synfig.org/u/KonstantinDmitriev)
#### Post date: [August 24, 2013, 8:21am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/77 "2013-08-24T08:21:26Z")

</div>

Hello, everyone!

Today I’m happy to present the testing 64-bit build of Synfig: [https://dl.dropboxusercontent.com/u/15516795/synfigstudio-0.64.0-64bit-20130823.exe](https://dl.dropboxusercontent.com/u/15516795/synfigstudio-0.64.0-64bit-20130823.exe)

Known issues (in addition to ones in 32-bit version):

- Document filename damaged when running plugin with unsaved file.
- Only English locale
- No native look

The bad news: Recently Cygwin have updated their gcc version to 4.7.3 (see [here](http://cygwin.com/ml/cygwin-announce/2013-07/msg00019.html) and [here](http://cygwin.com/ml/cygwin-announce/2013-07/msg00011.html)) and that completely broke the mingw cross-compile toolchain on Windows. So, my build scripts doesn’t work on Windows anymore. I still can compile packages on Fedora, but it’s kinda pain to debug the binaries there. So, I’m trying to figure out how to fix the problem and get my scripts working on Windows again. Currently I am using precompiled binaries for all dependent libs (gtk, glib, boost, etc) shipped by cygport and this is the broken part. Probably I will need to recompile all dependencies by myself (which is pain to mainitain) or… or something else, I don’t know yet. Anyway, that’s my real priority at the moment. ^\_\_\_^

[Previous page](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527.md?page=3)
