Sunday, December 29, 2013

using Magick++ in visual studio

This article illustrate how to use Magick++ as a lib, both Debug & Release, in your project in visual studio.

1. Download ImageMagick-6.8.8-0.7z and ImageMagick-6.8.8-0-Q8-x86-dll.exe
2. Run ImageMagick-6.8.8-0-Q8-x86-dll.exe, remember to choose "Install development headers and libraries for C and C++".

3. Unzip ImageMagick-6.8.8-0.7z,
4. Edit ImageMagick-6.8.8\pango\pango\pango-language-sample-table.h. Change all "whatever is in a quotation mark" to " "
5. Open ImageMagick-6.8.8\VisualMagick\VisualDynamicMT.sln. Compile.
6. Now all Debug dlls and libs are available in ImageMagick-6.8.8\VisualMagick\bin. .h files, release dlls and libs are in the location you choosed in step 2.
7. Change your project setting, VC++ folder should contain folders in step 6.
8.
Include these libs in additional dependency.
debug:
CORE_DB_magick_.lib
CORE_DB_Magick++_.lib
CORE_DB_wand_.lib
X11.lib

release:
CORE_RL_magick_.lib
CORE_RL_Magick++_.lib
CORE_RL_wand_.lib
X11.lib

9. #include <Magick++.h> you are good to go

Monday, December 9, 2013

ati hd4000/3000/2000 windows8.1 driver install

Recently my old laptop has upgraded to windows 8.1. But the official driver catalyst 13.1 13.4beta cannot be installed.

To solve the problem:
 
Step 1: Go to device manager, find your video card. If the name is something like standard *** device, you can ignore this step. If it's not, double click video card, choose driver -> roll back driver. Finally your video card's name will be standard *** device.

Step 2: double click video card, choose driver -> update driver -> browse my computer for driver software.
 
The path should be AMD\Support\13-1-legacy_vista_win7_win8_64_dd_ccc\Packages\Drivers\Display.
 
Click next and you'll find your video card name ATI HD XXXX, without "WDDM1.1", which is good because WDDM1.1 means a very basic driver.