compile problems with exifcomment
Added by Philip P 103 days ago
Greetings. After much gnashing of teeth and banging of my head I am desperately in need of advice.
I am using Ubuntu Jaunty 9.04.
I used the Ubuntu Synaptic pack manager to download, unpack and install the files for Exiv2.
$exif mypic.jpg shows EXIF data fine.
Then I tried to compile exifcomment.cpp using g++ as a compiler with the following errors:-
user@usermaster:~/exifcomment$ g++ -Wall -pedantic exifcomment.cpp -o comment
/tmp/ccdP2xrU.o: In function `main':
exifcomment.cpp:(.text+0x116): undefined reference to `Exiv2::ImageFactory::open
(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
exifcomment.cpp:(.text+0x30b): undefined reference to `Exiv2::ExifData::operator[]
(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
exifcomment.cpp:(.text+0x31c): undefined reference to `Exiv2::Exifdatum::operator=
(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
These are located at:-
(there are other errors but very similar to the above)
I also tried to compile from the exifcomment.cpp source code using
'./configure'
' make'
sudo make install
All above 'appeared' to work
'clean install' never started to run
I am totally lost and would be so very very grateful for your help.
Thanking you,
Bill
Replies
RE: compile problems with exifcomment - Added by Andreas Huggel 103 days ago
Hi Bill,
You're almost there as far as I can tell. Add -lexiv2 to the g++ command in order to link the comment program with the exiv2 library, which should provide all those currently missing references. Does it compile now?
Regards,
Andreas
RE: compile problems with exifcomment - Added by Philip P 97 days ago
Andreas so many thanks.
I am still coming to terms with the total concept but it really is amazing.
Adding -lexiv2 did indeed allow the compile to complete without any errors.
Thank you. Thank you. Thank you.
I can now 'exif mypic.jpg' for a listing of EXIF data.
I can 'exif -e exif.jpg' to create a thumbnail.
I can 'exiv2 -m cmd.txt mypic.jpg' and add a comment.
This is a learning curve ..plus I am in my 70's.
I hope to be able to soon:-
automate rounding of image corners.
alter image size on the fly.
rotate images.
But I mainly now have to learn how to write simple batch programs to automate the above
so that non-skilled people can perform the above tasks too.
Currently they are command line driven from Ubuntu using syntax.
(previously I thought syntax was that tax paid by a house of ill-repute)
It is so very interesting and stimulating and thank you so much for your incredible efforts
in producing such fine work.
Bill Grates
(p.s. I must have a chat with the guys at Redmond)
RE: compile problems with exifcomment - Added by Robin Mills 97 days ago
Philip
You're never too old to learn. Well done to persevere - that's very impressive. Building code and working with source can be very daunting.
exiv2 is a library to manipulate the meta-data. So it doesn't do image manipulation such as resizing and rounding corners. However, the application Phatch (which uses exiv2) can do those things and creates scripts for non-skilled people. You'll probably find it useful. Phatch is very easy to install with the package manager on Ubuntu 9.10 - you might need to build from source for 9.04 (I don't remember). Let me know if you have any difficulty getting it installed and working for you.
Robin
RE: compile problems with exifcomment - Added by Andreas Huggel 96 days ago
This is a learning curve ..plus I am in my 70's.
Cool! Shows that age doesn't matter
I hope to be able to soon:- automate rounding of image corners. alter image size on the fly. rotate images.
As Robin said, this functionality is not available in exiv2. You can do that with an image editing application, but if you're looking for a powerful commandline solution or a library to use from your own program, ImageMagick might just have what you need: http://www.imagemagick.org/script/index.php
Andreas