[SOLVED] LightZone install in Slackware 14.2 64bit
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.
But I downloaded a source tarball version 4.1.7 and as stated in BUILD-Linux.md there are a lot of dependencies, furthermore the build process isn't so obvious (at least to me).
So my suggestion is to find a replacement. It could not have the same features but I am a happy user of fotoxx.
It seems you'd just need apache-ant and jdk from SBo, although, it looks like javahelp2 might need to installed manually, however, it's possible it is an optional dependency (for jhindexer, whatever that is). I believe everything else should be provided with a full Slackware install (liblcms2 is fulfilled by the lcms2 Slackware package... I had to do some minor digging for that).
Quote:
Originally Posted by Didier Spaier
furthermore the build process isn't so obvious (at least to me)
If you look at the PKGBUILD file they include, you can break down the commands they run on Arch. Essentially, it would break down to:
Code:
# Compile the program
ant -f linux/build.xml jar
# Copy the libs to the correct directory
mkdir -p /usr/lib{64}/lightzone
cp -pH linux/products/*.so /usr/lib{64}/lightzone
# Copy the java files over
mkdir -p /usr/share/java/lightzone
cp -pha lightcrafts/products/dcraw_lz \
lightcrafts/products/LightZone-fork \
linux/products/*.jar /usr/share/java/lightzone
# Create the menu entry
mkdir -p /usr/share/applications
install -m 644 linux/products/lightzone.desktop /usr/share/applications/
cp -pHR linux/icons /usr/share/applications/
# Copy the binary (or possibly script) to /usr/bin/
mkdir -p /usr/bin/
install -m 755 "linux/products/lightzone /usr/bin/
@OP, if you want to create a Slackware package, add a temporary directory in front of all of those locations and then you can run the makepkg command from that directory to create the package (which allows for easy removal). It wouldn't be too difficult to turn this into a SlackBuild to allow others to build it. If desired, you could do that and then submit it to slackbuilds.org (SBo) and become the maintainer of the package.
Notwithstanding the excellent advice from the previous responses...
I installed lightzone-4.1.5 on current back in May last year. I went to see how I did it, and in my build folder is the rpm I downloaded and the txz package I created. So I must have used rpm2txz. I looked in /var/log/packages and its the only package I installed on that date, so you shouldn't have too much to do.
Slackware current has gone through a lot of changes since then plus I am now running Alien's kde5, but the program still runs perfectly, so it must be pretty robust (ie few dependencies).
Sattva, truth is I don't remember. Have a go, the the beauty of a slackpkg install is that is easy to remove cleanly if it doesn't work out.
Also bear in mind that later versions could have introduced more dependencies.
I have other graphics packages installed such as lensfun and dcraw, which if you are into photography, you will want sooner or later, so would recommend.
You will need openjdk-6-jdk or later installed according to the version I installed.
If you use rpm2tgz, you will not be building the package as such, but installing a precompiled binary.
That's not necessarily a problem, but it's worth understanding the difference.
After my previous post I have to admit to being slightly surprised that the lib installs went into /usr/lib and not /usr/lib64, but it worked for me, so give it a try.
rpm2tgz is a bit hit and miss, but it worked for me in this instance.
Thank you tobyl for the detailed feedback! Its appreciated.
I got LightZone working...finally!!
Thanks to Doug, one of the maintainers of the LightZone project. He provided step by step instructions which i will paste below:
Code:
You can install and run lightzone on Slackware without compiling it yourself:
1. Install the latest version of jre (java runtime environment) or jdk (java development kit) from http://www.slackware.com/~alien/slackbuilds/openjdk/pkg64/14.2
2. Download lightzone-4.1.7-75.1.x86_64.rpm (or the latest version) for opensuse-13.2 through this website.
3. Run rpm2tgz lightzone-4.1.7-75.1.x86_64.rpm to generate lightzone-4.1.7-75.1.x86_64.tgz and install using installpkg.
4. You may be missing javahelp-2.0.05.jar. (You can find a copy by googling the file name.) Copy into /usr/share/java/lightzone/.
5. You may also be missing jh.jar. (You can find a copy by googling the file name.) Copy into /usr/share/java/.
To complete the install process, you need to re-boot the system and then run LightZone!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.