SAAD3000
SAAD3000

Reputation: 11

/usr/bin/ld: cannot find -ldcmimage

Am trying to compile dcmbeam using make on Centos 7 -x64, however I am getting these errors:

    make
    c++ -g -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -Wall  -L/usr/local/dicom/lib -o dcmbeam dcmbeam.o -ldcmimage -ldcmimgle -ldcmdata -lofstd -lz  -lpthread
    /usr/bin/ld: cannot find -ldcmimage
    /usr/bin/ld: cannot find -ldcmimgle
    /usr/bin/ld: cannot find -ldcmdata
    /usr/bin/ld: cannot find -lofstd

collect2: error: ld returned 1 exit status
make: *** [dcmbeam] Error 1

any ideas what its trying to find? and what location it is looking at? I will attach the src code zipped on dropbox, link: Download Src code

thanks alot!

Upvotes: 1

Views: 248

Answers (1)

J. Riesmeier
J. Riesmeier

Reputation: 1702

Being one of the DCMTK developers, I looked at your error log and it seems that you forgot to link the "oflog" library (which has been introduced with DCMTK 3.6.0).

Upvotes: 1

Related Questions