Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello, guys.
I got stuck with connecting Magick++ library (It's a bunch of libraries to handle images) in my C++ project.
Maybe someone have some experience how to do this.
I'm using VS 2012 and already built a VisualStaticMT solution from binaries.
But there is no way I could employ compiled libs in my project.
It seems to me the problem consist in Linker. I tried to find step-by-step solution but in vain.

Error 46 error LNK1104: cannot open file 'CORE_DB_magick_.lib'
I tried to copy it in the project dir( it gave nothing)

It would be great to see an accurate clarification how to use this Lib in C++ using VS not only for me, but for others who have the same troubles.
Posted
Updated 18-Sep-12 8:51am
v4
Comments
Sergey Alexandrovich Kryukov 17-Sep-12 21:04pm    
This "I got stuck is not informative". You did not provide enough information to help you.
--SA
[no name] 17-Sep-12 22:34pm    
" I could employ compiled libs in my project", and why could you not link to the libraries?
[no name] 18-Sep-12 13:34pm    
Did you add the path to those libraries in the project settings in VS?
JOHN 602 18-Sep-12 14:42pm    
Of course I did
See:
Project->"MyProject" Properties->Configuration Properties->
than in VC++ Directories :
in field "Include directories" I set
"C:\Users\Administrator\Desktop\New folder\ImageMagick-6.6.9;C:\Users\Administrator\Desktop\New folder\ImageMagick-6.6.9\VisualMagick\lib;C:\Users\Administrator\Desktop\New folder\ImageMagick-6.6.9\Magick++\lib;$(IncludePath)"
in field "Library directorie" i set:
C:\Users\Administrator\Desktop\New folder\ImageMagick-6.6.9\Magick++\lib;$(LibraryPath)
Than in Linker(tab)->General in field "Additional Library Directories" I set
%USERPROFILE%\C:\Users\Administrator\Desktop\New folder\ImageMagick-6.6.9\VisualMagick\lib;%USERPROFILE%\C:\Users\Administrator\Desktop\New folder\ImageMagick\libxml\win32\dsp\libxml2;%(AdditionalLibraryDirectories)
In Linker->Input in field "Addition Dependencies" i set
ws2_32.lib;CORE_DB_magick_.lib;CORE_DB_Magick++_.lib;CORE_DB_bzlib_.lib;CORE_DB_coders_.lib;CORE_DB_filters_.lib;CORE_DB_jbig_.lib;CORE_DB_jp2_.lib;CORE_DB_jpeg_.lib;CORE_DB_lcms_.lib;CORE_DB_libxml_.lib;CORE_DB_png_.lib;CORE_DB_tiff_.lib;CORE_DB_ttf_.lib;CORE_DB_wand_.lib;CORE_DB_wmf_.lib;CORE_DB_xlib_.lib;CORE_DB_zlib_.lib;CORE_RL_bzlib_.lib;CORE_RL_coders_.lib;CORE_RL_filters_.lib;CORE_RL_jbig_.lib;CORE_RL_jp2_.lib;CORE_RL_jpeg_.lib;CORE_RL_lcms_.lib;CORE_RL_libxml_.lib;CORE_RL_magick_.lib;CORE_RL_Magick++_.lib;CORE_RL_png_.lib;CORE_RL_tiff_.lib;CORE_RL_ttf_.lib;CORE_RL_wand_.lib;CORE_RL_wmf_.lib;CORE_RL_xlib_.lib;CORE_RL_zlib_.lib;%(AdditionalDependencies)
Than in filed "Add module to assembly" I set
CORE_DB_magick_.lib;CORE_DB_Magick++_.lib;CORE_DB_wand_.lib;X11.lib;%(AddModuleNamesToAssembly)
Richard MacCutchan 18-Sep-12 16:03pm    
%USERPROFILE%\C:\Users\Administrator\Desktop\New folder\ImageMagick-6.6.9\VisualMagick\lib

That %USERPROFILE%\ at the front does not look right. What does that complete expression evaluate to?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900