How to package ImageMagick binaries?

My plugin uses ImageMagick's convert and, rather than hassle users with downloading it themselves, I'd like to package it with the plugin. This seems straightforward for Windows since IM provides builds of convert.exe. OSX is not so clear since IM suggests building that from source. I'm not going to ask users to use Homebrew if I can avoid it and I don't want to provide my own build. Any tips from people here about what they've done to package IM tools?
db

My Any File plugin uses ImageMagick's "composite" program, and it is bundled in the plugin distribution, for precisely the reasons you describe.  It was pretty painful for me, not being a Mac programmer, to figure out how to build ImageMagick without shared libraries, so that "composite" was completely self-contained.  Here are my notes on how to do that:
1. Download ImageMagick.tar.gz distribution to /Users/John.  Unpack it by
doing:
    cd /Users/John
    tar xvfz ImageMagick.tar.gz
See http://www.imagemagick.org/script/advanced-unix-installation.php
2. Download the jpegsrc.tar.gz library from:
    http://www.imagemagick.org/download/delegates/
to /Users/John/ImageMagick and unpack it with:
    cd /Users/John/ImageMagick
    tar xvfz jpegsrc.tar.gz
    mv jpegsrc<version> jpeg
3. Configure and build the jpeg library:
    cd jpeg
    ./configure --disable-shared
    make clean; make
4. Download the libpng.tar.gz library from:
    http://www.imagemagick.org/download/delegates/
to /Users/John/ImageMagick and unpack it with:
    cd /Users/John/ImageMagick
    tar xvfz libpng.tar.gz
    mv libpng<verszion> png
5. Configure and build the png library:
    cd png
    ./configure --disable-shared
    make clean; make
6. Configure and build ImageMagick; copy configure.sh to ImageMagick
folder and do:
    cd /Users/John/ImageMagick
    sh configure.sh
    make clean; make
7. Verify that composite is only loading dynamic libraries from /System and /usr/lib:
    otool -L utilities/composite
7. Copy utilities/composite and config/delegates.xml to anyfile.lrdevplugin.
And here's the contents of the "configure.sh" script referenced above:
# Image-magick configure script for configuring with Any File
# --disable-opencl \
./configure \
--disable-installed \
--disable-shared \
--enable-delegate-build \
--prefix=/ImageMagick-6.7.3-7 \
--disable-dependency-tracking \
--with-x=no \
--without-perl \
--with-freetype=no \
--with-jp2=no \
--with-tiff=no \
--with-magick-plus-plus=no \
--with-bzlib=no

