Not able to compile Orthanc on Ubuntu 12.4

Hi guys ,

I am new to OrthanC Just wanted to seek a quick help on the compilation errors that I am facing while compiling OrthanC DICOM server on Ubuntu 12.4.

Below are the compilation errors that occurs :

cmake -DALLOW_DOWNLOADS=ON -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON -DUSE_SYSTEM_MONGOOSE=OFF -DDCMTK_LIBRARIES=dcmjpls /opt/Orthanc-1.0.0

[ 85%] Building CXX object CMakeFiles/Orthanc.dir/OrthancServer/main.cpp.o
Linking CXX executable Orthanc
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `OFLog::getLogger(char const*)'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `log4cplus::Logger::removeAppender(log4cplus::helpers::SharedObjectPtr<log4cplus::Appender>)'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `log4cplus::Logger::removeAppender(OFString const&)'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `log4cplus::Logger::removeAllAppenders()'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmnet.so: undefined reference to `hosts_access'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `log4cplus::Logger::isEnabledFor(int) const'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `log4cplus::Logger::forcedLog(int, OFString const&, char const*, int, char const*) const'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `JpegLsEncode'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `JpegLsReadHeader'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `log4cplus::Logger::~Logger()'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `log4cplus::Logger::getAllAppenders()'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `typeinfo for log4cplus::Logger'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmnet.so: undefined reference to `request_set'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `log4cplus::Logger::Logger(log4cplus::Logger const&)'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmnet.so: undefined reference to `request_init'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `log4cplus::Logger::addAppender(log4cplus::helpers::SharedObjectPtr<log4cplus::Appender>)'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `log4cplus::Logger::getAppender(OFString const&)'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libdcmjpls.so: undefined reference to `JpegLsDecode'
collect2: ld returned 1 exit status
make[2]: *** [Orthanc] Error 1
make[1]: *** [CMakeFiles/Orthanc.dir/all] Error 2

Could anybody please assist if they have faced the similar issues ?

Hello,

Check out the build instructions for Linux:
https://bitbucket.org/sjodogne/orthanc/src/default/LinuxCompilation.txt

Your “DCMTK_LIBRARIES” option is incomplete.

HTH,
Sébastien-

That worked ..!! .Thanks Sabastien..I did not notice 12.4 instructions saperately ..