Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8806

CMake: libjpeg not found / ignored

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.13/02, 6.14/00
    • Component/s: Build System
    • Labels:
      None
    • Environment:

      SLC6 current ROOT view

    • Development:

      Description

      . /cvmfs/sft.cern.ch/lcg/views/ROOT-latest/x86_64-slc6-gcc7-opt/setup.sh
      $ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../src/

      gives
      – Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
      – Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
      – Building AfterImage library included in ROOT itself
      and then
      [ 87%] Linking CXX shared library ../../lib/libASImage.so
      /usr/bin/ld: cannot find -l/usr/lib64/libjpeg.so
      collect2: error: ld returned 1 exit status
      make[2]: *** [lib/libASImage.so] Error 1
      make[1]: *** [graf2d/asimage/CMakeFiles/ASImage.dir/all] Error 2
      make[1]: *** Waiting for unfinished jobs....

      If I configure with
      cmake -DJPEG_LIBRARY=libjpeg.so .
      I get
      – Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
      – Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
      – Found JPEG: /build/axel/ROOT-master/gcc7/libjpg.so
      – Building AfterImage library included in ROOT itself

      (note the extra JPEG line) but the build still fails with
      make[2]: *** No rule to make target `libjpeg.so', needed by `lib/libASImage.so'. Stop.
      make[2]: *** Waiting for unfinished jobs....

        Attachments

          Activity

            People

            Assignee:
            amadio Guilherme Amadio
            Reporter:
            axel Axel Naumann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: