So it's been now 4 hours I've been trying to get Magick++ to work. For some reason, it never occurred me that an external library worked without problems. Usually it takes about six hours of pure time googling.
After a lot of pain I've finally achieved to get the first part of compilation right (extept the tons of warnings), but the linking is problematic. I've found this post about Imagick linking errors and this one about adding the Imagick paths to the project.
After adding the Imagick/lib
to the Linker settings in Visual C++ project this is the only message that coumes out of the compiler:
1>------ Build started: Project: stripes, Configuration: Debug Win32 ------
1>LINK : fatal error LNK1104: cannot open file 'C:\Program Files\ImageMagick\lib.obj'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
What is this supposed to be? Have I accidentally edited something else?
In Project properties -> Configuration properties
, I edited following:
VC++ Directories
Include Directories
- addedC:\Program Files\ImageMagick\include
Library Directories
- addedC:\Program Files\ImageMagick\lib
Linker
General
Additional Library Directories
- addedC:\Program Files\ImageMagick\lib
Input
Additional Dependencies
- added
CORE_RL_Magick++_.lib
- added
CORE_RL_magick__.lib
- added
X11_.lib
- added