[SOLVED] How to install g'mic plugin for gimp on Slackware 14.2 KDE 64 bit?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to install g'mic plugin for gimp on Slackware 14.2 KDE 64 bit?
Hi All,
Still working to customize my new Slackware and am facing problem as in the thread title.
I have been downloading the 64 bit plugin from: http://gmic.eu/gimp.shtml
According with the description, it needs the following dependences:
- libfftw # already installed
- libfftw_threads # no idea where I can get it
- libpng # already installed
- zlib # already installed
The plugin simply does'nt work (does'nt compare on the Gimp menu); is because the absence of that "libfftw_threads", I suppose.
Please, do anyone know the solution?
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,154
Rep:
fftw is part of the standard Slackware installation.
Quote:
PACKAGE NAME: fftw-3.3.4-x86_64-1.txz
PACKAGE LOCATION: ./slackware64/l
PACKAGE SIZE (compressed): 2252 K
PACKAGE SIZE (uncompressed): 8650 K
PACKAGE DESCRIPTION:
fftw: fftw (Fastest Fourier Transform in the West)
fftw:
fftw: FFTW is a free collection of fast C routines for computing the
fftw: Discrete Fourier Transform in one or more dimensions. It includes
fftw: complex, real, symmetric, and parallel transforms, and can handle
fftw: arbitrary array sizes efficiently. FFTW is typically faster than
fftw: other publicly-available FFT implementations, and is even
fftw: competitive with vendor-tuned libraries.
fftw:
fftw: Homepage: http://www.fftw.org/
fftw:
@ cwizardone: - Hi! - Yes please, being g'mic not working, I have been removing that one and installing "fftw" from source. Being g'mic still not working, I have been removing the one installed from source and reinstalling the original "fftw" (by "slpkg" from "slack" repository).
@ bassmadrigal: - Hi! - I did after reading your kind answer and this is the output:
Quote:
bash-4.3$ gimp
/home/dominum/.gimp-2.8/plug-ins/gmic_gimp: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
Based on your error message, my guess is that you're using pre-compiled binary (I can't visit the plugin's site at work due to it being blocked). Unfortunately, if that's the case, it seems that was compiled with a system containing libpng-1.2, where Slackware includes libpng-1.6, so it's throwing that error. If they have the source available on the site, try downloading and compiling that.
@ bassmadrigal: - Thanks for your suggestion; I downloaded the source but I give up. Compilation requires installation of the following packages which I don't see in the Slackware repository:
- git # already installed
- build-essential
- libgimp2.0-dev
- libcv-dev
- libopencv-dev
- libhighgui-dev
- libcurl4-openssl-dev
- libfftw3-dev
Quote:
Instructions for compilation from source (from G'MIC page):
The source code of G'MIC is hosted on a git repository with public access. Accessing it via git ensures you get the latest code available, and will ease the source updates as well. Here are the instructions to compile G'MIC and ZArt on a fresh installation of Debian (or Ubuntu). It should not be much harder for other distros. First you need to install all the required tools and libraries:
Be mindful, what many people show as required packages use the names for Debian based distros. They won't always match up with the real program names. Also, many distros will separate out the dev portions of a package to have multiple packages for a single program (the required files to run in the main package and then the files needed to help compilation in another... sometimes they'll even put docs in another package). Slackware doesn't do that. If you install the single fftw package provided by Slackware, you get everything you'd get by installing libfftw3-bin, libfftw3-dev, libfftw3-long3, libfftw3-double3, libfftw3-quad3, and libfftw3-single3 in Debian/Ubuntu.
As far as I can tell, libcv-dev, libopencv-dev, and libhighgui-dev are all satisfied by installing opencv from SBo. libfftw3-dev is satisfied by the stock Slackware package fftw. I believe libcurl4-openssl-dev is part of the curl package and libgimp2.0-dev should be satisfied by the gimp package, both of which are part of a full Slackware install. Finally, build-essential is not needed as Slackware contains everything it needs for that.
So, I believe all you should need to install to be able to compile g'mic is opencv from SBo. And that doesn't have any dependencies, so it should be a simple install. If you haven't used SBo before, check out their HOWTO page for details on what to do.
just build the source ( i have been doing that since it was called "graycstoration")
about the only thing to look out for is OpenCV -- you DO NOT NEED unless you are using gmic with a web camera
and zart disable these in the Makefile unless you NEED them
@ bassmadrigal: - I don't have words to say "thank you!" to you. INSTALLED
It's not the usual process as:
$ ./configure
$ make
# make install
# make clean
Hereby I report the process thinking maybe useful for someone else:
1 - Download/install "opencv" package
2 - Download "GMIC" source from: https://github.com/dtschump/gmic
3 - Unpack it
4 - $ cd /gmic...etc./src
$ make gimp # Compiling only "GMIC - Plugin" (write only "make" if wishing to compile everything but watch: can get error and needing more steps)
5 - Move the file "gmic_gimp" to /home/username/.gimp-2.8/plug-ins/ (avalaible only for the user)
Glad you got it working! If you can work those steps into a SlackBuild, you could then submit it to slackbuilds.org (commonly called SBo) and make this easily available to other people. Plus it allows you to contribute back to the community.
If you need help with creating a SlackBuild, SBo has several templates that could help you get started. As always, we could also provide help on the matter. But, most simplistically, you could remove most of the stuff from the SlackBuild, adjust the configure/make/make install lines to match your commands, then have it packaged up in a nice installable Slackware package
@ bassmadrigal: - Hi! - I will try to create a SlackBuild, will go looking into SBo for templates because I never did it.
Really wishing to be useful for Slackware Community.
EDIT (July - 11.2016)
@ bassmadrigal @ willysr: - I gone looking to SlackBuilds.org templates and I saw the process needing huge commitment. I say the truth: am not in the mood to do that now.
I have been trying "the short way", downloading and changing willysr's gimp-gap script. Final result: it does'nt work. I sent it to a serious Slacker friend of mine asking him to look at it; he did'nt get time to do it till now. So, another short way coming to my mind: if anyone needing the "gmic_plugin for GIMP" file (64 bit), just inbox me asking for it and I will send the file as attachement by e-mail
Last edited by Bourbon; 07-12-2016 at 07:49 AM.
Reason: Adding data
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.