changeset 840:256e1530eb0f jpeg

fix build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Jun 2014 20:11:04 +0200
parents dfb13218f8ca
children 89a593f66104
files LinuxCompilation.txt UnitTestsSources/JpegLossless.cpp
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/LinuxCompilation.txt	Tue Jun 03 17:55:44 2014 +0200
+++ b/LinuxCompilation.txt	Tue Jun 03 20:11:04 2014 +0200
@@ -136,7 +136,7 @@
        	       	       libsqlite3-dev libssl-dev zlib1g-dev \
        	       	       libdcmtk2-dev libboost-all-dev libwrap0-dev
 
-# cmake "-DDCMTK_LIBRARIES=wrap;oflog" \
+# cmake "-DDCMTK_LIBRARIES=dcmjpls;wrap;oflog" \
         -DALLOW_DOWNLOADS=ON \
 	-DUSE_SYSTEM_MONGOOSE=OFF \
 	-DUSE_SYSTEM_JSONCPP=OFF \
--- a/UnitTestsSources/JpegLossless.cpp	Tue Jun 03 17:55:44 2014 +0200
+++ b/UnitTestsSources/JpegLossless.cpp	Tue Jun 03 20:11:04 2014 +0200
@@ -33,10 +33,16 @@
 #include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
 
-#include <dcmjpls/djdecode.h>
+#include <dcmtk/dcmjpls/djlsutil.h>
+#include <dcmtk/dcmjpls/djdecode.h>
+
+#include "../Core/Toolbox.h"
 
 using namespace Orthanc;
 
 TEST(JpegLossless, Basic)
 {
+  DJLSDecoderRegistration::registerCodecs(EJLSUC_default /*opt_uidcreation*/, EJLSPC_restore /*opt_planarconfig*/, OFFalse /*opt_ignoreOffsetTable*/);
+
+  DJLSDecoderRegistration::cleanup();
 }