Magick++ Demo and CORE_RL_magick_.lib

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
Gajowy
Posts: 8
Joined: 2018-11-24T06:16:08-07:00
Authentication code: 1152

Magick++ Demo and CORE_RL_magick_.lib

Post by Gajowy »

Hello,
I'm starting with Magick++ API (using Visual Studio 2017).
First, I'd like to compile attached Demo project. Seems there is an issue: the project needs CORE_RL_magick_.lib file, which is not present in release I use (ImageMagick-7.0.9-17-Q16-HDRI-x64-dll.exe).
Could you please advise, what should I do to run the Demo?

Regards,
Gajowy

User avatar
dlemstra
Posts: 1610
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Magick++ Demo and CORE_RL_magick_.lib

Post by dlemstra »

It looks like you have an ImageMagick 6 demo linked with an ImageMagick 7 library. Where did you get the demo project?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

Gajowy
Posts: 8
Joined: 2018-11-24T06:16:08-07:00
Authentication code: 1152

Re: Magick++ Demo and CORE_RL_magick_.lib

Post by Gajowy »

Well, it's embedded in ImageMagick-7.0.9-17-Q16-HDRI-x64-dll.exe installation, in Magick++_Demo subfolder.

Is there a new demo version for IM 7? Where can I get it from?

Regards,
Gajowy

User avatar
dlemstra
Posts: 1610
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Magick++ Demo and CORE_RL_magick_.lib

Post by dlemstra »

It looks like we never updated the dsp files in ImageMagick 7. You should change it to `CORE_RL_MagickCore_.lib` where it says `CORE_RL_magick_.lib`. Will try to update this before the next release.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

Gajowy
Posts: 8
Joined: 2018-11-24T06:16:08-07:00
Authentication code: 1152

Re: Magick++ Demo and CORE_RL_magick_.lib

Post by Gajowy »

Thanks a lot!

Gajowy
Posts: 8
Joined: 2018-11-24T06:16:08-07:00
Authentication code: 1152

Re: Magick++ Demo and CORE_RL_magick_.lib

Post by Gajowy »

I'm not so good with C++ however found some additional adjustment needed for run demo in Visual Studio 2017 environment:
* change SDK version from 8.1 to the one you have installed (eg. 10.0.16299.0)
* change the platform from x86 to x64 if needed
* in magick-baseconfig.h change

Code: Select all

#define MAGICKCORE_FREETYPE_DELEGATE
to

Code: Select all

#define MAGICKCORE_FREETYPE_DELEGATE 1
Anyway, still have an error messages: error LNK2019: unresolved external symbol "__declspec(dllimport)
for example:
6>piddle.obj : error LNK2019: nierozpoznany zewnętrzny symbol "__declspec(dllimport) public: void __cdecl std::allocator<class Magick::Coordinate>::deallocate(class Magick::Coordinate * const,unsigned __int64)" (__imp_?deallocate@?$allocator@VCoordinate@Magick@@@std@@QEAAXQEAVCoordinate@Magick@@_K@Z) przywołany w funkcji "public: void __cdecl std::vector<class Magick::Coordinate,class std::allocator<class Magick::Coordinate> >::emplace_back<class Magick::Coordinate>(class Magick::Coordinate &&)" (??$emplace_back@VCoordinate@Magick@@@?$vector@VCoordinate@Magick@@V?$allocator@VCoordinate@Magick@@@std@@@std@@QEAAX$$QEAVCoordinate@Magick@@@Z)

Post Reply