Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18
Hello all, I'm new to linux and my programming skills are weak. Ubuntu 9.10 is the running system. I need to install a library (LibRaw-0.8.5) from source code as the ...
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    7

    Question Help needed to install library

    Hello all,

    I'm new to linux and my programming skills are weak. Ubuntu 9.10 is the running system.

    I need to install a library (LibRaw-0.8.5) from source code as the version I need is not present in the repositories.
    So far, I managed to extract the .tar.gz, but now I have no clue how to install it and make it work with DigiKam...
    I tried the sudo make install stuff, but it seems I don't do it right or what

    Please help me.

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I tried the sudo make install stuff, but it seems I don't do it right or what
    Hello and welcome. For anyone to assist, we need to know far more specifically what you have tried.

    First thing, do you have the basic build tools?
    Code:
    sudo apt-get install build-essential
    For future reference, when asking a question, always include 1) the specific command used; 2) the exact output of the command.

    So you might say, "I downloaded LibRaw-0.8.5.tar.gz from this site. Extracted it from nautilus. Opened a terminal to the extracted folder and tried"
    Code:
    reed@reed-laptop ~/Downloads/LibRaw-0.8.5 % make
    If that is where the error was, then post the output. Otherwise note it built fine and then the next step:

    "I did"
    Code:
    sudo make install
    "And there error message was"
    Code:
    Danger Mouse error #5
    Obviously that would be an unlikely message, but whatever the error was.

    (By the way, I highly recommend using checkinstall in place of make install, especially if you're messing with libraries.)

  3. #3
    Just Joined!
    Join Date
    Jan 2010
    Posts
    7
    Ok thanks.

    I wrote it like that, because I randomly write it in the terminal

    It seems that I have the build tools
    brontozaver@BrontozaverSuperPower:~$ sudo apt-get install build-essential
    [sudo] password for brontozaver:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    build-essential is already the newest version.
    build-essential set to manually installed.
    The following packages were automatically installed and are no longer required:
    linux-headers-2.6.31-14 kdelibs5-dbg libopenctl0 libqt4-dbg libgtlcore0
    linux-headers-2.6.31-14-generic


    Then. I extracted the file:
    brontozaver@BrontozaverSuperPower:~$ cd ~/Downloads
    brontozaver@BrontozaverSuperPower:~/Downloads$ tar xvfz LibRaw-0.8.5.tar.gz


    then:
    brontozaver@BrontozaverSuperPower:~/Downloads$ cd ~/LibRaw-0.8.5
    bash: cd: /home/brontozaver/LibRaw-0.8.5: No such file or directory
    brontozaver@BrontozaverSuperPower:~/Downloads$ cd ~/Downloads/LibRaw-0.8.5
    brontozaver@BrontozaverSuperPower:~/Downloads/LibRaw-0.8.5$
    brontozaver@BrontozaverSuperPower:~/Downloads$ cd ~/Downloads/LibRaw-0.8.5
    brontozaver@BrontozaverSuperPower:~/Downloads/LibRaw-0.8.5$ sudo make install
    [sudo] password for brontozaver:
    g++ -c -DLIBRAW_NOTHREADS -O4 -I. -w -o object/dcraw_common.o internal/dcraw_common.cpp
    g++ -c -DLIBRAW_NOTHREADS -O4 -I. -w -o object/foveon.o internal/foveon.cpp
    g++ -c -DLIBRAW_NOTHREADS -O4 -I. -w -o object/libraw_cxx.o src/libraw_cxx.cpp
    g++ -c -DLIBRAW_NOTHREADS -O4 -I. -w -o object/libraw_c_api.o src/libraw_c_api.cpp
    g++ -c -DLIBRAW_NOTHREADS -O4 -I. -w -o object/dcraw_fileio.o internal/dcraw_fileio.cpp
    rm -f lib/libraw.a
    ar crv lib/libraw.a object/dcraw_common.o object/foveon.o object/libraw_cxx.o object/libraw_c_api.o object/dcraw_fileio.o
    a - object/dcraw_common.o
    a - object/foveon.o
    a - object/libraw_cxx.o
    a - object/libraw_c_api.o
    a - object/dcraw_fileio.o
    ranlib lib/libraw.a
    g++ -c -pthread -O4 -I. -w -o object/dcraw_common_mt.o internal/dcraw_common.cpp
    g++ -c -pthread -O4 -I. -w -o object/foveon_mt.o internal/foveon.cpp
    g++ -c -pthread -O4 -I. -w -o object/libraw_cxx_mt.o src/libraw_cxx.cpp
    g++ -c -pthread -O4 -I. -w -o object/libraw_c_api_mt.o src/libraw_c_api.cpp
    g++ -c -pthread -O4 -I. -w -o object/dcraw_fileio_mt.o internal/dcraw_fileio.cpp
    rm -f lib/libraw_r.a
    ar crv lib/libraw_r.a object/dcraw_common_mt.o object/foveon_mt.o object/libraw_cxx_mt.o object/libraw_c_api_mt.o object/dcraw_fileio_mt.o
    a - object/dcraw_common_mt.o
    a - object/foveon_mt.o
    a - object/libraw_cxx_mt.o
    a - object/libraw_c_api_mt.o
    a - object/dcraw_fileio_mt.o
    ranlib lib/libraw_r.a
    brontozaver@BrontozaverSuperPower:~/Downloads/LibRaw-0.8.5$


    That's it... when I open DigiKam, nothing changed, there is still the old version of the libray...

    Any clue?

  4. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    The normal process would be to do
    Code:
    make
    sudo make install
    However, it's not clear to me digikam would make use of the library regardless.

    As far as I can tell, and admittedly this isn't an area I know that much about, Digikam uses libkdcraw to intreface with libraw.

    LibKDcraw is a C++ interface around LibRaw library used to decode RAW picture files. This library is used by kipi-plugins, digiKam and others kipi host programs.

    LibKDcraw source code is hosted by KDE4 in kdegraphics module.
    I would guess you would have to build libkdcraw against libraw 0.8.5 once it's installed, and it's possible you would have to rebuild digikam itself.

  5. #5
    Just Joined!
    Join Date
    Jan 2010
    Posts
    7
    So you say there is no chance that I do it?

    Or do I have to install LibKDcraw?

  6. #6
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    It can probably be done. It just looks like it will be quite complicated.

    I think your best bet might be to build the latest development version of digikam. Though I have no idea if they've integrated the latest libraw yet.
    Download SVN KDE4 | digiKam - Photo Management Program

    Otherwise, you might have to wait and see if it's included in the next Ubuntu release, or you would probably get it quicker running a bleeding edge rolling release distro like Sidux or Arch.

    What exactly is the problem you're having? The current digikam doesn't support the RAW format your camera saves in?

  7. #7
    Just Joined!
    Join Date
    Jan 2010
    Posts
    7
    Quote Originally Posted by reed9 View Post
    Otherwise, you might have to wait and see if it's included in the next Ubuntu release, or you would probably get it quicker running a bleeding edge rolling release distro like Sidux or Arch.

    What exactly is the problem you're having? The current digikam doesn't support the RAW format your camera saves in?

    Right. My camera RAW is supported just from the last LibRaw release.

    I tried to type:
    brontozaver@BrontozaverSuperPower:~$ svn co -N svn://anonsvn.kde.org/home/kde/trunk/KDE/kdegraphics

    A kdegraphics/AUTHORS
    A kdegraphics/ChangeLog
    A kdegraphics/README
    A kdegraphics/INSTALL
    A kdegraphics/COPYING
    A kdegraphics/Mainpage.dox
    A kdegraphics/COPYING.DOC
    A kdegraphics/COPYING.LIB
    A kdegraphics/CMakeLists.txt
    U kdegraphics
    Checked out revision 1081526.
    brontozaver@BrontozaverSuperPower:~$
    brontozaver@BrontozaverSuperPower:~$ cd kdegraphics
    brontozaver@BrontozaverSuperPower:~/kdegraphics$ svn up libs
    svn: No such revision 1081526
    brontozaver@BrontozaverSuperPower:~/kdegraphics$ svn up cmake
    A cmake
    A cmake/modules
    A cmake/modules/FindLIBGS.cmake
    A cmake/modules/FindKSane.cmake
    A cmake/modules/FindPoppler.cmake
    A cmake/modules/FindDjVuLibre.cmake
    A cmake/modules/FindCHM.cmake
    A cmake/modules/COPYING-CMAKE-SCRIPTS
    A cmake/modules/FindEPub.cmake
    A cmake/modules/FindLibSpectre.cmake
    A cmake/modules/CMakeLists.txt
    A cmake/modules/FindOkular.cmake
    A cmake/modules/FindKadmos.cmake
    A cmake/CMakeLists.txt
    Updated to revision 1081527.
    brontozaver@BrontozaverSuperPower:~/kdegraphics$


    And got no result... even so I have absolutely no idea what I did

    You think that with installing Sidux I would get rid of the problem? Arch seems to be even more complicated than Ubuntu...

  8. #8
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,975
    It only makes static libraries. You probably need to get the source for DigiKam and configure/build it to use libraw.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  9. #9
    Just Joined!
    Join Date
    Jan 2010
    Posts
    7
    And I have no idea how to do that

  10. #10
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,975
    Ok. I looked on the DigiKam web site. It seems that the raw image stuff is found in the LibKDcraw plugin/shared-library. It likely included the libraw_r.a when it was linked, so you don't likely need libraw on your system to download/use it. However, if you have to build it, then having libraw_r is likely necessary. Do you have LibKDcraw and had DigiKam load it?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...