Re: Compiling code with Magick++ using MinGW

Bob Friesenhahn <[email protected]> Mon, 9 Jun 2008 20:37:55 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
On Wed, 4 Jun 2008, Timothy Niiler wrote:
> 
> I can find no instructions on how to compile in the MinGW environment.  Are there equivalents to:
>
>       g++ -o example example.cpp `GraphicsMagick++-config --cppflags --cxxflags --ldflags
>       --libs`
> 
> as I use on Linux?  The files in the GraphicsMagick-1.2-windows-source\Magick++\demo directory

If you are using the MSYS shell and have done 'make install' for 
GraphicsMagick, then GraphicsMagick-config should be available in 
/usr/local/bin (by default) just like on Linux.  It may even work!

Bob Friesenhahn@VELMA ~
$ GraphicsMagick-config --cflags
-O2 -Wall

Bob Friesenhahn@VELMA ~
$ GraphicsMagick-config --cppflags
-I/usr/local/include/GraphicsMagick -D_LIB -D_MT

Bob Friesenhahn@VELMA ~
$ GraphicsMagick-config --libs
-lGraphicsMagick -ljbig -ltiff -lfreetype -ljpeg -lpng -lwmflite -lz -lgdi32 -lm

Bob Friesenhahn@VELMA ~
$ GraphicsMagick-config --ldflags
-L/usr/local/lib -L/usr/local/lib -L/usr/local/lib

Note that the values provided by --cppflags are particularly important 
if you built with DLLs.

Let me know if this does not get you closer to your goals.

Bob
======================================
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

_______________________________________________
Graphicsmagick-apis mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-apis