[SOLVED] How do I compile ufraw on Kubuntu 15.04 64-bit?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I've been trying to compile ufraw-0.22 on my Kubuntu 15.04 system, but have run into a file not found error that I don't know how to properly fix. ./configure runs fine with no errors. make errors out with a file not found message:
Since that file IS present on my system, I assume make is looking in the wrong place. I tried editing dcraw.cc to point to the correct location, but that led to further errors of the same type.
Can you advise the proper way to handle this situation?
Using the package manager to install the software is not a viable solution: the ufraw package available in ubuntu's repositories is outdated and not compatible with current camera models. Ubuntu packages of newer versions of ufraw apparently do not exist.
$ pkg-config --cflags glib-2.0
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
$ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
bash: -I/usr/include/glib-2.0: No such file or directory
However, /usr/include/glib-2.0 does exist. And most of the relevant files are under /usr, not /usr/local. BTW, that was after I used configure with the --prefix=/usr flag
see man pkg-config, it will not set anything for you, but "used to retrieve information about installed libraries in the system"
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include are not commands but flags to be used with a compiler.
The --prefix=/usr of configure is not used to specify those (include) directories. Check configure --help about the available options
I would say you need to rerun configure and probably show us the logfile created.
it looks like a lot of variables were cached, so configure "remembered" some previous values. You need to remove the cache file first - or download the source tarball again and start over.
I'm confused as to why pkg-config is pointing to "/usr/local".
I don't know if I'm looking at the correct version of glib for your dist (libglib2.0-dev_2.44.0-1ubuntu3_amd64.deb) but the install files should be similar.
The package "glib-2.0.pc" file points to "/usr" which AFAIK is the standard location:
Have you compilled glib yourself in the past and installed it in "/usr/local"?
Could there be two "glib-2.0.pc" files on your machine? Please post the output of:
the first appears to be specific to Mono under wine
the last was in with a bunch of *.pc files from 2008, so although I don't recall compiling glib myself, I may have, or something else pulled it in. I deleted all those old files and the cache file pan64 suggested. make now completes as does sudo make install.
ufraw now seems to be working although my Nikon D5300 still doesn't appear on the camera list despite the ufraw website stating that it should be. Some of my other software still doesn't import the raw files properly, so I may have to look at dcraw itself. Thanks for your help!
When you open a raw photo file with ufraw, you can click on a little lens icon to load particulars of the camera and lens used.
Supposedly one can select the camera model from a pop-up list, and then identify the lens so that ufraw can apply distortion corrections. Despite the fact that ufraw 0.22 is supposed to now support the D5300, it does not appear on the list, and the program tries to select the wrong lenses. That's an issue quite seperate from the compile problems I was having, and one that I should probably take up with the ufraw developers. It is, however, the reason I was trying to compile ufraw 0.22 in the first place - it claims to support several more cameras than the versions in the repositories.
As an aside, it turns out that part of the problem that led to my compile attempts has nothing to do with ufraw per se, but with dcraw, which ufraw uses to do the initial load of the picture files. The D5300 can save images at either 12-bit or 14-bit colour depth. I found a reference that stated that dcraw mishandles the D5300's 12-bit files, but works fine with it's 14-bit files, and that that issue is being worked on. I've reset my camera accordingly, and ufraw is now importing the images correctly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.