Page 2 of 3
Re: Odd issues when compiling on windows
Posted: 2007-12-02T13:27:50-07:00
by el_supremo
I have an older compiler (C++ .net 2003) but I used your source code and the list of linker dependencies from your .vcproj file and recompiled the program with a static version of 6.3.7-2. It works fine - I'm using Q8.
Pete
Re: Odd issues when compiling on windows
Posted: 2007-12-02T13:40:28-07:00
by mkoppanen
So am I facing compiler version issues? The snaps.php.net version of Imagick is behaving exactly the same way as in my tests.
Are you using static multithread version of ImageMagick?
Re: Odd issues when compiling on windows
Posted: 2007-12-02T14:08:56-07:00
by el_supremo
It was static single-threaded but I've just tried static multi-threaded and that works too.
Pete
Re: Odd issues when compiling on windows
Posted: 2007-12-02T14:14:42-07:00
by mkoppanen
Pete,
can you send me the project files to test with VS2005 ?
Re: Odd issues when compiling on windows
Posted: 2007-12-02T15:38:40-07:00
by el_supremo
Re: Odd issues when compiling on windows
Posted: 2007-12-02T17:53:01-07:00
by mkoppanen
Re: Odd issues when compiling on windows
Posted: 2007-12-02T18:09:27-07:00
by mkoppanen
Running wand_test_STMT.exe from Release produced this image:
I still see that image as black in Windows Vista image viewer and firefox. I wonder what is happening here..
Re: Odd issues when compiling on windows
Posted: 2007-12-02T18:12:22-07:00
by el_supremo
Running wand_test_STMT.exe from Release produced this image:
Really strange. I'm stumped.
Pete
Re: Odd issues when compiling on windows
Posted: 2007-12-02T18:22:30-07:00
by mkoppanen
el_supremo wrote:Running wand_test_STMT.exe from Release produced this image:
Really strange. I'm stumped.
Pete
Tested wand_test_STMT.exe in several machines. The results are identical in all machines (a black image).
Re: Odd issues when compiling on windows
Posted: 2007-12-02T18:43:34-07:00
by el_supremo
Sorry, I only have the one machine.
Pete
Re: Odd issues when compiling on windows
Posted: 2007-12-03T07:59:40-07:00
by mkoppanen
Any of the Wizards have Windows at hand ?
Re: Odd issues when compiling on windows
Posted: 2007-12-03T08:58:34-07:00
by magick
How can we help?
Re: Odd issues when compiling on windows
Posted: 2007-12-03T09:16:29-07:00
by mkoppanen
To figure out why this code:
http://valokuva.org/outside-blog-conten ... ckTest.rar
Creates this image:
This seems to be happening when linked statically in Windows.
Re: Odd issues when compiling on windows
Posted: 2007-12-03T11:43:21-07:00
by magick
We downloaded your project and the ImageMagick Q16 Windows DLL binaries onto a XP box. We changed the project settings to only pick up CORE_RL_magick_.dll and CORE_RL_wand_.dll. Next we built and ran your program. We get a completely transparent PNG image as expected.
Re: Odd issues when compiling on windows
Posted: 2007-12-03T11:53:20-07:00
by mkoppanen
magick wrote:We downloaded your project and the ImageMagick Q16 Windows DLL binaries onto a XP box. We changed the project settings to only pick up CORE_RL_magick_.dll and CORE_RL_wand_.dll. Next we built and ran your program. We get a completely transparent PNG image as expected.
Yes, this seems to be working as expected. But you you select windows-static version it produces the images described in this thread.
This is how I do it:
1. Download windows sources
2. Compile configure.exe (Release)
3. Run configure.exe and select Multi-Thread static
4. Compile ImageMagick (Release)
5. Make a test program which uses Multi-Thread (not dll)
6. Compile and run the test program.
The binary size for statically linked program is somewhere near 4MB and incorrect images happen
only when linking statically.