LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-07-2016, 09:14 AM   #1
Bourbon
Member
 
Registered: Dec 2011
Location: Gaborone Botswana
Distribution: Linux-Mint 18.3 amd64 Cinnamon
Posts: 108

Rep: Reputation: Disabled
Question 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?

Thank you for reading
 
Old 07-07-2016, 09:22 AM   #2
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,089

Rep: Reputation: 7263Reputation: 7263Reputation: 7263Reputation: 7263Reputation: 7263Reputation: 7263Reputation: 7263Reputation: 7263Reputation: 7263Reputation: 7263Reputation: 7263
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:
Is this the one you need?
 
Old 07-07-2016, 09:22 AM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
The package fftw contains libfftw_threads.

Have you tried opening Gimp from the commandline to see if there's any errors about this plugin?
 
Old 07-07-2016, 09:50 AM   #4
Bourbon
Member
 
Registered: Dec 2011
Location: Gaborone Botswana
Distribution: Linux-Mint 18.3 amd64 Cinnamon
Posts: 108

Original Poster
Rep: Reputation: Disabled
@ 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

(gimp:2052): LibGimpBase-WARNING **: gimp: gimp_wire_read(): error
 
Old 07-07-2016, 10:02 AM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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.
 
1 members found this post helpful.
Old 07-07-2016, 11:10 AM   #6
Bourbon
Member
 
Registered: Dec 2011
Location: Gaborone Botswana
Distribution: Linux-Mint 18.3 amd64 Cinnamon
Posts: 108

Original Poster
Rep: Reputation: Disabled
@ 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:

$ sudo apt-get install git build-essential libgimp2.0-dev libcv-dev libopencv-dev \
libhighgui-dev libcurl4-openssl-dev libfftw3-dev


Then, get the G'MIC source from the git repository:

Last edited by Bourbon; 07-07-2016 at 02:24 PM. Reason: Adding data
 
Old 07-07-2016, 11:20 AM   #7
Bourbon
Member
 
Registered: Dec 2011
Location: Gaborone Botswana
Distribution: Linux-Mint 18.3 amd64 Cinnamon
Posts: 108

Original Poster
Rep: Reputation: Disabled
Hoping G'MIC Slackware package comes out soon
 
Old 07-07-2016, 11:57 AM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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.
 
1 members found this post helpful.
Old 07-07-2016, 11:59 AM   #9
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by Bourbon View Post
Hoping G'MIC Slackware package comes out soon
In the meantime, you can try the (ugly) workaround below :

1. install libpng from slackware-14.1 in /opt/libpng12

Code:
su -
$ wget ftp://ftp.lip6.fr/pub/linux/distributions/slackware/slackware64-14.1/slackware64/l/libpng-1.4.12-x86_64-1.txz

$ mkdir /opt/libpng12
$ ROOT=/opt/libpng12 installpkg /home/guest2/libpng-1.4.12-x86_64-1.txz
2. start gimp with LD_LIBRARY_PATH pointing to /opt/libpng12/usr/lib64 :

Code:
$ LD_LIBRARY_PATH=/opt/libpng12/usr/lib64/:$LD_LIBRARY_PATH gimp
You'll get messages like below, but the plugin seems to work (didn't try much) :
Code:
/usr/lib64/libcurl.so.4: no version information available (required by /home/seb/.gimp-2.8/plug-ins/gmic_gimp)
--
SeB
 
Old 07-07-2016, 02:46 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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

also read and edit the makefile for your system

the make file takes options
so read it
 
1 members found this post helpful.
Old 07-07-2016, 03:49 PM   #11
Bourbon
Member
 
Registered: Dec 2011
Location: Gaborone Botswana
Distribution: Linux-Mint 18.3 amd64 Cinnamon
Posts: 108

Original Poster
Rep: Reputation: Disabled
@ 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)

Link for download and instructions:
http://gmic.eu/download.shtml


@ phenixia2003: - Thank you for your kind concern too.

@ John W: - Yes, please! - I saw your message after completing the process

Best regards to All
 
Old 07-07-2016, 04:54 PM   #12
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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

Either way, glad I could help you figure it out!
 
1 members found this post helpful.
Old 07-08-2016, 10:23 AM   #13
Bourbon
Member
 
Registered: Dec 2011
Location: Gaborone Botswana
Distribution: Linux-Mint 18.3 amd64 Cinnamon
Posts: 108

Original Poster
Rep: Reputation: Disabled
@ 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
 
Old 07-08-2016, 10:35 AM   #14
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
If you are submitting to SBo, it should be placed in a system-wide location, and not in specific user home dir.

Have a look on my gimp-gap script in SBo.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fedora 18 GIMP G'MIC plugin installed but not available to use. nando321 Fedora 3 01-21-2013 08:06 PM
Slackware 14.0 RC1, KDE Changes my mic volume and people can't understand what I say lightkuragari Slackware 1 08-12-2012 02:23 PM
LXer: G'MIC- Great Plugin with a collection of more than 190 filter and effect for Gimp LXer Syndicated Linux News 0 10-06-2010 03:50 PM
gimp install plugin darkleaf Linux - Software 1 03-12-2007 11:34 PM
Slackware 10.1 Gimp-2.2 plugin problem spiroketal Slackware 4 08-10-2005 10:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration