Menu

#1 compiler error during linking, what lib do i need?

open
nobody
None
5
2004-09-19
2004-09-19
Anonymous
No

can't compile it,

after extracting the source....

# ~//transcode-0.6.12/contrib/subrip $ make
Linking subtitle2pgm
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lppm
collect2: ld returned 1 exit status
make: *** [subtitle2pgm] Error 1

doc says it only depends on gocr and transcode, have those

any reply is welcome :)

Discussion

  • Nobody/Anonymous

    Logged In: NO

    it says in the readme to comment out the lines that enable
    lppm support if you dont have it, rtfm.

     
  • Nobody/Anonymous

    Logged In: NO

    You can fix this by going into the Makefile and changing the
    lines

    ### enable ppm support ###
    DEFINES += -D_HAVE_LIB_PPM_
    LIBS += -lppm

    to:

    ### enable ppm support ###
    DEFINES += -D_HAVE_LIB_PPM_
    LIBS += -lnetpbm

    I think they just changed the package these libraries were
    in, or at least the reference to it, and the Makefile hasn't
    been updated since then.

     
  • Nobody/Anonymous

    Logged In: NO

    You need libppm.

     
  • Nobody/Anonymous

    Logged In: NO

    libppm is no longer maintained, netpbm contains ppm support thankfully so
    the nobody that mentioned to change the lib to netppm is correct.

     

Log in to post a comment.