Similar Messages

  • How to package/inlcude C++ .exe and .dll files in a Java Web Start App?

    Hello,
    I have a Java Web Start application that runs fine if the application is only 1 .jar file.
    But I have a need to also run C++ .exe and .dll file from my Java application.
    I wonder if someone could please tell me how to package/include C++ .exe and
    .dll files in my Java web start application?
    Thank you and Best Regards,
    Akino

    You need to place the EXE and DLLs inside the jar.
    Java cannot execute them from the jar. They have to be extracted (see Class.getResourceAsStream) from the jar and copyied into the target machine file system, perahps to the temp directory. Now you can execute them using Runtime.exec() or ProcessBuilder.start().
    Edited by: baftos on Jan 14, 2011 6:49 PM

  • How the packaging material is treated  in PGI

    Guru ,
    i have done PGI for a material with a packaging material which consistutes a handling unit .
    ie handling unit= materaial + packaging material .
    when i did PGI , maetrial is shown in the storage location as reduced qty . fine .
    where is the packaging material along the material gone . NO trace of it .in mmbe no qty available
    how the packaging material is treated
    please help , my question is genuine .
    manu

    in mmbe , the packaging material qty is zero. but even though i can do pack it and create a HU . and also done PGI.ow the material is reduced its quantity . but no track of packaging material.
    how the HU  related packaging material works . i have limited knowledge on HU .
    please help me to undersytand . in sap library also not much explanation abt it .
    please help

  • How to package other jar files into one jar?

    How to package other jar files into one jar? How can i get the class in the inner jar file?

    Generally not a good idea. The Java runtime won't be able to load classes from those "inner" jars, you'd have to write your own classloader to do that. It's not a brilliant idea, generally, anyway, since the point of having lots of jars is to keep your application modular. Bundling them all together like that means you have to re-deploy the whole thing to fix, for instance, one small bug in one small library
    If you really want to do this, there's an Eclipse plugin called FatJar, but I urge you to consider whether you really want to do it first.

  • How to package dynamic libraries into bundles

    how to package dynamic libraries into bundles

    ok thank u
    i have other doubt
    i am using tomcatplugin instead of myeclipse plugin
    is tomcat plugin supports jsf or not?

  • How to package an obfuscated swf ?

    I'm not sure how the packager works but it seems to create a new release build and then package it.
    Then, how can I package my own swf file after having it obfuscated ? There is no way to just browse for the swf file I want to have included.
    Thanks in advance. 

    Well, I think I have got the answer, it's pretty easy once you get the info. I really would appreciate some more documentation
    The steps I have followed are:
    - Download the packaging tool from Adobe Developer center:  http://www.adobe.com/devnet/creativesuite.html
    - Make sure you can run Java from the command shell. For Windows I had to add the Java path to my system Java path variable
    - At the command prompt go to the folder where you have unzipped the tool
    - Run
             java -jar ucf.jar -package -storetype PKCS12 -keystore selfcertificate.p12 MyExtension.zxp -C "C:\myprojects\MyExtension\bin-debug" .
    Note:
         - Include final dot ( this includes subfolders)
         - bin-debug should contain the obfuscated swf file
         - selfcertificate.p12 should be replaced by a valid certificate file
         - you will be prompted to input the certificate password
    If something is not correct please let me know, I hope it helps somebody

  • How many package in Java 1.1?

    Do you know, How many package in Java 1.1?

    Idiotic question, so here's an idiotic reply:
    jar tf /path/to/java/lib/rt.jar |\
       egrep -v '^(META-INF|com/sun|sun)' |\
       sed -e 's/\/[^/]*$//' |\
       sort -u |\
       sed -e 's;/;.;g' |\
       wc -lAnd if you change the last wc -l to more, you'll see the actual package names.

  • How to relink Oracle binaries to new OS group assinged to oracle account

    Hello,
    Can someone tell us the steps how to relink oracle binaries to new OS group assinged to oracle account.
    Regards,
    Nikhil Jain

    always post your questions with oracle version and operating name and version.
    refer the link:-
    http://oracle.erkansaka.org/2008/04/how-to-change-oracle-dba-group-in-unix.html
    http://dbaforums.org/oracle/index.php?showtopic=7279
    Thread: "change the DBA group" in a windows environment
    "change the DBA group" in a windows environment

  • How many packages do you have installed?

    The title really says it all here. How many packages are currently installed on your Arch box? I saw a thread about this awhile back but couldn't locate it with the new search.
    Mine: Between 250-300 with a several day old fresh install.

    515 packages:
    pacstats (in french) wrote:
    |       pacstats 0.4    (archlinux.fr)      |
    Nombre total de paquetages installes:  515
    Nombre de paquetages installes explicitement:  406
    Nombre de dependances installees:  109
    Nombre de dependances oubliees:  0
    Nombre de ignorepkg:  42
    Nombre de noupgrade:  20
    Nombre de holdpkg:  1
    Nombre de depots utilises:  6
    Liste des depots (dans l'ordre de priorite):
    archlinuxfr(34), wain(4), unstable(9), current(280),
    extra(130), community(23),  Local ou AUR (32)
    Place occupee par les paquetages installes: 1597Mo                               
    Place occupee par les fichiers telecharges:  474M
    Place occupee par les sources telechargees:  168K
    pacstats is available here:
    [archlinuxfr]
    Server = http://www.archlinux.fr/os/i686

  • How to relink Oracle Binaries on Windows platform

    Hi Gurus,
    How to relink Oracle Binaries on Windows platform?
    Database version - 11.1.0.7
    Application version - 12.1.3
    Thanks,
    Khan

    Hi Khan,
    Running AD Relink
    Run AD Relink as follows.
    1. Set the environment.
    You must set the environment to indicate the location of the configuration
    parameters that define your system. This task is common to many AD utilities. See
    Setting the Environment in Chapter 1.
    2. Relink files.
    Run AD Relink with the following command:
    UNIX:
    S adrelink.sh force=n "ad <executable name>"
    Windows:
    C:\> sh adrelink.sh force=n "ad <executable name>"
    Additional Information: See Relinking AD Executables in Oracle
    Applications Maintenance Procedures for complete instructions for
    running this utility with the various command line arguments.Taken from R12 maintenance utilites documentation PDF.
    Thanks
    Edited by: EBSDBA on Sep 14, 2011 1:14 PM

  • Pacman - hot to check how orphan package got installed?

    Hello!
    Today I run:
    pacman -Qtd
    to check what orphans I have in my system. Normally, I would not care, but some of them take really long to update, so I'd like to get rid of them. However, to ensure myself, I'd like to know how these packages got into the system. pacman -Qi shows only that it was installed as dependency, but not which dependency. Is there any way to check it?

    A smarter way may be running 'pacman -Rs foo' instead of 'pacman -R foo' ;-P

  • How to packaging javaFX with ICON

    Hi
    I have successfully generated native application for javaFX, however I don't know how to package application ICON to native package.
    I already able to see icon when I run it in netbeans.
    Regards,
    Hua Jie

    Look at the output from the javafxpackager call - it prints all kinds of helpful messages that tell you how to customize (search for the word icon). On Mac it told me to put add the image: package/macosx/MyApp.icns. On windows it told me to add the image package/windows/MyApp.ico. I don't know about linux.
    I've been running javafxpackager from the command line - I find that the package directory needs to be in the same directory I run from (though maybe I just need to set the -classpath arg).

  • How to package an application as a JAR file?

    I want to package an executed JAR file,how to do?
    "jar cvf jar_name class_name"? But it can't run,:( help me.
    Thanks in advance.

    Suppose your main class call MyMainClass. You need to create a file called "mymanifest". In the mymanifest file, you need to include following line:
    Main-Class: MyMainClass
    Then you need to jar your jarfiles by:
    jar cvfm classes.jar mymanifest -C foo/ .
    After this, you can run your jar file by java -jar classes.jar.

  • How to package XI/PI Interfaces in a product ?

    Hi experts !
            I´m working at a company that have a project to integrate SAP ECC with a software that they sold, and they want to turn the interfaces developed in a product to be sold to their customers(that use SAP and the software that they sold), and I´m seeking for the way to achieve this, package interfaces in a product.
            I´m reading a lot about export XI interfaces in .tpz files and I think that this may be the way but I have some doubts like:
            - The XI/PI version installed on customer may be a problem ?(here I´m working on PI 7.0) - About this question, reading several questions in SDN, I understood that exports from PI 7.0 are accepted from XI 3.0, so, I think that the minimum configuration at the customer to support the product will be XI 3.0. Is this correct ?
            - The SAP ECC version installed on customer may be a problem ?(here we have ECC 6.0) - I think that the RFC functions(or proxy) can be imported inside the software component of the software sold by the company where I work, so in design(Integration Repository), I think that the version of ECC will not be a problem but, what about the configuration(Integration Directory) ? If I export the configuration of the interfaces, the tpz file(s) will be have data about Business System created on my working environment, that have a specific version. If I import this in a customer with another version of SAP ECC, this will work ? If not, there is a way to change the .tpz file to the ECC data inside it to be compliant to the ECC used in the customer ? Or the only way is to do the configuration of these interfaces by hand in each customer ?
            - If the question above solved without to make the configurations at customers by hand, there is a way to make the Business System in the configuration to be the same already used in a customer ? - I supposed to be installing this product in a customer that already have XI/PI installed and already have interfaces between ECC and another systems, in this case, ECC will be in configuration(ID) as a business system(for example, in customer, ECC is a business system named ECC_DEV, and here in my company, the business system name is MED, that is the system id of ECC). There is a way to make my export files(tpz), from my scenario, to use the same business system name already in use in the customer when I import the tpz ? About this, I´m thinking if there is some way to solve this using transport targets, what do you think ?
            At this moment these are my doubts, as you can see, major doubts are about the configuration(ID) exports and how to adhere them to the customer scenarios.
            Thank you in advance, and best regards,
            Wilson

    Hi,
    Some points to be noted are
    1. Check for service pack than version.  check the pi7.0 and xi3.0 SP .  There are some measurements which will tell u that this service pack is equivalent for this versio serice pack.
    2. The SLD must be configured again in the new system,once the business service can be exported as my my knowledge
    3. All the RFC's and IDOCs can be imported, but make sure to reflect the same in ECC system also.  Eg., Custom Idocs
    4.Also check the version compatiablity
    5.I would suggest you to check on interface to interface rather than dump everthing in single go.
    6. Export in different files and configure all the missing things accordingly. That will shorten ur problem solving time

  • How to Package Photoshop Extension for cs4/cs5 with manifest.xml

    Hello,
    tl;dr: How can I package my extension for both cs4 and cs5 in a way that respects the extension's window geometry?
    I have a panel that specifies window geometry in it's manifest.xml. When the panel is installed into Photoshop's panels/ folder, the geometry gets ignored, so I'm trying to package the panel as an extension to be installed via the Extension Manager. I have run into different problems for each CS version. I've read quite a few pdfs about the Extension Manager, UCF command line packaging, etc, and have not been able to find a solution that works for both platforms.
    My understaning
    My trial and error research has lead me to understand that the extension's files must eventually end up in the (mac) /Library/Application Support/Adobe/<CSversion>ServiceManager/extensions/ directory. In CS5, if the extension's folder contains a manifest.xml file (ex: /extensions/GuideGuide/CSXS/manifest.xml) that specifies window geometry, Photoshop will respect that window geometry when the panel opens. However, in CS4, this is not enough. From my tests, Photoshop CS4 doesn't seem to do anything with the manifest.xml file. Instead, I had to modify /Library/Application Support/Adobe/CS4ServiceManager/ServiceManifest.xml and add my extension to it's contents. Once I did this, Photoshop CS4 launches my panel and respects it's window geometry.
    The problem with this is that it's a manual installation. I can't ask my users to dig around in their system files to install my panel. In addition, since it's unsigned using this method, it won't work if they're not flagged for debugging. I've started exploring using the Extension Manager, but I have run into problems that I cannot find ansers in the few pdfs about packaging that I've been able to find.
    CS5 Problems
    If I use the UCF command line tool, I can package and sign my file. It installs fine and does what I want. However, using this method, I haven't been able to find a way to specify the author and description that shows up in the Extension Manager.
    CS4 Problems
    The UCF command line tool doesn't appear to make packages that can be installed by CS4, and I haven't been able to find one that is compatable. I've had to result to using the Extension Manager to package my extension based on a .mxi file. The problem I have here is that installing files this way limits me to putting them in the /panels directory, which then causes the panel to ignore the indow geometry. Is there a way with an .mxi file to install in the /Library/Application Support/Adobe/<CSversion>ServiceManager/extensions/ directory and modify the /Library/Application Support/Adobe/CS4ServiceManager/ServiceManifest.xml file?
    There must be, because Kuler and other extensions are installed there.
    Thank you SO much for any help you might provide. I've spent weeks trying to get this to work and have run into nothing but dead ends and wild goose chases.

    Your extension is a CSXS extension. For CSXS extension it's introduced in Extension Manager 2.1. (You can download Extension manager 2.1 from http://www.adobe.com/exchange/em_download/em20_download.html)
    In Extension Manager CS2.1 only MXP package is supported. In Extension Manager CS5 CSXS extension must be packaged by ZXP format. So you have to generate two packages for CS4(mxp) and CS5(zxp)
    For CS5, you can use ucf.jar to generate the zxp package.
    For CS4, you have to create an MXI file and package it by Extension Manager 2.1 to mxp package. Here is a sample CSXS mxi file:
    <macromedia-extension
               name="CSXS_TEST_EXTENSION"
               version="1.0.0"
               type="Command"
               requires-restart="true">
              <author name="Macromedia" />
              <products>
                        <product name="Dreamweaver" version="10" primary="true" />
                        <product name="Fireworks" version="10" primary="true" />
                        <product name="Flash" version="10" primary="true" />
                        <product name="" version="11" familyname="Photoshop" primary="true" />
                        <product name="Illustrator" version="14" primary="true" />
                        <product name="CSXS" version="1" />
              </products>
              <description>
              <![CDATA[
              CSXS extension sample.
              ]]>
              </description>
              <ui-access>
              <![CDATA[
              Extension Name: kuler
              ]]>
              </ui-access>
              <license-agreement>
              <![CDATA[
              ]]>
              </license-agreement>
              <files>
                        <file source="test_extension" destination="" />
              </files>
    </macromedia-extension>

Maybe you are looking for

  • How can I use this arrray?

    I have written arguemnts to add severals shapes to the scene(by using createVrmlFromString()), all the shape nodes stored in shapeArray[], now I'd like to use another array(b[]) to get the index of each shape nodes which has been added to the secne,

  • .gif Images saved as static images, not animated

    Using the most recent version of Firefox mobile on Android 4.1.2 on a Samsung Galaxy S3. I can download animated .gif images via Firefox to my phone and the saved file will display as a static image. If I download an animated .gif image with the prop

  • Close other tabs option freezes computer then tabs will not close at all

    When I have multiple tabs open and I click the close other tabs button The computer freezes for about 1 minute and when it is unfrozen all the tabs are still there and when you click to close them nothing happens. This is a daily happening and extrem

  • While clearing through F-54 system throws error No downpayment exist

    While clearing through F-54 system throws error : No downpayment exist. But I have checked in the Downpayment account, A/P account and Customer Line item and the entry exists. Customization for Downpayment made also correct. All the fields are correc

  • Xslt in jdev

    Hi, I read an old thread about this : Integrated XSLT in 10g , but I think it is unhandy to rename an xml file just because the extension doesn't fit. It would be really neat if I could choose an xml file, select xlst transformation from the menu, pi