- Modifications to compile ImageMagick
This commit is contained in:
parent
615ec83706
commit
83522c16c3
3442 changed files with 57 additions and 412926 deletions
|
@ -15,9 +15,9 @@ AC_PROG_CXX
|
|||
AC_SUBST(CXX)
|
||||
|
||||
## pix_artoolkit
|
||||
if test -d "$srcdir/pix_artoolkit"; then
|
||||
AC_CONFIG_SUBDIRS([pix_artoolkit])
|
||||
fi
|
||||
#if test -d "$srcdir/pix_artoolkit"; then
|
||||
# AC_CONFIG_SUBDIRS([pix_artoolkit])
|
||||
#fi
|
||||
|
||||
## pix_drum (Jaime Oliver)
|
||||
#if test -d "$srcdir/pix_drum"; then
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
AUTOMAKE_OPTIONS = foreign
|
||||
ACLOCAL_AMFLAGS = -I $(top_srcdir)/src/m4
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src -I/usr/include/ImageMagick
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src -I/usr/local/lib/
|
||||
EXTRA_DIST =
|
||||
|
||||
extradir=$(libdir)/pix2jpg
|
||||
|
@ -12,7 +12,7 @@ dist_extra_DATA += pix2jpg-help.pd
|
|||
|
||||
## some default flags
|
||||
pix2jpg_la_CXXFLAGS =
|
||||
pix2jpg_la_LDFLAGS = -L/usr/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/lib/X11 -module -avoid-version -shared -shrext .@GEM_RTE_EXTENSION@
|
||||
pix2jpg_la_LDFLAGS = -L/usr/local/include/ImageMagick -Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/lib/X11 -module -avoid-version -shared -shrext .@GEM_RTE_EXTENSION@
|
||||
if WINDOWS
|
||||
pix2jpg_la_LDFLAGS += -no-undefined
|
||||
endif
|
||||
|
@ -26,7 +26,7 @@ pix2jpg_la_LDFLAGS += @GEM_ARCH_LDFLAGS@
|
|||
|
||||
# special flags for building externals
|
||||
pix2jpg_la_CXXFLAGS += -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -pthread .@GEM_EXTERNAL_CFLAGS@
|
||||
pix2jpg_la_LIBADD += -L/usr/lib -lMagick++ -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljpeg -llqr-1 -lglib-2.0 -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl -L$(top_builddir) @GEM_EXTERNAL_LIBS@
|
||||
pix2jpg_la_LIBADD += -L/usr/local/lib/ImageMagick -lMagick++ -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljpeg -llqr-1 -lglib-2.0 -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl -L$(top_builddir) @GEM_EXTERNAL_LIBS@
|
||||
|
||||
# convenience symlinks
|
||||
## uha, this is ugly
|
||||
|
|
|
@ -1,30 +1,16 @@
|
|||
////////////////////////////////////////////////////////
|
||||
// pix2jpg v0.01
|
||||
// pix2jpg v0.02
|
||||
// External for Gem and Pure Data to convert an image to jpg and send it
|
||||
// via Unix Domain Sockets
|
||||
// Compiled and tested in Ubuntu Precise
|
||||
// (c) 2012 Santi Noreña. puremediaserver@gmail.com
|
||||
// via Unix Domain Sockets.
|
||||
//
|
||||
// GEM - Graphics Environment for Multimedia
|
||||
// (c) 2012-2013 Santi Noreña. librediaserver@gmail.com
|
||||
//
|
||||
// zmoelnig@iem.kug.ac.at
|
||||
//
|
||||
// Implementation file
|
||||
//
|
||||
// Copyright (c) 1997-1999 Mark Danks.
|
||||
// Copyright (c) Günther Geiger.
|
||||
// Copyright (c) 2001-2011 IOhannes m zmölnig. forum::für::umläute. IEM. zmoelnig@iem.at
|
||||
// Copyright (c) 2002 James Tittle & Chris Clepper
|
||||
// For information on usage and redistribution, and for a DISCLAIMER OF ALL
|
||||
// WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution.
|
||||
// GPL License.
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
|
||||
#include "pix2jpg.h"
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include "m_pd.h"
|
||||
//#include "s_stuff.h"
|
||||
|
||||
#define SOCK_PATH "/tmp/pmspipe"
|
||||
|
||||
CPPEXTERN_NEW_WITH_ONE_ARG(pix2jpg, t_symbol *, A_DEFSYM);
|
||||
|
@ -42,8 +28,8 @@ pix2jpg :: pix2jpg(t_symbol *s)
|
|||
m_automatic(false),
|
||||
m_layer(0)
|
||||
{
|
||||
post("pix2jpg v0.01 Convert pix to jpeg and send to Unix Local Socket");
|
||||
post("(c) 2012 Santi Noreña puremediaserver@gmail.com");
|
||||
post("pix2jpg v0.02 Convert pix to jpeg and send to Unix Local Socket");
|
||||
post("(c) 2012-2013 Santi Noreña libremediaserver@gmail.com");
|
||||
post("GPL License");
|
||||
outlet1 = outlet_new(this->x_obj, 0); // Saca todos los canales mediante una lista
|
||||
// Init the Unix Socket
|
||||
|
|
|
@ -2,16 +2,10 @@
|
|||
pix2jpg v0.01
|
||||
External for Gem and Pure Data to convert an image to jpg and send it
|
||||
via Unix Domain Sockets
|
||||
Compiled and tested in Ubuntu Precise
|
||||
(c) 2012 Santi Noreña. puremediaserver@gmail.com
|
||||
|
||||
GEM - Graphics Environment for Multimedia
|
||||
Copyright (c) 1997-1999 Mark Danks. mark@danks.org
|
||||
Copyright (c) Günther Geiger. geiger@epy.co.at
|
||||
Copyright (c) 2001-2011 IOhannes m zmölnig. forum::für::umläute. IEM. zmoelnig@iem.at
|
||||
For information on usage and redistribution, and for a DISCLAIMER OF ALL
|
||||
WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution.
|
||||
|
||||
(c) 2012-2013 Santi Noreña. libremediaserver@gmail.com
|
||||
|
||||
GPL License.
|
||||
-----------------------------------------------------------------*/
|
||||
|
||||
#ifndef _INCLUDE__GEM_PIXES_pix2jpg_H_
|
||||
|
@ -28,6 +22,7 @@
|
|||
#include <sys/un.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include "m_pd.h"
|
||||
|
||||
using namespace Magick;
|
||||
/*-----------------------------------------------------------------
|
||||
|
@ -35,16 +30,16 @@ using namespace Magick;
|
|||
CLASS
|
||||
pix2jpg
|
||||
|
||||
Convert a image to raw RGB and outputs in a list
|
||||
Convert a image to jpgw and outputs in a Unix Domain Socket
|
||||
|
||||
KEYWORDS
|
||||
pix
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
"bang" - do write now
|
||||
"bang" - Process next image
|
||||
|
||||
outlet : The list of raw data.
|
||||
outlet :
|
||||
-----------------------------------------------------------------*/
|
||||
class GEM_EXPORT pix2jpg : public GemPixObj
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue