09-12-2020, 06:10 AM
(09-11-2020, 01:18 PM)bluewww Wrote: You should link against graphicsmagick, not imagemagick
Thanks for your reply! I have built SDK successfully without any error but with several warnings.
I'll keep trying what pulpissimo platform can do later. Besides, I think I could elaborate what happened for those having similar problems.
I installed GraphicsMagick in my home directory and add the path to $CPLUS_INCLUDE_PATH. Then I encountered the problem "/usr/bin/ld : cannot find -lGrphicsMagick++". I didn't find libGraphicsMagick.so nor libGraphicsMagick++.so. But I found libGraphicsMagick.so in /usr/lib64. I added /usr/lib64 into $LD_LIBRARY_PATH. The problem was not solved.
Then I found my machine only installed GraphicsMagick-devel but not GraphcisMagick-c++-devel. After installing it, the SDK was built successfully.
To sum up,
1. Install GraphicsMagick but not ImageMagick
2. Install both GraphicsMagick-devel and GraphicsMagick-c++-devel
3. Remember to add corresponding path into $CPLUS_INCLUDE_PATH and $LD_LIBRARY_PATH
I am not so sure which step is redundant. I'll be glad to learn these knowledge if you would like to share with me! Thanks a lot!