Odd issues when compiling on windows
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: Odd issues when compiling on windows
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
Pete
Re: Odd issues when compiling on windows
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?
Are you using static multithread version of ImageMagick?
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: Odd issues when compiling on windows
It was static single-threaded but I've just tried static multi-threaded and that works too.
Pete
Pete
Re: Odd issues when compiling on windows
Pete,
can you send me the project files to test with VS2005 ?
can you send me the project files to test with VS2005 ?
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: Odd issues when compiling on windows
el_supremo wrote:http://members.shaw.ca/el.supremo/mikko_wand_test.zip
I'll delete it once you've got it.
Pete
Got it! Thank you!
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org
Re: Odd issues when compiling on windows
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..
I still see that image as black in Windows Vista image viewer and firefox. I wonder what is happening here..
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: Odd issues when compiling on windows
Really strange. I'm stumped.Running wand_test_STMT.exe from Release produced this image:
Pete
Re: Odd issues when compiling on windows
Tested wand_test_STMT.exe in several machines. The results are identical in all machines (a black image).el_supremo wrote:Really strange. I'm stumped.Running wand_test_STMT.exe from Release produced this image:
Pete
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: Odd issues when compiling on windows
Sorry, I only have the one machine.
Pete
Pete
Re: Odd issues when compiling on windows
Any of the Wizards have Windows at hand ?
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org
Re: Odd issues when compiling on windows
How can we help?
Re: Odd issues when compiling on windows
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.
Creates this image:
This seems to be happening when linked statically in Windows.
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org
Re: Odd issues when compiling on windows
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
Yes, this seems to be working as expected. But you you select windows-static version it produces the images described in this thread.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.
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.
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org